Hello.
Is it possible to enter a fraction into A1, say 5/8, then automatically reverse the numerator and denominator so that the fraction shows as 8/5 in B1 and then convert it into a decimal, so the final result reads 1.6 in C1?
Thank you.
Hello.
Is it possible to enter a fraction into A1, say 5/8, then automatically reverse the numerator and denominator so that the fraction shows as 8/5 in B1 and then convert it into a decimal, so the final result reads 1.6 in C1?
Thank you.
may be below
In A1 type =5/8 and in B1 copy paste below
=INDEX(TRIM(MID(SUBSTITUTE(TEXT(A1,"???/???"),"/",REPT(" ",50)),{1,30},50)),,2)/INDEX(TRIM(MID(SUBSTITUTE(TEXT(A1,"???/???"),"/",REPT(" ",50)),{1,30},50)),,1)
To see the reverse numerator and denominator set the cell formatting to fraction
Last edited by hemesh; 01-16-2016 at 07:14 PM.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST
More we learn about excel, more it shows us, how less we know about it.
for chemistry
https://www.youtube.com/c/chemistrybyshivaansh
Is the fraction entered as a number or as a text string? If the fraction is a real number (0.625 formatted as #/#), then it should be as simple as =1/B1 formatted as general or 0.0 or whatever number format you want.
Originally Posted by shg
That works, but the fractions will be copied and pasted from another location and I don't want to have to enter the equal sign to each one. I've spent weeks reversing the fraction manually and then converting it into a decimal. I was hoping to just copy and paste and then have the rest performed automatically.
Thank you for your help.
hello tom if have entries as 5/8 or 8000/60000 and so on then use below
in B1 assuming ur data is in A1
=INDEX(--(MID(SUBSTITUTE(TEXT(A1,"???/???"),"/",REPT(" ",50)),{1,50},50)),2)/INDEX(--(MID(SUBSTITUTE(TEXT(A1,"???/???"),"/",REPT(" ",50)),{1,50},50)),1)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks