How to use a part of a fraction (converted from a decimal) in another formula?

elblanco

New Member
Joined
Jul 26, 2010
Messages
12
I have a decimal number in cell A1. Cell A1 is converted to A2 (=A1) which is formatted as a fraction in eighths and is displaying 7/8. I want to extract only the 7 and use it in another formula.
When I execute cell A3 which is: =LEFT(TEXT(A2,"?/?"),1) I get a 6. I never get the correct number with any of the fractions. I'm stumped... can anyone help please. I'm using Excel 2010. Thanks.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Sound like the value in A1 is closer to 6/7 than 7/8. Using =A1 in A2 then formatting it as ?/8 doesn't change the underlying decimal value, formats only change how things appear. Any subsequent formulas will still use the original value unless it is modified by a formula (not a format).

=LEFT(TEXT(A1,"?/8"),1)

Should do what you need, as long as the decimal value is always less than 1.
 
Upvote 0
Sound like the value in A1 is closer to 6/7 than 7/8. Using =A1 in A2 then formatting it as ?/8 doesn't change the underlying decimal value, formats only change how things appear. Any subsequent formulas will still use the original value unless it is modified by a formula (not a format).

=LEFT(TEXT(A1,"?/8"),1)

Should do what you need, as long as the decimal value is always less than 1.


Jason, you're the best. Thank you so much -- that did it!
Stay safe.
 
Upvote 0
Also Jason, I had to multiply the extracted character by 1 to put it in a numeric mode that would work in the formula. Just what you referred to above in your explanation.
So thanks again.
 
Upvote 0
You could also use this formula as well (it returns a numerical value directly)...

=ROUND(8*A1,0)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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