Add cells from two different sheets with date variable

klaimkilla

New Member
Joined
Jul 9, 2008
Messages
11
Hi All! So I'm interning in the catering department of a hotel, and I would love some help streamlining one our reports that has to be done by hand. The first two images are from the same workbook, just different sheets/tabs.

This is our Catering Sheet. Once the event is over, we plug in the actual totals into Column F.
CateringTabPace2011.jpg


This is our Sales Sheet (Same workbook). We need to add the totals from Column F in the Catering tab (1st image) BY DATE with the totals in Column E BY DATE in the Sales tab.
SalesTabPace2011.jpg


Once we have those catering/sales totals by date, we enter them into a new workbook corresponding to that date in Column C (shown below).
Aug2.jpg


We normally do this by hand. So help creating a formula would help a lot and make me look good!! Your help is very appreciated:biggrin:
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I wasn't positive which columns on the Catering and Sales tabs contained the actuals you wanted to add up, but here is a place to start:

=SUMIF(Catering!C:C,$A5,Catering!F:F)+SUMIF(Sales!C:C,$A5,Sales!F:F)

***this formula would go in your totals tab, in cell C5, and can be filled down.
 
Upvote 0
I am working with Column F on the Catering Sheet, & Column E on the Sales Sheet. The last image is where I need the actuals posted, which is located in an entirely different workbook.

Also, the values from the catering and sales tab need to be added by date. So all the catering/sales tabs for august 2 need to be added together.
 
Upvote 0
I would open both files before adding the formula to your totals location.

=SUMIF([OtherWorkbook]Catering!$C:$C,$A5,[OtherWorkbook]Catering!$F:$F)+SUMIF([OtherWorkbook]Sales!$C:$C,$A5,[OtherWorkbook]Sales!$E:$E)

You'll need to fill in the actual workbook name of where the Catering and Sales tabs live, ie [OtherWorkbook]

Leave the brackets as shown, just use the correct workbook name.

If the workbook name or path location changes often, you'll likely need some VBA to dynamically look for the source file.
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,814
Members
452,945
Latest member
Bib195

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top