+ Reply to Thread
Results 1 to 5 of 5

Find Text Within Table, Return First Row Date, Then Compare to Today's Date

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    Lincoln, UK
    MS-Off Ver
    2013
    Posts
    37

    Find Text Within Table, Return First Row Date, Then Compare to Today's Date

    Hi -

    I'm looking for a good way to search a personnel table for specific text in one column (wildcard method might be better, as I don't think all the instances are typed in exactly the same manner?).

    On finding this text, I need the formula to return the value in column 1, which is a date, and compare this date to 'check the date in column 1 isn't MORE than X YEARS older than today's date'?

    Today's date is a cell on the sheet.

    I've attached a basic mock-up which hopefully explains what I'm after.

    I can get the finding of the word formula working but not the date bit after that!

    Thanks,

    Stuart
    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
    80,780

    Re: Find Text Within Table, Return First Row Date, Then Compare to Today's Date

    Where are the said values meant to go? Where is the personnel table?
    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
    04-14-2015
    Location
    Lincoln, UK
    MS-Off Ver
    2013
    Posts
    37

    Re: Find Text Within Table, Return First Row Date, Then Compare to Today's Date

    Hi AliGW -

    The formula can go anywhere really, though the shaded cell A11 is the original destination, though I obviously put text in that.

    There are about 50 table for different people but this is one example. I'd be using the same formula on each tab to be honest

    Thanks,

    Stuart

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Find Text Within Table, Return First Row Date, Then Compare to Today's Date

    Not sure I get this right, Please try

    =N(SUMPRODUCT(N(B2-ISNUMBER(SEARCH("FIRST AID",G3:G16))*D3:D16<365*3))>0)

  5. #5
    Registered User
    Join Date
    04-14-2015
    Location
    Lincoln, UK
    MS-Off Ver
    2013
    Posts
    37

    Re: Find Text Within Table, Return First Row Date, Then Compare to Today's Date

    Worked a treat, thank you so much

    Thanks,

    Stuart

+ 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] Return a text based on today's date (not considering year)
    By ricdamiani in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2018, 07:19 AM
  2. Index Match using Min to find a text value based on the closest date to today
    By Ericpinkel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-04-2018, 09:38 PM
  3. Reading Date from text file and compare today date
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2017, 03:07 AM
  4. Replies: 4
    Last Post: 03-30-2015, 03:20 PM
  5. [SOLVED] Formula to compare date (including month and year) from a listed date to today's date
    By mhewitson15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 05:31 PM
  6. Convert text mm-dd-yy date from external file & compare to TODAY()
    By Frontier in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-02-2014, 01:43 PM
  7. [SOLVED] Search a table and return value based on today's date
    By her.rockstar in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 05-16-2013, 10:29 AM

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