+ Reply to Thread
Results 1 to 8 of 8

Trying to do a lookup and not having any luck

  1. #1
    Registered User
    Join Date
    08-05-2009
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2007
    Posts
    70

    Trying to do a lookup and not having any luck

    Hello all!

    I've become, thanks to you guys, pretty good at figuring out match/index/vlookup/sumifs stuff, this one's got me stumped - probably because of a text/numeric issue. Attached is a small spreadsheet, where I have an invoice and a dollar amount associated with it. There's a small data table next to it, with invoices, amounts, and a text value. I'm in need of a formula that will look at the invoice number, it's amount, then go over to the data table, find the same invoice number and amount, then put the corresponding text value in the cell. Thought I had it a few times, but keep getting errors.

    Bear in mind that invoices often will repeat themselves, but have different amounts. It's not a concern if an invoice repeats itself and has the same dollar value. Those are valid, and it's assumed that the same text value would be returned in those instances.

    Any suggestions?

    THANKS
    Rick
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,882

    Re: Trying to do a lookup and not having any luck

    Try

    =IFERROR(INDEX($P$2:$P$21,MATCH($C3&$E3,$N$2:$N$21&$O$2:$O$21,0)),"")

    Enter with Ctrl+Shift+Enter

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Trying to do a lookup and not having any luck

    In J3

    =IFERROR(INDEX($P$2:$P$21,MATCH(1,INDEX(($N$2:$N$21=C3)*($O$2:$O$21=E3),0),0)),"")

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Trying to do a lookup and not having any luck

    In J3, use array formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Trying to do a lookup and not having any luck

    Try this in J3

    =IFERROR(LOOKUP(2,1/(($N$2:$N$21=C3)*($O$2:$O$21=E3)),$P$2:$P$21),"No Match")

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,882

    Re: Trying to do a lookup and not having any luck

    Incorrect reply: my apologies.
    Last edited by JohnTopley; 02-04-2016 at 04:18 PM.

  7. #7
    Registered User
    Join Date
    08-05-2009
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Trying to do a lookup and not having any luck

    Works great... THANK YOU!!

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Trying to do a lookup and not having any luck

    You're welcome.

+ 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. Searching for 2 criteria - trying Index/Match with no luck
    By notsamsnead in forum Excel General
    Replies: 6
    Last Post: 11-11-2015, 12:28 AM
  2. Replies: 3
    Last Post: 08-15-2014, 07:54 AM
  3. Replies: 1
    Last Post: 08-15-2013, 11:04 PM
  4. [SOLVED] Trying to merge two formulas with no luck
    By jonahbosworth in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-16-2013, 01:02 PM
  5. [SOLVED] Excel 2007 : Formula help - not having luck with LOOKUP
    By heatherromo in forum Excel General
    Replies: 3
    Last Post: 03-09-2012, 01:39 PM
  6. trying to populate sheets and no luck with VLOOKUP
    By fleeper in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-28-2008, 02:18 PM
  7. [SOLVED] Pushing my luck
    By gb_S49 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-11-2005, 01:06 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