#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default formula

I need a formula that will allow me to calculate how many days to next
birthday.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 461
Default formula

Use the TODAY() formula

So if you have a birthdate say 06/28/2008 in cell A1

In cell B1 type the formula

=A1-TODAY()

Then make sure you change cell B1s format to General

"penny" wrote:

I need a formula that will allow me to calculate how many days to next
birthday.

  #3   Report Post  
Posted to microsoft.public.excel.misc
APS APS is offline
external usenet poster
 
Posts: 5
Default formula

What if the date of birth is in the past?
For example if the DOB is 1/30 and today is 6/5 then it displays -127. How
do I get it to calculate how many days until 1/30 of next year?

"akphidelt" wrote:

Use the TODAY() formula

So if you have a birthdate say 06/28/2008 in cell A1

In cell B1 type the formula

=A1-TODAY()

Then make sure you change cell B1s format to General

"penny" wrote:

I need a formula that will allow me to calculate how many days to next
birthday.

  #5   Report Post  
Posted to microsoft.public.excel.misc
APS APS is offline
external usenet poster
 
Posts: 5
Default formula

I was referring to the MM/DD portion of the date.
In the previous example I would like it to return 238 or 239 (depending on
Leap Year), instead of -127.

I think I got it, but I don't know how to do it w/o creating column D.
=IF(D2<TODAY(),SUM(D2-(TODAY()-365)),SUM(D2-TODAY()))

Given the following:
D2=this years birthday (ex: DOB=1/30/99, then D3=1/30/08)
----------------------=DATE(YEAR(TODAY()),MONTH(A2),DAY(A2))
A2=DOB

"Don Guillett" wrote:

Wouldn't DOB always be in the past??
Try the DATEDIFF formula

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"APS" wrote in message
...
What if the date of birth is in the past?
For example if the DOB is 1/30 and today is 6/5 then it displays -127.
How
do I get it to calculate how many days until 1/30 of next year?

"akphidelt" wrote:

Use the TODAY() formula

So if you have a birthdate say 06/28/2008 in cell A1

In cell B1 type the formula

=A1-TODAY()

Then make sure you change cell B1s format to General

"penny" wrote:

I need a formula that will allow me to calculate how many days to next
birthday.





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



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

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

About Us

"It's about Microsoft Excel"