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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
hello the age value is a formula e.g.

=DATEDIF(A3,$B$2,"Y")&" Years, "&DATEDIF(A3,$B$2,"YM")&" Months"

this provides me with the Age as At and now looking for a separate column to round up the age if >6 months

Many thanks for replying to my post.
 
Upvote 0
Did you try the formulas in that link, that show you how you can round the age to the nearest whole number?
 
Last edited:
Upvote 0
to be honest, it took me ages to get this formula together and I did it sometime ago, I am not sure how to add the round up to the nearest whole number?

Thanks
 
Upvote 0
Notice that the formula the person posted in their first post is remarkably similar to yours.
So you should just be able to use the formulas in the other two posts, just substituting in your cell references for theirs.

It looks like what they used "C3" for, you used "A3", and what they used "K3" for, you used "$B$2".
So in their formulas, simply put in A3 wherever you see C3, and put in $B$2 wherever you see K3.
 
Upvote 0
Hi

When I did this, I get the following results...

12/01/195563 Years, 3 Months64

<tbody>
</tbody><colgroup><col><col><col></colgroup>

When it should read 63?? if 6 months or less and 64 if more than 6 months into the year?

<tbody>
</tbody><colgroup><col><col><col></colgroup>
 
Upvote 0
Maybe ...

A​
B​
C​
D​
1​
DoB
As Of
~ Age
2​
15 Jan 1955​
15 Jul 2017​
63​
C2: =DATEDIF(A2,B2, "y") + (DATEDIF(A2,B2, "ym") >= 6)
3​
16 Jan 1955​
15 Jul 2017​
62​
 
Upvote 0
okies

Many thanks for this. I have tried this, feel very close to the result.....but...

when I type this in the cell and press ENTER, the formula remains in the cell and the not the result, I have tried switching cells between general and formula but this didn't make any difference..

It looks like this

- Hope you can see this image??

If not, my cells are A3 and B3 and I typed this:

C3: = DATEDIF(A3,C3, "y") + (DATEDIF(A3,B3, "ym") > = 6)

Thanks
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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