+ Reply to Thread
Results 1 to 3 of 3

Thread: looking up two values in two columns and return the values in the third column

  1. #1
    Registered User
    Join Date
    04-24-2008
    Posts
    2

    looking up two values in two columns and return the values in the third column

    Hi

    I'm trying to look up for two values as well but they are not exact values. Specifically, I'm looking to pick a "supply unit" based on the amperage i need at the two voltages that are supplied. So the data in the look up table will be

    115V /230V /Model#
    0A /10A /1
    1.1A /2.1A /2
    1.4A /4.1A /3
    1.7A /5A /4
    1.7A /6.1A /5
    5A /2A /6
    5A /5A /7
    5A /7A /8
    10A /0A /9


    The lookup value could be something like 4.7A at 115V and 6.1 at 230V. I would need the formula to pick model #8.

    I tried something like this so far.
    =INDEX(Transformer!N4:P13,MATCH(Z52,OFFSET(Transfo rmer!O4,MATCH(Z51,Transformer!N4:N13,1),0,14),1)+M ATCH(Z51,Transformer!N4:N13,1)+1,3)

    Thanks to anyone who attempts to tickle this problem.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636
    If you can get rid of the A's in each cell, then you could have an simpler formula,

    e.g.

    =INDEX(Transformer!$P$5:$P$13,MATCH(1,(Transformer!$N$5:$N$13>=Z51)*(Transformer!$O$5:$O$13>=Z52),0))
    else you would need to extract the numbers...

    e.g.

    =INDEX(Transformer!$P$5:$P$13,MATCH(1,(LEFT(Transformer!$N$5:$N$13,FIND("A",Transformer!$N$5:$N$13)-1)+0>=LEFT(Z51,FIND("A",Z51)-1)+0)*(LEFT(Transformer!$O$5:$O$13,FIND("A",Transformer!$O$5:$O$13)-1)+0>=LEFT(Z52,FIND("A",Z52)-1)+0),0))
    Note: Either formula needs to be confirmed with CTRL+SHIFT+ENTER not just ENTER... you will see { } brackets appear around the formula.
    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
    Valued Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Venezuela
    Posts
    696
    If your model numbers are just numbers with no text strings you could actually use a simple sumproduct formula:

    =SUMPRODUCT((N4:N13=Z51)*(O4:O13=Z52)*P4:P13)
    - Portuga

    There is no such thing as a problem, only a temporary lack of a solution


    In formulas,you might need to replace ; with , depending on your XL version

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