+ Reply to Thread
Results 1 to 4 of 4

Lookup Formula Based on Range

  1. #1
    Registered User
    Join Date
    05-05-2021
    Location
    England
    MS-Off Ver
    MS Office 365 - Excel
    Posts
    2

    Lookup Formula Based on Range

    Hi

    I am looking for a formula that will fill in a value from a lookup list. However, the value to lookup is to fall within a number range that is between a value in 2 columns. There is also a column for ref number. The ref number to lookup has to equal the ref number in the lookup list.

    In the attached file, I am looking to populate the region in column H, from the list in columns A to D, where the ref number in column F equals the ref number in column A, and the value in column G is between the values in columns B and C. I have highlighted in red the values I want to return with a formula.

    I am thinking this needs a combination of Min/Max/Index/Match but am not sure how to go about this. Please can someone help me!

    Thanks
    Attached Files Attached Files

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

    Re: Lookup Formula Based on Range

    You can use this array* formula in H2:

    =INDEX($D$2:$D$6,MATCH(1,(F2=$A$2:$A$6)*(G2>=$B$2:$B$6)*(G2<$C$2:$C$6),0))

    *Note that an array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual Enter.

    Copy down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-05-2021
    Location
    England
    MS-Off Ver
    MS Office 365 - Excel
    Posts
    2

    Re: Lookup Formula Based on Range

    That's great. Thank you Pete.

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

    Re: Lookup Formula Based on Range

    You're welcome - glad to help.

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

    You might also 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] Need formula to provide sums from a lookup range for a lookup-range group of values
    By attilathepun in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-29-2018, 08:24 PM
  2. [SOLVED] [Formula] Lookup based on two range values
    By synergeticink in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2018, 03:49 PM
  3. Lookup Based on Range
    By bbogner in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-14-2017, 07:39 PM
  4. [SOLVED] Lookup value based on range and unique ID
    By Prince Dakkar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2014, 09:41 AM
  5. [SOLVED] Formula to Lookup value based on date within a date range
    By MHamid in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-26-2013, 02:24 PM
  6. lookup and return a value based on a range
    By mamig in forum Excel General
    Replies: 2
    Last Post: 03-25-2011, 12:50 PM
  7. [SOLVED] Lookup based on range of dates
    By dls2193 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-30-2006, 06:25 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