+ Reply to Thread
Results 1 to 6 of 6

Match dates in column B with column A across worksheets and sum any amounts in column G

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Visalia, CA, USA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    2

    Match dates in column B with column A across worksheets and sum any amounts in column G

    Hello and thank you in advance!

    I have a desire that is more complex then I have been able to solve on my own. I've searched the forum and apologize if I missed any post that already answers.

    What I am trying to do is to put a formula in cell AC4 of the worksheet Sonny_s Daily Sales would check column A of the worksheet Sonny_s Invoices for a date that matches cell B4 of the worksheet Sonny_s Daily Sales. If the dates match I would like it to sum any amounts in column G of the worksheet in the worksheet Sonny_s Invoices. I say sum because sometimes there would just be one matching row in the second worksheet but other times there can be more than one row as can be seen for the date 28-Jun in the worksheet Sonny_s Invoices.

    THe actual spreadsheet is attached below. This formula will be copied down through the worksheet Sonny_s Daily Sales and also copied to the other *_Daily Sales Worksheets.
    June 2012 Daily Sales Report.xls
    Last edited by daddywine; 06-30-2012 at 02:52 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Formula Needed

    Look at SUMIF or possibly SUMIFS if you have multiple conditions. If you have multiple conditions and your version of Excel doesn't support SUMIFS, use SUMPRODUCT.

    regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-29-2012
    Location
    Visalia, CA, USA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    2

    Re: Formula Needed

    Hello and thank you TMS.

    I have looked at those formula arguments and cannot figure out how I could use them for this situation. If you wouldn't mind giving me an example I would greatly appreciate it.

    Thanking you in advance,
    Sonny

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Match dates in column B with column A across worksheets and sum any amounts in column

    =SUMIF('Sonny_s Invoices'!A:A,B4,'Sonny_s Invoices'!G:G)

    Regards, TMS

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Formula Needed

    The syntax for the SumIf function is:

    SumIf( range, criteria, sum_range )

    range is the range of cells that you want to apply the criteria against.

    criteria is used to determine which cells to add.

    sum_range are the cells to sum.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Match dates in column B with column A across worksheets and sum any amounts in column

    Thanks for the rep. Glad that I could help.

    Regards, TMS

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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