+ Reply to Thread
Results 1 to 9 of 9

Lookup Based on Range

  1. #1
    Registered User
    Join Date
    01-12-2015
    Location
    Nebraska, USA
    MS-Off Ver
    2007
    Posts
    19

    Lookup Based on Range

    I cannot get number to return based on range. For example I want to enter 3.5 into B2 and then have it search a table G2:G30 with corresponding values in H2:H30 and return the value on C2. The 3.5 would be in the G column with an associated value in H.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Lookup Based on Range

    Try this in C2:

    =INDEX(H:H,MATCH(B2,G:G,0))

  3. #3
    Registered User
    Join Date
    01-12-2015
    Location
    Nebraska, USA
    MS-Off Ver
    2007
    Posts
    19

    Re: Lookup Based on Range

    I tried that formula and it comes up with #N/A. I am entering a 3.5 and there is a percentage value i am trying to return.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Lookup Based on Range

    If that formula returned #N/A, that means that there are no cells in column G with 3.5 in it (or they are formatted as text, or have a leading/trailing space, etc.).

    If you upload a small representative sample, along with the desired result of a working formula, we can trouble shoot it for you.

  5. #5
    Registered User
    Join Date
    01-12-2015
    Location
    Nebraska, USA
    MS-Off Ver
    2007
    Posts
    19

    Re: Lookup Based on Range

    B C G
    3.5 #N/A 1 33%
    3.6 #N/A 1.1 37%
    3.7 #N/A 1.2 40%
    3.8 #N/A 1.3 43%
    3.9 #N/A 1.4 47%
    3.10 #N/A 1.5 50%
    3.11 #N/A 1.6 53%

    Does it matter that H is a formula? The number go all the way till 4

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Lookup Based on Range

    Please upload an actual Excel workbook.

    Make sure there is just enough data to demonstrate your need.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  7. #7
    Registered User
    Join Date
    01-12-2015
    Location
    Nebraska, USA
    MS-Off Ver
    2007
    Posts
    19

    Re: Lookup Based on Range

    3.5 #n/a 1.00 33%
    3.6 #n/a 1.10 37%
    3.7 #n/a 1.20 40%
    3.8 #n/a 1.30 43%
    3.9 #n/a 1.40 47%
    4.0 #n/a 1.50 50%
    3.11 #n/a 1.60 53%
    1.70 57%
    1.80 60%
    1.90 63%
    2.00 67%
    2.10 70%
    2.40 80%
    2.50 83%
    2.60 87%
    2.70 90%
    2.80 93%
    2.90 97%
    3.00 100%
    3.10 103%
    3.20 107%
    3.30 110%
    3.40 113%
    3.50 117%
    3.60 120%
    3.70 123%
    3.80 127%
    3.90 130%
    4.00 133%

  8. #8
    Registered User
    Join Date
    01-12-2015
    Location
    Nebraska, USA
    MS-Off Ver
    2007
    Posts
    19

    Re: Lookup Based on Range

    Attached file
    Attached Files Attached Files

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Lookup Based on Range

    bbogner the numbers in column B are not numbers but text "numbers". You can demonstrate this for yourself. In E2 enter this formula and copy down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Those need to be converted to numbers. One way to do that is to select all the data in column B and use the Text to columns feature.

    Now try 63falcondude's solution.
    Dave

+ 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] Calculations based on date range lookup
    By goldfield in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2016, 11:36 AM
  2. [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
  3. lookup value based on date range
    By shcsbaker in forum Excel General
    Replies: 4
    Last Post: 06-11-2014, 01:01 PM
  4. Average of range based on lookup
    By MISC_IT in forum Excel General
    Replies: 7
    Last Post: 07-01-2012, 02:57 PM
  5. 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
  6. sum a range based on a starting lookup value
    By jasonanthony in forum Excel General
    Replies: 4
    Last Post: 03-02-2009, 04:38 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