+ Reply to Thread
Results 1 to 7 of 7

Auto fill dates

  1. #1
    Registered User
    Join Date
    07-20-2012
    Location
    utah
    MS-Off Ver
    Excel 2010
    Posts
    14

    Auto fill dates

    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.

  2. #2
    Registered User
    Join Date
    09-06-2013
    Location
    Winterville, NC, USA
    MS-Off Ver
    Excel 2013
    Posts
    23

    Re: Auto fill dates

    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

  3. #3
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Auto fill dates

    Quote Originally Posted by slasherdan View Post
    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!

  4. #4
    Registered User
    Join Date
    06-30-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Auto fill dates

    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

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Auto fill dates

    Take a look at this
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Auto fill dates

    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.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  7. #7
    Registered User
    Join Date
    07-20-2012
    Location
    utah
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Auto fill dates

    Thanks everyone

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Auto fill dates
    By Hagar42 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2012, 02:13 PM
  2. [SOLVED] Auto fill for dates?
    By George in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2006, 11:55 PM
  3. Auto fill dates
    By Jennifer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2006, 03:50 PM
  4. RE: Auto fill dates
    By Jennifer in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-24-2006, 03:35 PM
  5. auto fill row with dates
    By tdennis14 in forum Excel General
    Replies: 5
    Last Post: 10-26-2005, 09:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1