+ Reply to Thread
Results 1 to 5 of 5

Return 2 values from vlookup

  1. #1
    Registered User
    Join Date
    03-15-2007
    Posts
    53

    Return 2 values from vlookup

    in column a we have number 1, 3, 7, 12, 15 and in B respectively 10, 20, 30, 40 ,50. what I need is to be able to look up a decimal number like 2.1 that will return from A the number closest above and closest below its value, and its respective number in B. In this example it would return 1 & 10 then 3 & 20.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Assuming that your values in your first column are in accending order (like your example), I would use the INDEX and MATCH functions.
    Assuming the value you are looking for is in E1 and your data is in A1:B6
    Please Login or Register  to view this content.
    To get the next higher value just add one to the second argument
    Please Login or Register  to view this content.
    Does this work for you?

    ChemistB

  3. #3
    Registered User
    Join Date
    03-15-2007
    Posts
    53
    works perfectly ty for your time

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    This will return misleading values if the lookup value is exactly matched.

    Should include an if statement to test.

    HTH

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Good Point Cheeky. I'm not sure what the user wants in that case, the exact match and the one above or the one below?

    ChemistB

+ 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. Index Match or Vlookup to return values?
    By Chesney95 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-30-2007, 11:05 AM
  2. VLOOKUP and multiple values
    By pavemar in forum Excel General
    Replies: 4
    Last Post: 09-17-2007, 11:49 AM
  3. SUMing several VLOOKUP Values
    By aikorei in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2007, 07:51 PM
  4. Two lookup values, vlookup
    By cbh35711 in forum Excel General
    Replies: 9
    Last Post: 04-05-2007, 04:55 PM
  5. Replies: 1
    Last Post: 10-05-2006, 05:56 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