+ Reply to Thread
Results 1 to 2 of 2

Vlookup within a range of values

  1. #1
    Registered User
    Join Date
    05-19-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    1

    Vlookup within a range of values

    I would like to Look up the number below in sheet2, to determine what range the number is contained within from sheet1, and add the resultant code to sheet2. Can this be done using the Vlookup formula or is there a better way




    Sheet1

    Start End Code
    1200000 1200999 BBHB
    1202000 1202999 BBHB
    1204000 1204999 BBHB
    2320000 2320999 CRAB
    2322000 2323999 CRAB
    2324000 2324999 CRAB
    2334000 2334999 DBNB
    2370000 2370999 DBNB
    2375000 2375999 DBNB
    2376000 2376999 CGAB

    Sheet2

    Number Result
    1202678 BBHB
    1204123 BBHB
    2321678 CRAB

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup within a range of values

    use LOOKUP()

    e.g.

    =Lookup(A2,Sheet1!$A$1:$C$100)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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