+ Reply to Thread
Results 1 to 3 of 3

Formula for matching values in two different sheets, then getting a sum?

  1. #1
    Registered User
    Join Date
    08-13-2014
    Location
    Wigan
    MS-Off Ver
    MS 2007
    Posts
    1

    Formula for matching values in two different sheets, then getting a sum?

    Can anyone help me with this?

    I have a spreadsheet where I have two different sheets; a summary sheet, and a more detailed sheet that lists out items on invoices.

    The summary sheet shows invoice number, amount invoiced, and total paid against that invoice.

    The detailed sheet goes into more details, and shows whats on the invoice, and any reasons for them not being paid.

    I want a formula on the summary sheet that picks up the invoice numer from the details sheet, and then brings through the figures. The details sheet may have more than one line for an invoice number, so the formula needs to be able to add up too.

    I've tried a vlookup, but it doesnt seem to work, and I dont think it will do what I want.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Formula for matching values in two different sheets, then getting a sum?

    It's hard to say without a sample spreadsheet, but maybe a vlookup/match

    If the headers match on each page: ("Invoice Number", "Invoice Balance" "Date" and so on are all identically spelled and typed, in the same order)

    =VLOOKUP(invoice_number_cell,details_sheet,MATCH(header_on_summary_sheet,ALL_headers_on_details_sheet,0),0)

    It would look something like this
    =VLOOKUP($A2,$A$4:$D$11,MATCH(B$1,Details!$B$1:$I$1,0),0)
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

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

    Re: Formula for matching values in two different sheets, then getting a sum?

    You could probably use SUMIF or SUMIFS for this, and if you attach a sample workbook (the FAQ describes how to) then we could confirm that.

    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. [SOLVED] Help, Formula for Matching Like Values Across 2 Sheets and Returning A Value
    By youngmp502 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-20-2013, 08:52 PM
  2. [SOLVED] Matching Values in Two Sheets for Databasing
    By smutimer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2013, 08:06 PM
  3. [SOLVED] Formula to match data ( multi column) in different sheets and return matching values
    By kangyao in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-17-2013, 08:49 PM
  4. [SOLVED] Formula to match data in different sheets ( multi column) and return matching values
    By kangyao in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2013, 07:38 PM
  5. Help on Matching and Copying Values In Two Different Sheets
    By sylink in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2006, 12:50 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