Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Days until birthday

I have a list of DOB's in column A. I would like to put a formula in column B
that would work out how many Day's it is until the next birthday ie.

Column A Column B

14/04/1981 Days unitl birthday here
13/2/1979 Days until birthday here
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Days until birthday

=IF(DATE(YEAR(TODAY()),MONTH(A1),DAY(A1))-TODAY()<0,DATE(YEAR(TODAY())+1,MONTH(A1),DAY(A1))-TODAY(),DATE(YEAR(TODAY()),MONTH(A1),DAY(A1))-TODAY())

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Ward" wrote in message ...
|I have a list of DOB's in column A. I would like to put a formula in column B
| that would work out how many Day's it is until the next birthday ie.
|
| Column A Column B
|
| 14/04/1981 Days unitl birthday here
| 13/2/1979 Days until birthday here


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Days until birthday

Hi,
Thank you for your reply, unfortuantly I think I doing some thing wrong.

No matter when the DOB is in Column A the formula always returns 9 days to
go beofore their birthday in column B.



"Niek Otten" wrote:

=IF(DATE(YEAR(TODAY()),MONTH(A1),DAY(A1))-TODAY()<0,DATE(YEAR(TODAY())+1,MONTH(A1),DAY(A1))-TODAY(),DATE(YEAR(TODAY()),MONTH(A1),DAY(A1))-TODAY())

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Ward" wrote in message ...
|I have a list of DOB's in column A. I would like to put a formula in column B
| that would work out how many Day's it is until the next birthday ie.
|
| Column A Column B
|
| 14/04/1981 Days unitl birthday here
| 13/2/1979 Days until birthday here



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Days until birthday

sorry it does work - just got my copy and paste mixed up

Thanks again

Ward

"Niek Otten" wrote:

=IF(DATE(YEAR(TODAY()),MONTH(A1),DAY(A1))-TODAY()<0,DATE(YEAR(TODAY())+1,MONTH(A1),DAY(A1))-TODAY(),DATE(YEAR(TODAY()),MONTH(A1),DAY(A1))-TODAY())

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Ward" wrote in message ...
|I have a list of DOB's in column A. I would like to put a formula in column B
| that would work out how many Day's it is until the next birthday ie.
|
| Column A Column B
|
| 14/04/1981 Days unitl birthday here
| 13/2/1979 Days until birthday here



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
CAn any one solve this problem of days months and years.its urgent plzzzzzzzzzzzz naughtyboy Excel Discussion (Misc queries) 3 August 19th 06 05:45 PM
No. of days split into periods Brian Ferris Excel Discussion (Misc queries) 3 January 31st 06 03:29 PM
Calendar Days and Option Buttons Andy Excel Discussion (Misc queries) 0 January 10th 06 09:50 PM
Working days left in the month compared to previous months qwopzxnm Excel Worksheet Functions 8 October 24th 05 08:00 PM
Please help!! Vacation Accrual Formula MissNadine Excel Worksheet Functions 1 August 19th 05 02:32 AM


All times are GMT +1. The time now is 09:00 PM.

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"