+ Reply to Thread
Results 1 to 4 of 4

Lookup value then if value falls within date range

Hybrid View

  1. #1
    Registered User
    Join Date
    10-20-2021
    Location
    Sydney
    MS-Off Ver
    365
    Posts
    2

    Lookup value then if value falls within date range

    Hi,

    Newbie here ... Can anyone assist with what I am sure is a simple formula.

    I would like to look up the value in A2 (459172) from E2:E13 and once found (E3) return "Yes" or "No" if the date in B2 (24/07/2021) is within the range shown in columns F and G. In this instance it would show "No".

    Thanks in advance for your help.


    Acct_Lookup_Date.JPG
    Last edited by Todd_Mate; 10-20-2021 at 07:42 PM.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,982

    Re: Lookup value then if value falls within date range

    Hi,

    Try this in C2:

    =IF(COUNTIFS(E:E,A2,F:F,"<="&B2,G:G,">="&B2)>0,"Yes","No")

  3. #3
    Registered User
    Join Date
    10-20-2021
    Location
    Sydney
    MS-Off Ver
    365
    Posts
    2

    Re: Lookup value then if value falls within date range

    Brilliant, thank you. Worked perfectly.

  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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,585

    Re: Lookup value then if value falls within date range

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    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.

+ 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. Replies: 7
    Last Post: 07-14-2017, 12:04 PM
  2. Lookup Value if number falls in range in same row
    By fadzie21 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2015, 11:50 PM
  3. Highlight a date range if today's date falls within that range
    By sdarnell in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2014, 10:03 AM
  4. Search date range +/- 7 days and return date that falls within range
    By tlafferty in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-13-2013, 03:26 PM
  5. Replies: 4
    Last Post: 05-22-2013, 04:15 AM
  6. Replies: 15
    Last Post: 04-08-2013, 12:40 PM
  7. Mark cell if location matches and date falls between date range
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2012, 07:54 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