Excel right function help
Author
Discussion

AM

Original Poster:

1,705 posts

242 months

Monday 17th September 2007
quotequote all
I have a load of cells displaying numbers to 4 decimal places and need to display the 4th decimal place in it's own cell. If I use the "right" function it ignores any 0's and instead displays the number furthest to the right with a value of more than 0. Anyone know how I sort this out ?

I've tried formating the cells into text but excel removes any 0's from the end of the number !

ELAN+2

2,232 posts

263 months

Monday 17th September 2007
quotequote all
got the same problem here!! I need to input part numbers starting with from 1 to 4 zeros and theey keep vanishing!!! HELP!!!!

Mark

Vee

3,109 posts

265 months

Monday 17th September 2007
quotequote all
AM said:
I have a load of cells displaying numbers to 4 decimal places and need to display the 4th decimal place in it's own cell. If I use the "right" function it ignores any 0's and instead displays the number furthest to the right with a value of more than 0. Anyone know how I sort this out ?

I've tried formating the cells into text but excel removes any 0's from the end of the number !
Assuming your data is in cell A1 . . .

Cell B1 : =text(A1,"0.00000&quotwink (important that you have 5 zeros after the decimal)
Cell C1 : =find(".",B1)
Cell D1 : =left(B1,C1+4)
Cell E1 : =right(D1,1)

Long winded but I think it does what you want.

Bloody smiley : after the 5th zero you need a qoutation " followed by a closed bracket )

Edited by Vee on Monday 17th September 09:24

plasticpig

12,932 posts

256 months

Monday 17th September 2007
quotequote all
=RIGHT(TEXT(A1,"####.##00&quotwink,1) Where A1 is your cell ref to your 4 decimal place number.

For ELAN+2's problem simply format the cells as text.


AM

Original Poster:

1,705 posts

242 months

Monday 17th September 2007
quotequote all
Vee said:
AM said:
I have a load of cells displaying numbers to 4 decimal places and need to display the 4th decimal place in it's own cell. If I use the "right" function it ignores any 0's and instead displays the number furthest to the right with a value of more than 0. Anyone know how I sort this out ?

I've tried formating the cells into text but excel removes any 0's from the end of the number !
Assuming your data is in cell A1 . . .

Cell B1 : =text(A1,"0.00000&quotwink (important that you have 5 zeros after the decimal)
Cell C1 : =find(".",B1)
Cell D1 : =left(B1,C1+4)
Cell E1 : =right(D1,1)

Long winded but I think it does what you want.

Bloody smiley : after the 5th zero you need a qoutation " followed by a closed bracket )

Edited by Vee on Monday 17th September 09:24
You're a star, that's a pint I owe you. Thanks mate.

Vee

3,109 posts

265 months

Monday 17th September 2007
quotequote all
plasticpig said:
=RIGHT(TEXT(A1,"####.##00&quotwink,1) Where A1 is your cell ref to your 4 decimal place number.

For ELAN+2's problem simply format the cells as text.
Won't that round the 4th decimal place ?
If not I bow to your superior knowledge !

ELAN+2

2,232 posts

263 months

Monday 17th September 2007
quotequote all
thanks for your help folks, me out of the smelly stuff!!

plasticpig

12,932 posts

256 months

Monday 17th September 2007
quotequote all
Vee said:
plasticpig said:
=RIGHT(TEXT(A1,"####.##00&quotwink,1) Where A1 is your cell ref to your 4 decimal place number.

For ELAN+2's problem simply format the cells as text.
Won't that round the 4th decimal place ?
If not I bow to your superior knowledge !
Not if you do a custom format of the cells you are refrencing.