Days in a month as of today

G

Guest

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,
 
B

Bob Phillips

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top