+ Reply to Thread
Results 1 to 5 of 5

Use Vlookup on 2 Columns?

  1. #1
    Forum Contributor
    Join Date
    09-06-2011
    Location
    manchester england
    MS-Off Ver
    Office 365
    Posts
    307

    Use Vlookup on 2 Columns?

    I am trying to use Vlookup to select a cell when two criteria are correct, but I think it maybe the wrong thing to use.

    If anyone can help please.

    On the enclosed sheet on Gully tab I am trying to get column N to lookup columns A & C and then check on the drun tab for the rows that equal columns A & C and return the value in column H on the Drun tab. So on the highlighted cell it would look for S5 in column A and S6 in column C, going to the drun sheet this would then return the value of 375.

    Is this possible to do?
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Use Vlookup on 2 Columns?

    You can use this formula in N11:

    =SUMIFS(DRuns!$H$12:$H$55,DRuns!$A$12:$A$55,A11,DRuns!$C$12:$C$55,C11)

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Use Vlookup on 2 Columns?

    Try this:

    =IFERROR(1/(1/INDEX(DRuns!$H$12:$H$55,MATCH(1,INDEX((DRuns!A$12:A$55=Gully!A11)*(DRuns!$C$12:$C$55=Gully!C11),0),0))),"")

    I put it in Q as you have some data validation in n that needs to be removed.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Contributor
    Join Date
    09-06-2011
    Location
    manchester england
    MS-Off Ver
    Office 365
    Posts
    307

    Re: Use Vlookup on 2 Columns?

    Thank you both for your help, they both worked perfectly

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Use Vlookup on 2 Columns?

    Glad to help - thanks for feeding back.

    Pete

+ 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: 5
    Last Post: 07-15-2019, 11:32 AM
  2. [SOLVED] Sum multiple columns using a VLOOKUP only if the columns have a value
    By pareid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-04-2016, 09:29 AM
  3. [SOLVED] Nested Vlookup, or Vlookup that looks at two columns, not just one?
    By FirestarZA in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2014, 08:18 AM
  4. Vlookup Help (2 columns)
    By PADDY GODFREY in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-21-2013, 12:38 PM
  5. VLOOKUP 2 Columns ?
    By sswcharlie in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-11-2009, 03:18 AM
  6. =vlookup on 2 columns
    By Mike in forum Excel General
    Replies: 4
    Last Post: 02-11-2006, 07:00 PM
  7. VLOOKUP Across Two Columns
    By SamuelT in forum Excel General
    Replies: 2
    Last Post: 01-06-2006, 12:20 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