View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 1,726
Default Days in a month as of today

B2: =DAY(DATE(YEAR(A1),MONTH(A1)+1,0))

which is what you had without the square brackets

B3: =DAY(TODAY())

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Daniel Q." wrote in message
...
I need a formula that will look at today's date, figure out the days in the
month and then in a different cell give me the number of days so far in
that
month.

ie -

A1 = 1/1/07

B2 = [(DAY(DATE(YEAR(A1),MONTH(A1)+1,0))] = 31

B3 = should come up with 25 since today is Jan 25

Thx,