Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Phillycheese5
 
Posts: n/a
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Phillycheese5
 
Posts: n/a
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
count based on multiple date criteria lisaw Excel Worksheet Functions 1 August 9th 05 05:31 PM
SUMIF in multiple columns based on other criteria in Excel? Scott Powell Excel Discussion (Misc queries) 9 April 13th 05 02:32 PM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM


All times are GMT +1. The time now is 07:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"