View Single Post
  #11   Report Post  
Posted to microsoft.public.excel.misc
JC
 
Posts: n/a
Default Birthday calculations

On Sat, 25 Feb 2006 16:01:58 -0600, daddylonglegs
wrote:


Hi JC,

What do you expect the formula to return on 1st March (in a non leap
year) for a 29th February birthdate?

btw you could simpify to

=DATE(YEAR(TODAY())+(TEXT(TODAY(),"mmdd")TEXT(C3 ,"mmdd")),MONTH(C3),DAY(C3))-TODAY()


Hi Daddylonglegs,

That depends on what the convention is for those born on 29th Feb. Personally,
I would celebrate my birthday on 28th Feb in non leap years if I was born on
29th Feb thus keeping it in the same month so I would expect the formula to
return 364 days on 1st March but others may celebrate their birthday on 1st
March in which case 365 would be the answer.

I haven't tried your simplified formula yet but don't see how the
IF(TEXT(TODAY(),"mmdd")TEXT(C3,"mmdd"),1,0) part can be simplified to
(TEXT(TODAY(),"mmdd")TEXT(C3,"mmdd")). That doesn't make sense to me.
--

Cheers . . . JC