Excel 2010: round up

FiDonk

New Member
Joined
Jul 14, 2017
Messages
13
Hello

I am looking for a formula to round up a date of birth to the relevant age e.g. if the person is 37 and 7 months the round up and age column total would automatically calculate 38. If the person was 37 and 6 months, the calculation would be 37.

I have three columns, DOB, Age and then Age rounded up.

Does anyone have any ideas of how I may do this please? I am at basic level with excel use.

Many thanks in anticipation.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I moved my information to row 2 to try this:

C2: =DATEDIF(A2,B2, "y") + (DATEDIF(A2,B2, "ym") > = 6)

same result :(
 
Upvote 0
apologies for all the postings! but just to save you time, I checked the cell is general and also that the cell was unlocked
 
Upvote 0
Quote
I am looking for a formula to round up a date of birth to the relevant age e.g. if the person is 37 and 7 months the round up and age column total would automatically calculate 38. If the person was 37 and 6 months, the calculation would be 37.



Excel 2010
ABCDEF
1Round Age > 6 MonthsEffective date16-Jul-17
216-Dec-7917-Jul-1737 Years 7 Months38
317-Dec-7917-Jul-1737 Years 6 Months37
9d
Cell Formulas
RangeFormula
C2=DATEDIF(A2,$F$1,"y")&" Years "&DATEDIF(A2,$F$1,"ym")& " Months"
C3=DATEDIF(A3,$F$1,"y")&" Years "&DATEDIF(A3,$F$1,"ym")& " Months"
D2=DATEDIF(A2,$F$1,"y")+(DATEDIF(A2,$F$1,"ym")>6)
D3=DATEDIF(A3,$F$1,"y")+(DATEDIF(A3,$F$1,"ym")>6)
Named Ranges
NameRefers ToCells
Mon="0111111"


Ensure that calculation is set to automatic.
File Options Formulas Workbook Calculations Automatic

Please ignore the defined name; it is not relevant to this question.
 
Last edited:
Upvote 0
I just entered the date in F1. If you want to use today's date, enter =Today().

You can use Today() in the formula or reference the effective date which can be in a cell such as F1.


Excel 2010
ABCDEF
1Round Age > 6 MonthsEffective date16-Jul-17
216-Dec-7937 Years 7 Months38
317-Dec-7937 Years 6 Months37
417-Dec-7937 Years 6 Months37
9d
Cell Formulas
RangeFormula
C2=DATEDIF(A2,$F$1,"y")&" Years "&DATEDIF(A2,$F$1,"ym")& " Months"
C3=DATEDIF(A3,$F$1,"y")&" Years "&DATEDIF(A3,$F$1,"ym")& " Months"
C4=DATEDIF(A4,TODAY(),"y")&" Years "&DATEDIF(A4,TODAY(),"ym")& " Months"
D2=DATEDIF(A2,$F$1,"y")+(DATEDIF(A2,$F$1,"ym")>6)
D3=DATEDIF(A3,$F$1,"y")+(DATEDIF(A3,$F$1,"ym")>6)
D4=DATEDIF(A4,TODAY(),"y")+(DATEDIF(A4,TODAY(),"ym")>6)
Named Ranges
NameRefers ToCells
Mon="0111111"
 
Last edited:
Upvote 0
Another way:

A​
B​
C​
D​
1​
DoB
As Of
~ Age
2​
15-Jan-55​
15-Jul-17​
63​
C2: =ROUND(DATEDIF(A2, B2, "m")/12, 0)
3​
16-Jan-55​
15-Jul-17​
62​
 
Upvote 0
Thank you so much to everyone for all of their assistance, I cracked it Dave Patton, thank you :)
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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