Date Formulae?

midfieldgeneral11

Active Member
Joined
Feb 11, 2004
Messages
464
Good afternoon

Can you help?

Simple formulae I would like to be able to do a formulae regarding age.

I have a field named Date of Birth all I want to do is simply give me the age of the person in another field.

So example

Field A Name: John Smith
Field B Date of Birth : 07/03/1974

Field C I want this to bring back 37

Can you help.

I would like to keep the spreadsheet ROLLING so this is constantly updating from today’s date…

Can you help?
Thanks for looking.....
Simon
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Sorry forgot one thing!!! You were hot off the blocks then!!!

Can we include if the Field has not got a date in the field and is BLANK please just BLANK as this comes back with #value?

Is that ok?
 
Upvote 0
It shouldn't come back as #Value, it should come back as 111. Make sure the "blank" cell is really blank then try

=IF(B1="","",DATEDIF(B1,TODAY(),"y"))
 
Upvote 0
I am a bit confused about the difference between YEARFRAC and DATEDIF and am curious as to what it is. For the start date being 1/1/2011, and the end date being 12/31/2011, if I use =YEARFRAC(start_date,end_date,basis) the formulae returns 1 while =DATEDIF(start_date,end_date,"y") returns 0, but for the dates 1/1/2011 and 1/1/2012, both formulas return 1. I would think that the first set of dates with the YEARFRAC function should return a decimal of approximately .99726 since 1 whole year has not quite passed. Any ideas as to why this might be?
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
PS (the basis I used with YEARFRAC was the default of 0. I am only assuming that basis is the appropriate value to use here in the USA based on its description)<o:p></o:p>
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,792
Members
452,942
Latest member
VijayNewtoExcel

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