+ Reply to Thread
Results 1 to 6 of 6

Vlookup requiring 2 columns to match before presenting data.may include multiple rows

  1. #1
    Registered User
    Join Date
    11-30-2011
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    7

    Vlookup requiring 2 columns to match before presenting data.may include multiple rows

    Hi All,

    I am making a reconciliation process for agency staff invoices we pay out. There is one formula I need that I will use quite a few times in this.

    From the attachment I have created a dummy with one scenario. Tab "invoice approval log" contains invoices as we log that have been approved for payment. This includes staff ID numbers, the week ending date the invoice relates to and the net value. Tab "timesheet costs" is the costs created by the timesheet system when employees enter their timesheets. Here I need to check what we pay out matches what the timesheet systems says we should pay out. In the column highlighted in orange, i would like a lookup that will check columns A and B (staff ID and timesheet w/e and find the matches on tab "invoice approval.." and then provide the net value. Also in tab 2 there maybe more than 1 invoice for the same staff ID number and W/E so it needs to add all matches up. I guess a pivot table could be used first for this to total items up but would be nice if this wasn't necessary.

    Cheers,

    Shane
    Attached Files Attached Files
    Last edited by Shane21882; 03-01-2012 at 05:07 AM. Reason: Solved

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

    Re: Vlookup requiring 2 columns to match before presenting data.may include multiple

    Try this in 'Timesheet costs'!E4

    =SUMIFS('Invoice approval log'!$F$4:$F$35,'Invoice approval log'!$B$4:$B$35,A4,'Invoice approval log'!$C$4:$C$35, B4)
    Is that what you are looking for?
    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

  3. #3
    Registered User
    Join Date
    11-30-2011
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Vlookup requiring 2 columns to match before presenting data.may include multiple

    Ah that will do the trick cheers. I put it in that cell but changed the columns to the letters as below as it came up with zero, but works now. Cheers

    =SUMIFS('Invoice approval log'!$E$4:$E$35,'Invoice approval log'!$A$4:$A$35,A4,'Invoice approval log'!$B$4:$B$35, B4)

  4. #4
    Registered User
    Join Date
    11-30-2011
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Vlookup requiring 2 columns to match before presenting data.may include multiple

    ah how do I make this solved? lol

  5. #5
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Vlookup requiring 2 columns to match before presenting data.may include multiple

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  6. #6
    Registered User
    Join Date
    11-30-2011
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Vlookup requiring 2 columns to match before presenting data.may include multiple

    All done

    solved

+ Reply to Thread

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.6.0 RC 1