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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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