Conditional Summing

JohnnyB

New Member
Joined
Jun 24, 2002
Messages
4
Hello All,

I've been asked to add a formula to summarize data in a workbook that looks like this:
SummarySample.xls
ABCD
1Signed DateCompanySalesRepVolume
2January-05Company APeter B$2,726,222.40
3January-05Company BPeter B$90,874.08
4January-05Company CPeter B$3,786,420.00
5January-05 Total$6,603,516.48
6February-05Company DBill P$45,437
7February-05Company ERobert I$757,284
8February-05Company FPeter B$2,653,523
9February-05Company GPeter B$1,226,800
10February-05 Total$4,683,044
11March-05Company HMarie C$265,049
12March-05Company IMarie C$90,874
13March-05Company JPeter B$7,572,840
14March-05 Total$7,928,763
15April-05Company KBill P$90,874
16April-05Company LBill P$136,311
17April-05Company MBill P$210,784
18April-05Company NBill P$136,311
19April-05Company ORobert I$567,963
20April-05Company PRobert I$1,200,000
21April-05Company QRobert I$726,993
22April-05Company RRobert I$2,271,852
23April-05Company SMarie C$1,135,926
24April-05Company TPaul N$3,029,136
25April-05Company UPeter B$1,817,482
Detail


The summary will go on another sheet in the same workbook. My users want monthly summaries for each sales rep. Too keep things as simiple as possible,let's say summary sheet will have reps going down Column A and Months going across Row 1. The formula in Cell B2 of the summary should have Peter B's sales for the month of January. Please note: The detail sheet has varying amounts of sales for each rep in each month. So I'm thinking I should do a formula that says something like "If (Detail!C2:C25=A2 and if Detail!B2:B25=B1), Sum(D2:D25). So Peter B's total for January should be 6,603,516.48 since he's the only one who sold in January, but his Feb total should be $3,880,323.

Thanks in advance!

John
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,215,856
Messages
6,127,354
Members
449,381
Latest member
Aircuart

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