A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Interval between now and next birthday



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2010, 09:59 PM posted to microsoft.public.excel.worksheet.functions
WilDeliver
external usenet poster
 
Posts: 3
Default Interval between now and next birthday

I need to calculate the interval between a date next year and a person's next
birthday after that. Sorry if this has been answered, but I can't find it.
Many thanks.


  #2  
Old April 15th, 2010, 11:46 PM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_8_]
external usenet poster
 
Posts: 338
Default Interval between now and next birthday

Hi
Take a look at the undocumented Datedif function.
Chip Pearson has information on his site
http://www.cpearson.com/Excel/datedif.aspx
--
Regards
Roger Govier

WilDeliver wrote:
I need to calculate the interval between a date next year and a person's next
birthday after that. Sorry if this has been answered, but I can't find it.
Many thanks.


  #3  
Old April 16th, 2010, 12:13 AM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default Interval between now and next birthday

Interval in what units?

Days? Months?

See Chip Pearson's site for the undocumented DateDif function.

http://www.cpearson.com/excel/datedif.aspx


Gord Dibben MS Excel MVP

On Thu, 15 Apr 2010 13:59:01 -0700, WilDeliver
wrote:

I need to calculate the interval between a date next year and a person's next
birthday after that. Sorry if this has been answered, but I can't find it.
Many thanks.


  #4  
Old April 16th, 2010, 01:37 PM posted to microsoft.public.excel.worksheet.functions
Chip Pearson
external usenet poster
 
Posts: 1,343
Default Interval between now and next birthday

I'm not sure exactly what you want, but consider the following.
Suppose in cell A1 you have some date next year, and in B1 you have
the person's date of birth. The following formula will calculate the
person's birthday after the value in A1.

=DATE(YEAR(A1)+(A1DATE(YEAR(A1),MONTH(B1),DAY(B1) )),MONTH(B1),DAY(B1))

So, for example, if A1 = 15-May-2011 and B1 = 2-Sept-1966, the formula
returns 2-Sept-2011, the first birthday after 15-May-2011. If A1 =
15-December-2011, the formula will return 2-September-2012, the next
birthday after 15-December-2011.

If you want to calculate the number of days between A1 and the
person's next birthday after the date in A1, use

=DATE(YEAR(A1)+(A1DATE(YEAR(A1),MONTH(B1),DAY(B1) )),MONTH(B1),DAY(B1))-A1

For example, if A1 = 15-December-2011, the formula will return 262,
the number of days between 15-December-2011 and 2-September-2012.

If this is not what you want, please post back with considerably more
detail.


Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com




On Thu, 15 Apr 2010 13:59:01 -0700, WilDeliver
wrote:

I need to calculate the interval between a date next year and a person's next
birthday after that. Sorry if this has been answered, but I can't find it.
Many thanks.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.