Combine adding numbers and color formatting

Memar

Board Regular
Joined
Sep 2, 2011
Messages
76
[h=2]I just want to add a total amount for region East, Branch 1 and product 1 only for the months highlighted in blues. The result is shown in a different workbook (A), but the data/ information is saved in a different workbook (B). I want the result to be shown in workbook A whether workbook B is open or closed.

MonthRegion Location AmountProduct
July-18East Branch 1700.02Product 1
July-18WESTBranch 21,596.90Product 2
July-18WESTBranch 32,160.30Product 3
July-18NORTHBranch 4223.08Product 4
July-18East Branch 5842.70Product 5
August-18SOUTHBranch 14,330.61Product 1
August-18NORTHBranch 2741.78Product 2
August-18WESTBranch 364.45Product 3
August-18WESTBranch 42,139.30Product 4
August-18SOUTHBranch 51,131.04Product 5
August-18East Branch 1293.85Product 1
August-18NORTHBranch 21,469.25Product 2
August-18WESTBranch 31,312.52Product 3
August-18WESTBranch 45,133.76Product 4
August-18SOUTHBranch 5984.39Product 5
September-18East Branch 11,643.71Product 1
September-18NORTHBranch 2795.90Product 2
September-18SOUTHBranch 31,349.63Product 3
September-18SOUTHBranch 41,282.70Product 4
September-18NORTHBranch 532.23Product 5
September-18SOUTHBranch 1145.00Product 1
September-18SOUTHBranch 21,833.77Product 2
September-18East Branch 3721.89Product 3
September-18SOUTHBranch 4227.40Product 4
September-18NORTHBranch 51,399.48Product 5
September-18East Branch 11,421.90Product 1
September-18SOUTHBranch 21,904.85Product 2
September-18WESTBranch 33,835.31Product 3
September-18WESTBranch 42,207.06Product 4
September-18SOUTHBranch 5175.01Product 5

<tbody>
</tbody>


The desired result in this example is $3,065.00

Thank you for your help and time.[/h]
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
MonthRegionLocationAmountProduct
1-Jul-18EastBranch 1700.02Product 1
1-Jul-18WESTBranch 21,596.90Product 2
1-Jul-18WESTBranch 32,160.30Product 3date1-Sep-18
1-Jul-18NORTHBranch 4223.08Product 4locationBranch 1
1-Jul-18EastBranch 5842.7Product 5productProduct 1
1-Aug-18SOUTHBranch 14,330.61Product 1regionEast
1-Aug-18NORTHBranch 2741.78Product 2
1-Aug-18WESTBranch 364.45Product 3
1-Aug-18WESTBranch 42,139.30Product 43065.61
1-Aug-18SOUTHBranch 51,131.04Product 5
1-Aug-18EastBranch 1293.85Product 1
1-Aug-18NORTHBranch 21,469.25Product 2=SUMPRODUCT(($A$2:$A$31=$K$4)*($B$2:$B$31=$K$7)*($C$2:$C$31=$K$5)*($E$2:$E$31=$K$6)*($D$2:$D$31))
1-Aug-18WESTBranch 31,312.52Product 3
1-Aug-18WESTBranch 45,133.76Product 4
1-Aug-18SOUTHBranch 5984.39Product 5
1-Sep-18EastBranch 11,643.71Product 1
1-Sep-18NORTHBranch 2795.9Product 2
1-Sep-18SOUTHBranch 31,349.63Product 3
1-Sep-18SOUTHBranch 41,282.70Product 4if you change any or all of the 4 variables you will get the desired total
1-Sep-18NORTHBranch 532.23Product 5
1-Sep-18SOUTHBranch 1145Product 1
1-Sep-18SOUTHBranch 21,833.77Product 2
1-Sep-18EastBranch 3721.89Product 3
1-Sep-18SOUTHBranch 4227.4Product 4
1-Sep-18NORTHBranch 51,399.48Product 5
1-Sep-18EastBranch 11,421.90Product 1
1-Sep-18SOUTHBranch 21,904.85Product 2
1-Sep-18WESTBranch 33,835.31Product 3
1-Sep-18WESTBranch 42,207.06Product 4
1-Sep-18SOUTHBranch 5175.01Product 5

<colgroup><col width="64" span="19" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,018
Messages
6,122,703
Members
449,093
Latest member
Mnur

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