+ Reply to Thread
Results 1 to 7 of 7

Day ## of ## counting

Hybrid View

  1. #1
    Registered User
    Join Date
    01-08-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Post Day ## of ## counting

    I am looking for a formula that will count days in increments of 1 through 40. I need it to look like this: DAY 1 of 40

    Whereas only the "1" counts up to 40 every 24 hours. And maybe a button to reset the counter back to "1" I appreciate any help at all in advance.
    Last edited by xxxloganxxx; 01-12-2009 at 09:53 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Select a cell to enter the kickoff date. Let's make it AA1 for now.

    In your tracking cell, enter the following formula:

    =TODAY()-$AA$1+1

    Now Ctrl+1 to open the Format Box, select Category: Custom and enter this custom format:

    0" of 40"

    Last step is a macro to reset the date in AA1.
    Sub Reset()
        Range("AA1").Value = Date
    End Sub
    Put that on a button, or just run the macro manually.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Also, if you want the time to expire, you could use this formula:

    =IF(TODAY()-H7+1>40,"Time's Up!",TODAY()-H7+1)

  4. #4
    Registered User
    Join Date
    01-08-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Thumbs up

    Thanks a bunch! Exactly what I needed. Cheers!

  5. #5
    Registered User
    Join Date
    01-08-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4
    Actually I have one more question, I need to use this formula on a spreadsheet I am using now but the start date of the 1 of 40 days is in the past. How would I adjust it so that the current day (which is day 25) will be reflected? The actual start date of this count is 15 Dec 2008.

    Thanks Again!

  6. #6
    Registered User
    Join Date
    01-08-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Thumbs up

    Disregard, I have it all sorted now, Just had to modify a little. Thanks again.......case closed

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    In the cell you're using the macro to update, manually put in the starting date you want, in the same cell, so it keeps working as designed.

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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