View Single Post
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier Roger Govier is offline
external usenet poster
 
Posts: 2,886
Default How do I have excel convert fractions to decimals?

Very nice, Ron!

Much easier solution. I hadn't realised the fraction could be coerced to
decimal in this way.

--
Regards

Roger Govier


"Ron Coderre" wrote in message
...
Perhaps one of these:

Using
A1: 16 3/8 X 5 1/8

Translated to decimal:
B1: =(--TRIM(LEFT(A1,SEARCH("X",A1)-1)))&" X
"&(--TRIM(MID(A1,SEARCH("X",A1)+1,255)))
returns 16.375 X 5.125

Or...
B1: =--TRIM(LEFT(A1,SEARCH("X",A1)-1))
returns 16.375

B2: =--TRIM(MID(A1,SEARCH("X",A1)+1,255))
returns 5.125

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"pgail" wrote:

I am typing in measuments of packages - i.e. 16 3/8 X 5 1/8, I want
excel to
convert to decimal. I have tried format cells, and convert, neither
have
this option available.

"Ron Coderre" wrote:

Can you give examples of how you need to deal with the fractions?
Are you typing them?
Are they in data that was imported?
Are you referring to them in another cell?

What have you tried?
What were you hoping for?
What were the actual results?

***********
Regards,
Ron

XL2002, WinXP


"pgail" wrote:

I am trying to convert fractions to decimals