+ Reply to Thread
Results 1 to 4 of 4

count occurrenced of today's date in cells where the date is imbedded in other text

  1. #1
    Registered User
    Join Date
    11-18-2014
    Location
    Sydney Australia
    MS-Off Ver
    Windows 7 professional
    Posts
    10

    count occurrenced of today's date in cells where the date is imbedded in other text

    Hi All!

    I need to count the number of times today's date appears in a specific collumn in another workbook that I have open simultaneously. The date can appear with text either before or after it, for example "online 5/02/2015 SM" or "5/02/2015 AM". I can put today's date in a reference cell on my primary work sheet and use "=COUNTIF(INDIRECT("'[0TV Callsheet Questionaire 2014.xlsm]New Callsheet - Norm'!G8:G1000" ),A1)" where A1 is my reference cell. This will count the number of occurrences of the date but only if the date occurs by itself with no other text in the source cell. I have tried =COUNTIF(INDIRECT("'[0TV Callsheet Questionaire 2014.xlsm]New Callsheet - Norm'!G8:G1000" ),"*"&A1&"*") but this returns a value of zero. How can I get excel to count the dates even when they are imbedded with other text? Thank you for any help. Regards, Itzik

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,432

    Re: count occurrenced of today's date in cells where the date is imbedded in other text

    A date is just a number to Excel. Try it like this:

    =COUNTIF(INDIRECT("'[0TV Callsheet Questionaire 2014.xlsm]New Callsheet - Norm'!G8:G1000"),"*"&TEXT(A1,"d/mm/yyyy")&"*")

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-18-2014
    Location
    Sydney Australia
    MS-Off Ver
    Windows 7 professional
    Posts
    10

    Re: count occurrenced of today's date in cells where the date is imbedded in other text

    Beautiful! This seems to be working a treat! Thanks so much Pete! I have been playing with this for two days trying to get it to work! Regards, Itzik.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,432

    Re: count occurrenced of today's date in cells where the date is imbedded in other text

    Glad to be able to help.

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

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Count blank cells up to today's date
    By LHOWE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-24-2014, 11:53 AM
  2. [SOLVED] Count all cells containing a certain text value by row date relative to 'today'
    By itchy20 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2014, 07:55 AM
  3. [SOLVED] Count number of cells with date <today's date
    By Cachod1 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-27-2006, 10:40 PM
  4. count the number of cells within a column with a date <= today's d
    By Cachod1 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-27-2006, 07:30 PM
  5. [SOLVED] count the number of cells with a date <= today's date
    By Cachod1 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-27-2006, 05:20 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