Calculation of Fraction values and auto date format issue

rajtak

Board Regular
Joined
Feb 23, 2009
Messages
74
mrexcel1.jpg

Hi,

I want to substract OD with ID to get Wall Thickness, the problem is, fractions are stored in text format and if clear the format then excel autoformat some fractions to date i.e 3/4 to 4-Mar. Another problem is if i do not convert the text format then substraction formula wont work. I also need the Wall Thickness in Fraction NOT Decimal.

1 1/4 - 3/4 = 1/5 (wall thickness)

Please help

Thank you in advance.
 
Last edited:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
If you format columns A:C as Fraction before you enter in the values, then Excel wouldn't interpret them as dates.

Then you could use regular math in column C (=A2-B2), and the results will display in fraction as well.

  • Select columns A:C
  • Right-click on any highlighted cell and select Format Cells
    • On the Number tab:
      • Category; Fraction
      • Type; Up to Two Digits
      • OK


Type in cell A2: 1 1/4
Type in cell B2: 3/4
C2 formula: =A2-B2

1 1/4 - 3/4 = 1/2 (wall thickness)
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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