View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Claus Busch Claus Busch is offline
external usenet poster
 
Posts: 3,872
Default How to find a date in the future

Hi,

Am Thu, 20 Feb 2020 22:44:41 -0800 (PST) schrieb Daddy Sage:

In 2020 February 29 is a Saturday in an uneven week. Next tinme that happens is in 2048, then again in 2076, then in 2116, 2144 and so on. But is there a formula that can calculate this?


try:
=SMALL(IF((WEEKDAY(TODAY()+ROW($1:$500000))=7)*(DA Y(TODAY()+ROW($1:$500000))=29)*(MONTH(TODAY()+ROW( $1:$500000))=2),TODAY()+ROW($1:$500000)),ROW(A1))
insert the formula with CRTL+Shift+Enter and copy down.


Regards
Claus B.
--
Windows10
Office 2016