fill cells with days of month

L

lalani

I'm trying to make a time entry sheet. Each employee has their own sheet
and it carries a running total for the month. I've got the days of the
month running horizontally across the header row. The problem is, right
now I've set the number of colums at 31 days. So that for feb, the last
three colums become march 1,2,3. Is there a way to have it stop on the
last day of the month?

To clarify, in B4 I enter 2/1/04. Currently B5 is B4+1, B6 is B5+1 and
so on.

I don't mind using conditional formatting or any other way to simply
hide the end columns for months with less than 31 days.
 
D

Daniel.M

One way,

in B5:
=IF(B4="","",IF(DAY(B4+1)=1,"",B4+1))

Copy to B34

Regards,

Daniel M.
 

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