+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    05-07-2009
    Location
    Chesham,England
    MS-Off Ver
    Excel 2003 (11.5612.5606)
    Posts
    30

    searching two columns

    Hi Folks,

    Is there a good way to check two columns at the same time and return the value in the 3rd?

    Example

    12 0.07 8
    12 0.37 10
    12 0.82 12
    12 1.30 15
    12 3.90 22
    12 8.00 28
    12 15.00 35

    I look for 12 in the first column with vlookup but I need to also look for a figure in the 2nd column which is greater than my figure.

    So say I want 12 & 6.0 I would want the formula result to be 28 because the nearest larger number in the table column 2 is 8.00.

    Cheers

    Martyn
    Last edited by martynduerden; 08-06-2009 at 04:47 PM.

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,132

    Re: searching two columns

    If your table is in A1:C7, try:

    =INDEX(C1:C7,MATCH(1,INDEX((A1:A7=12)*(B1:B7>=6),0),0))

    replace 12 and 6 with cell references if desired.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    05-07-2009
    Location
    Chesham,England
    MS-Off Ver
    Excel 2003 (11.5612.5606)
    Posts
    30

    Re: searching two columns

    Thank you very much

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0