Show denominator and numerator of fraction

Cosmos75

Active Member
Joined
Feb 28, 2002
Messages
359
If I have a cell to be formatted as a fraction, is there anyway to get the denominator and numerator of the fraction.

E.g.

If Excel has .26163 as 45/172 in Cell A1, is there anyway to get a cell B1 to show 45 and Cell C1 to show 172?

FYI, 3.26163 lightyears is 1 Parsec.
 
Hello,

I have a value like 18 25/374, an I am getting the numerator vale correctly as 6757, but get a #value! for the denominator.
Using the formula posted as:
=LEFT(TEXT(A1,"???/???"),FIND("/",TEXT(A1,"???/???"))-1)+0 ==> FOR Numerator
=RIGHT(TEXT(A1,"???/???"),FIND("/",TEXT(A1,"???/???"))-1)+0 ==> For denominator

Please help. Thanks,
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hello.... this is how it worked for me when the formula included the equal "=" sign...

=RIGHT(LEFT(FORMULATEXT(A1),FIND("/",FORMULATEXT(A1),1)-1),LEN(FORMULATEXT(A1))-LEN(LEFT(FORMULATEXT(A1),FIND("/",FORMULATEXT(A1),1)-1))+1)
=RIGHT(FORMULATEXT(A1),LEN(FORMULATEXT(A1))-FIND("/",FORMULATEXT(A1),1))

Took me a while to make this work... The thread above does not work for me... could be caused by the difference in Excel version? Anyway, thanks everyone for the tips..
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,696
Members
449,048
Latest member
81jamesacct

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