Find sum by matching multiple criteria

mark91345

Board Regular
Joined
Feb 11, 2011
Messages
113
My goal is to sum up the total Volume of a particular stock on a daily basis. The stock may be listed on one, or both, exchanges. If the Dates are the same, I want to add up both Volume totals; if the stock is listed on one Date only, then that needs to be shown as well.

I have tried vlookup and sumifs, but because there are 3 criteria (Stock, Date, & Exchange), it is beyond my ability (at the moment). Thank you.


Book1
ABCDEFGHIJKL
1StockDateExchangeVolumeTotal Volume 8/1/2017Total Volume 8/2/2017Total Volume 8/3/2017Total Volume 8/4/2017Total Volume 8/5/2017Total Volume 8/6/2017
2APPLE8/1/17Nasdaq4,600Apple4,60030,050
3APPLE8/5/17Nasdaq12,550Dell2,000
4APPLE8/5/17NYSE17,500HP1750500015,000
5DELL8/4/17Nasdaq2,000Microsoft20,5001500
6HP8/2/17Nasdaq1,750
7HP8/3/17Nasdaq5,000
8HP8/6/17Nasdaq4,000My goal is to sum up the daily Volume of a particular stock.
9HP8/6/17NYSE11,000For example, on 8/1/17, Apple was traded on only one exchange,
10MICROSOFT8/1/17Nasdaq11,500so it's total Volume is listed above.
11MICROSOFT8/1/17NYSE9,000But, on 8/5/17, Apple was traded on two different exchanges,
12MICROSOFT8/3/17NYSE1,500so its total is summed up & shown accordingly.
13
Sheet1
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You can do this with SUMIFS.
My first recommendation is to break up your title row so that cells G1:L1 all say "Total Volume", and cells G2:L2 have the dates, in valid date format.
Then, your data is in rows 3:13.

So then just enter this formula in cell G3, and copy all the way to L6:
Code:
=SUMIFS($D$3:$D$13,$A$3:$A$13,$F3,$B$3:$B$13,G$2)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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