Formatting Cell

traff1982

Board Regular
Joined
May 21, 2007
Messages
62
Hi

I'm working on a spreadsheet that requires one of the cells to show the age of people. I'm ok with finding the age but i need to show it in the form of fraction with a denominator of 12. e.g. someone who is 56 and 6 months would be shown as "56 6/12" rather than "56 1/2". I can format the cell so it shows fractions but they are not with a denominator of 12. Any tips on how to do this would be appreciated.

Cheers
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi

I'm a beginner, but I can try to work like this:

Let say
A1: Today Date
A2: Birth Date
A3: =A2-A1 ' Format the cell as a number, not data
A4: =int(A3/365) ' No. of years.
A5: =int(A4/4) ' no 366 days in a year
A6: =INT((A3-B4*365+C4)/30) ' for number of months
A7: =concatenate(a4, " ", A6,"/12")

Of course, you can write the formula in oly one row.

Regards
Catalin
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,020
Members
448,939
Latest member
Leon Leenders

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