View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
Rick Rothstein \(MVP - VB\) Rick Rothstein \(MVP - VB\) is offline
external usenet poster
 
Posts: 2,202
Default Range of Days in a month

Here is a slightly shorter formula that can be used in A2 (filled
down to A31)...

A2: =IF((MONTH(IF(A1="",0,A1)+1)=MONTH($A$1)),A1+1,"")


Even shorter...

A2: =IF(MONTH(N(A1)+1)=MONTH($A$1),A1+1,"")

Rick