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 you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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:

[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][td="bgcolor:#C0C0C0"]
D​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td="bgcolor:#F3F3F3"]
DoB
[/td][td="bgcolor:#F3F3F3"]
As Of
[/td][td="bgcolor:#F3F3F3"]
~ Age
[/td][td="bgcolor:#F3F3F3"]
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]
15-Jan-55​
[/td][td]
15-Jul-17​
[/td][td="bgcolor:#E5E5E5"]
63​
[/td][td]C2: =ROUND(DATEDIF(A2, B2, "m")/12, 0)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]
16-Jan-55​
[/td][td]
15-Jul-17​
[/td][td="bgcolor:#E5E5E5"]
62​
[/td][td][/td][/tr]
[/table]
 
Upvote 0

Forum statistics

Threads
1,223,931
Messages
6,175,465
Members
452,646
Latest member
tudou

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