+ Reply to Thread
Results 1 to 23 of 23

Multple Criteria "Vlookup"

  1. #1
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Multple Criteria "Vlookup"

    Essentially I want to do a lookup matching multiple criteria that is referencing a multitude of other formulas.

    The Formula I have now is doing something right as when I have a match I get #N/A and when I don't I get #Value

    I just need it to return the correct cell. Here is what I have:

    Please Login or Register  to view this content.
    Note that the first value I'm trying to match is a particular.

    I want to say if column B contains the T4 value and in the same row column F matches exactly O4 then return the 5th columns value.

    I hope that all makes sense.

    Thanks for any advice that you can offer!

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

    Re: Multple Criteria "Vlookup"

    Untested
    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Multple Criteria "Vlookup"

    That is working to reference everything, but the returning value isn't coming back correct it's coming back as 0. It should return column 5 of the row where those two arguments are valid.

  4. #4
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Multple Criteria "Vlookup"

    I am getting some info finally with the formula, but they are not matching what they should. I think it may have to do with the "contains" first lookup. Does anyone have any suggestions?

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Multple Criteria "Vlookup"

    Can you post a SMALL sample file and show us what result you expect?

    A SMALL sample file will have about 20 rows and about 4-5 columns of data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Multple Criteria "Vlookup"

    I think I may know a portion of it is that the first lookup is not unique.

    A little history on this file. I've removed some tabs that arent important to the issue. The formula I am trying to create is in a living document, when the document is "updated" the formulas will update and find the relevant information. It needs to find the correct processor number and the matching dollar values.

    Here is a sample file.

    The formula column is highlighted in yellow.

    http://www.sendspace.com/file/z85d29

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Multple Criteria "Vlookup"

    Please upload your workbook to the forum, not all members are able - or willing - to download files from file-hosting sites
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Multple Criteria "Vlookup"

    How do I go about doing that?

  9. #9
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Multple Criteria "Vlookup"

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Multple Criteria "Vlookup"

    Quote Originally Posted by NotSwank View Post

    Here is a sample file.

    http://www.sendspace.com/file/z85d29
    Sorry, that file is too big for me (165kb) plus it's got VBA code.

    On a side note...

    [rant]

    99% of free file hosting sites suck!

    There were 4 "Download" buttons on the page. Which one was to download the file? Those A-holes intentionally make it confusing so that you'll click the wrong "Download" button and get blasted with more ads (or worse!). Effing A-holes!

    [/rant]


  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Multple Criteria "Vlookup"

    +1 to that, Tony

  12. #12
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Multple Criteria "Vlookup"

    Bank Recon Sample File.xlsx

    Sorry about that folks! I appreciate the help very much!

  13. #13
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Multple Criteria "Vlookup"

    I removed the VBA also, FYI.

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Multple Criteria "Vlookup"

    OK, I downloaded your file.

    Can you explain what you want to do based on this sample file? Be very specific!

    The formula in column U of the Deposits sheet refers to a file named Bank Recon2.xlsm. I assume that was your original posted sample file?

  15. #15
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Multple Criteria "Vlookup"

    Yeah that was the original.

    Lets use Deposit Tab - Row 17 as an example. I want a formula in U17 to lookup T17 to find in Column B of Tab "Statement Copy" the row that contains T17 (there are extra digits in column B) and also Lookup O14 in Column F of tab "Statement Copy", having the Number returned in column G where the row matches both criteria.

    In T17 example I'd expect it to return Cell G5 of the Statement Copy Tab or "9488893532"

    Thanks for your help Tony!

  16. #16
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Multple Criteria "Vlookup"

    Ideally there should only be one combination of both the numbers.

  17. #17
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Multple Criteria "Vlookup"

    Quote Originally Posted by NotSwank View Post
    Yeah that was the original.

    Lets use Deposit Tab - Row 17 as an example. I want a formula in U17 to lookup T17 to find in Column B of Tab "Statement Copy" the row that contains T17 (there are extra digits in column B)
    OK, I understand that much...

    and also Lookup O14 in Column F of tab "Statement Copy", having the Number returned in column G where the row matches both criteria.
    But I'm totally confused with that!

    Did you mean lookup O17?

    Is this what you want to do...

    Lookup O17 in column F of the Statement Copy sheet and lookup T17 in column B of the Statement Copy sheet and return the value from the corresponding cell in column G of the Statement Copy sheet

  18. #18
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Multple Criteria "Vlookup"

    Quote Originally Posted by Tony Valko View Post
    Lookup O17 in column F of the Statement Copy sheet and lookup T17 in column B of the Statement Copy sheet and return the value from the corresponding cell in column G of the Statement Copy sheet
    That is exactly this. I meant O17.

  19. #19
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Multple Criteria "Vlookup"

    Try this array formula** entered in U4 on the Deposits sheet:

    =IFERROR(INDEX('Statement Copy'!G$3:G$15,MATCH(O4,IF(ISNUMBER(FIND(T4,'Statement Copy'!B$3:B$15)),'Statement Copy'!F$3:F$15),0)),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down as needed.

  20. #20
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Multple Criteria "Vlookup"

    Is there anyway to automate CTRL SHIFT ENTER? or do a whole column at once?

  21. #21
    Registered User
    Join Date
    02-15-2014
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    76

    Re: Multple Criteria "Vlookup"

    BTW the worked great! I'm using JEtReports so it duplicates the rows automatically. I think I will have to set a macro to duplicate the CTRL,SHIFT,ENTER.

  22. #22
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Multple Criteria "Vlookup"

    Once you do CNTRL SHFT ENTER, you can copy and paste and the contrl shft enter (array) attribute pastes right along with it.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  23. #23
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Multple Criteria "Vlookup"

    Good deal. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] Find multiple "text" criteria and return as ""Yes" in Matrix
    By bertrand82 in forum Excel General
    Replies: 11
    Last Post: 04-30-2012, 09:20 AM
  3. Performing "SUMIF" where "range" & criteria" are texts
    By joseedua in forum Excel General
    Replies: 1
    Last Post: 02-11-2010, 01:09 PM
  4. Replies: 0
    Last Post: 07-09-2009, 04:07 PM
  5. [SOLVED] IF(VLOOKUP("MYDATA", MYNAME, 4) = 0, "TRUE", "FALSE")
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2005, 01:05 AM

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