Excel right function help
Discussion
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 !
I've tried formating the cells into text but excel removes any 0's from the end of the number !
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 . . .I've tried formating the cells into text but excel removes any 0's from the end of the number !
Cell B1 : =text(A1,"0.00000"
(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
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 . . .I've tried formating the cells into text but excel removes any 0's from the end of the number !
Cell B1 : =text(A1,"0.00000"
(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
Vee said:
plasticpig said:
=RIGHT(TEXT(A1,"####.##00"
,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 ?
,1) Where A1 is your cell ref to your 4 decimal place number. For ELAN+2's problem simply format the cells as text.
If not I bow to your superior knowledge !
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


