+ Reply to Thread
Results 1 to 4 of 4

How to search for a value within a range and return a corresponding text identifier

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    24

    How to search for a value within a range and return a corresponding text identifier

    I have a range of data max and min from 1000 to 0 corresponding to text identifiers (I, A-F). If I know the price of an item, I want to search for this price in the range and return the corresponding text identifier.

    I have uploaded the sheet. I want to search for the item price within the range B:C and return the corresponding grade.
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to search for a value within a range and return a corresponding text identifier

    Try this array formula** entered in I4 and copied down:

    =INDEX(A$4:A$12,MATCH(1,IF(B$4:B$12>=H4,IF(C$4:C$12<=H4,1)),0))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    06-20-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: How to search for a value within a range and return a corresponding text identifier

    Tony - Thank you very much for that. That works perfectly. I was struggling with this for a while so your help us much appreciated.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to search for a value within a range and return a corresponding text identifier

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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