Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 376
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Birthday List Hugh Murfitt Excel Discussion (Misc queries) 4 June 23rd 08 08:19 AM
Birthday got overlooked Suzie Weston Excel Discussion (Misc queries) 3 March 22nd 06 03:47 PM
Birthday calculations JC Excel Discussion (Misc queries) 10 February 26th 06 12:44 PM
Birthday Formula Joe Excel Worksheet Functions 3 April 15th 05 04:41 PM
Sorting by Birthday Dennis Hughes Excel Discussion (Misc queries) 3 January 15th 05 02:14 PM


All times are GMT +1. The time now is 03:45 PM.

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

About Us

"It's about Microsoft Excel"