I want to auto fill dates while leaving blanks where needed see AutoFill Dates.xlsx
I want to auto fill dates while leaving blanks where needed see AutoFill Dates.xlsx
Last edited by twrtleduck; 09-09-2013 at 04:01 PM.
try this
[B=IF(W10>=31,"",W10+1)[/B]
It basically says that if the cell is greater or equal to 31 then make this cell blank if not add 1 day to the value of the previous cell
you can leave the > out, since the values already jump to 1 after a value of exactly 31 is found
plus this does result in one blank cell and the one after that becomes 1 again...
so a little modification:
=IF(OR(W10="",W10=31),"",W10+1)
Edit: if you manually fill the first number, use the formula after that and pull through. but first replace W10 with the cell with the manually entered number.
so if you would put 2 in B10, then use the formula in C10 (while replacing W10 with B10) and drag the formula all the way to Z10
Last edited by L-Drr; 09-07-2013 at 04:01 AM.
When I say semicolon, u say comma!
U can also use conditional formatting
First select the range the go to conditional formatting=>new rule put formula =B$4>31 then click on format button then go to Number tab then click on custom then put "" in type then ok and its done
hope this will help u to hide date after 31
Take a look at this
Willem
English is not my native language sorry for errors
Please correct me if I'm completely wrong
Hiding days after 31 only works for half the months. You actually want to stop showing dates after the last day of the month, whatever month it is. Sometimes that's 31, sometimes 30, sometimes 28, sometimes 29. I assume you also want the numbering to start on the correct day.
When dealing with dates in Excel it is always better to use actual dates instead of typing in month names and using integers. I have changed your month names to actual dates, and the numbers that appear in your tables are the day-of-month numbers of dates. Enter the month by typing the date for the first day of the month (e.g., 8/1/2013 will display as August).
Once you enter the date of the first of the month, all the rest of the numbering is fully automatic. I had to add a row of numbers in row 1 to indicate the day number for each column. There are other ways to do this but this is the most straightforward and robust against changes to data layout.
See attachment, let me know if this is what you are looking for.
Jeff
| | |·| |·| |·| |·| | |:| | |·| |·|
Read the rules
Use code tags to [code]enclose your code![/code]
Thanks everyone
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks