ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Summary Based on Multiple Criteria (https://www.excelbanter.com/excel-worksheet-functions/63411-summary-based-multiple-criteria.html)

Phillycheese5

Summary Based on Multiple Criteria
 

I have a portion of a file that has the date, sale and card type. Here
is what it looks like:

A B C D
1/3/05 $10 VISA
1/3/05 $20 MCARD
1/3/05 $30 MCARD
1/3/05 $10 AMEX 1/3/05
1/4/05 $50 VISA 1/4/05
1/5/05 $30 VISA
1/5/05 $20 AMEX 1/5/05

I created column D which will display a single date at the end of the
day when there are multiple sales. What I need to do is get daily
totals for the VISA and MCARD together, and keep the total for AMEX
separate. The number of transactions on any day can range from 1 to
20. Ideally I would like the data to the right.

Any help would be appreciated.
Thanks,
Phillycheese


--
Phillycheese5
------------------------------------------------------------------------
Phillycheese5's Profile: http://www.excelforum.com/member.php...o&userid=24196
View this thread: http://www.excelforum.com/showthread...hreadid=498445


Aladin Akyurek

Summary Based on Multiple Criteria
 
A.

=SUMPRODUCT(--($A$2:$A$8=E2),$B$2:$B$8,--ISNUMBER(MATCH($C$2:$C$8,{"MCARD","VISA"},0)))

where E2 houses a criterion date.

B.

=SUMPRODUCT(--($A$2:$A$8=E2),$B$2:$B$8,--($C$2:$C$8="AMEX"))

Phillycheese5 wrote:
I have a portion of a file that has the date, sale and card type. Here
is what it looks like:

A B C D
1/3/05 $10 VISA
1/3/05 $20 MCARD
1/3/05 $30 MCARD
1/3/05 $10 AMEX 1/3/05
1/4/05 $50 VISA 1/4/05
1/5/05 $30 VISA
1/5/05 $20 AMEX 1/5/05

I created column D which will display a single date at the end of the
day when there are multiple sales. What I need to do is get daily
totals for the VISA and MCARD together, and keep the total for AMEX
separate. The number of transactions on any day can range from 1 to
20. Ideally I would like the data to the right.

Any help would be appreciated.
Thanks,
Phillycheese



Phillycheese5

Summary Based on Multiple Criteria
 

Works perfectly, thanks!


--
Phillycheese5
------------------------------------------------------------------------
Phillycheese5's Profile: http://www.excelforum.com/member.php...o&userid=24196
View this thread: http://www.excelforum.com/showthread...hreadid=498445



All times are GMT +1. The time now is 04:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com