Split a decimal figure

  • Thread starter Thread starter Jaleel
  • Start date Start date
J

Jaleel

Hi,

I have a figure in A1. For example, 255.875

Is it possible to bring 255 in B1 and 875 in C1 as numbers, not text?

Regards,

Jaleel
 
You can use text to columns

Highlight the data go to

Data->Text-to-Columns

Click on Next, then click the "Other" box and type in a period
 
Hi,

Thanks to both of you. I am working on a tender document and so text column
exercise cannot be done. However, the formula of Bernd is practical. Cell
B1 is OK. But in C1 I am not getting the desired 855. It shows 0.850. Any
other options?

Regards,

Jaleel
 
Thanks David. I got the solution when I multiplied the formula of Bernd with
1000.

Regards,

Jaleel
 
Here is another way...

A1: 255.875
B1: =INT(A1)
C1: =IF(ISNUMBER(FIND(".",A1)),--SUBSTITUTE(A1,B1&".","",1),0)

This will work no matter how many digits follow the decimal point.

Rick
 
Hi,

I have a figure in A1. For example, 255.875

Is it possible to bring 255 in B1 and 875 in C1 as numbers, not text?

Regards,

Jaleel

What do you want to show, in C1, if A1: 255.012
--ron
 
I have a figure in A1. For example, 255.875
What do you want to show, in C1, if A1: 255.012

Great question!

Jaleel... just so you don't miss the point, Ron is asking about 255.012 in
comparison to 255.12 (or even 255.0012).

Rick
 
Great question!

Jaleel... just so you don't miss the point, Ron is asking about 255.012 in
comparison to 255.12 (or even 255.0012).

Rick

Thanks for clarifying the point I was trying to make, Rick.
--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top