+ Reply to Thread
Results 1 to 10 of 10

Automatic date change

  1. #1
    Registered User
    Join Date
    12-30-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    74

    Automatic date change

    Hi,
    I have developed an excel data sheet to extract data every day. For example on sheet B01 in cell H4 I have written the formula "=COUNTIF(H13:H100007,"=04/07/2018")". This is to extract no of days that equal to 04/07/2018. At the moment I am manually changing this date. For example if I need to extract date for today I manually change the date for every sheet as "=COUNTIF(H13:H100007,"=06/07/2018")".
    Is there any method that I can change this formula automatically to todays date? I greatly appreciate any help
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,365

    Re: Automatic date change

    Yes:

    =COUNTIF(H13:H100007,TODAY())
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-30-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    74

    Re: Automatic date change

    Thanks, If I want to change the date to Yesterdays date can I change this to =COUNTIF(H13:H100007,YESTERDAY()) or =COUNTIF(H13:H100007,TODAY- 1())

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,365

    Re: Automatic date change

    Yes, like this:

    =COUNTIF(H13:H100007,TODAY()-1)

  5. #5
    Registered User
    Join Date
    12-30-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    74

    Re: Automatic date change

    Brilliant it works!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,365

    Re: Automatic date change

    Yes, it does!!!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  7. #7
    Registered User
    Join Date
    12-30-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    74

    Re: Automatic date change

    Just one more thing HOW do I change the date on cell H1 automatically?

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,365

    Re: Automatic date change

    Change it in what way? Maybe this?

    =TODAY()

  9. #9
    Registered User
    Join Date
    12-30-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    74

    Re: Automatic date change

    Got it =(TODAY()), I am getting better. Thanks anyway

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,365

    Re: Automatic date change

    You don't need the outer brackets (see post #8).

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. automatic insert date without change in future with VB code
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-01-2016, 09:35 AM
  2. Automatic date Change
    By Deanbh in forum Excel General
    Replies: 5
    Last Post: 07-15-2014, 05:42 AM
  3. Automatic time and date change
    By hitech357 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-14-2014, 04:21 PM
  4. automatic change of date according to month
    By marija144 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2013, 05:09 PM
  5. Excel formula for color change and automatic Date Changes
    By ashhm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-06-2012, 11:07 AM
  6. [SOLVED] Automatic Date Update/Change
    By *C* in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-27-2012, 02:59 PM
  7. Change date automatic in an excel column
    By Dahlgren in forum Excel General
    Replies: 2
    Last Post: 04-22-2012, 11:05 PM

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