Convert fractional text to number

maxman

New Member
Joined
Dec 1, 2010
Messages
21
I've got a column of fractional text that needs to be converted to decimal number. They look like this:

1/2
5/8
3/4
7/8
1
1-1/4
1-1/2
1-3/4
etc.

If I multily the text by 1 to convert to a number, I end up with a 5 digit number likely a date or something. I want 1/2 to convert to .5 and 1-3/4 convert to 1.75, etc.

Please help.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
For the ones like "1/2" you could use something like this:

=IF(ISTEXT(Your_Cell),LEFT(Your_cell,1))/RIGHT(Your_cell,1)

How are you calculating the 1-3/4 to get 1.75?
 
Upvote 0
If your data is in A2 down then try this formula in B2

=SUBSTITUTE(IF(COUNTIF(A2,"*-*"),"",IF(COUNTIF(A2,"*/*"),"0 ",""))&A2,"-"," ")+0

format B2 as number and copy down
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top