Sum and Count on a criteria range

Swifey

Active Member
Joined
Jan 16, 2003
Messages
421
I want to create a summary of how many card holders have spent over a certain amount and the sum of sales value. Is there a formula that will count and sum certain criterias.

for example my data is as follows
Card_Holder,,,Sales Value
0000159309,,,297974.34
0000500363,,,255251.28
0000158760,,,152886.95
0000159430,,,113783.17
0000159409,,,91722.89
0000159784,,,56038.08
0000159251,,,55920.18
0000159097,,,55809.52
0000158398,,,47314.29
0000157188,,,41827.19
0000156659,,,36249.22
0000157849,,,30939.84
0000158397,,,27791.01
0000162057,,,26113.84
0000160475,,,25757.16
0000158776,,,25498.18

Example of Summary I want to produce
Spend Range,,,,,,,,,,,,,,,,,,,,,,,,,,,,No,,,,,,,,,,,Value
Spend £100,000 plus,,,,,,,,,,,,,,,,,4,,,,,,,,,,,,,819895.74
Spend £50k - £99,999k,,,,,,,,,,,,,4,,,,,,,,,,,,,259490.67
Spend £25k - £49,999k,,,,,,,,,,,,,8,,,,,,,,,,,,,261490.73


Thank you
Swifey
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
PivotTable approach with equal intervals...
Book1
ABCDEFGH
1Card_HolderSalesValueData
20000159309297974.34SalesValueNo.Value
30000500363255251.28>1000004819895.74
40000158760152886.9575000-100000191722.89
50000159430113783.1750000-750003167767.78
6000015940991722.8925000-500008261490.73
7000015978456038.08GrandTotal161340877.14
8000015925155920.18
9000015909755809.52
10000015839847314.29
11000015718841827.19
12000015665936249.22
13000015784930939.84
14000015839727791.01
15000016205726113.84
16000016047525757.16
17000015877625498.18
18
Sheet1
 
Upvote 0
You must think I am really thick but where do I define a range in a pivot table

Swifey
 
Upvote 0
Swifey said:
You must think I am really thick but where do I define a range in a pivot table

Swifey

At Step 2 of 3 in the PivotTable Wizard.

Or, do you mean the grouping interval? Right click on the PivotTable's Sale Value field and choose "Group and Show Detail" | Group from the popup menu.

I used 25000, 99999, 25000 respectively.
 
Upvote 0
PivotWizard 2 of 3 asks "Where is the data you want to use?" I'm using windows XP will this have any knock on effect?

Swifey
 
Upvote 0
Swifey said:
I want to create a summary of how many card holders have spent over a certain amount and the sum of sales value. Is there a formula that will count and sum certain criterias...
Book1
ABCDEFGH
1Card_HolderSalesValueSpendRangeCountTotal
20000159309297974.3425,0008261490.7
30000500363255251.2850,0004259490.7
40000158760152886.95100,0004819895.7
50000159430113783.171.00E+308
6000015940991722.89
7000015978456038.08
8000015925155920.18
9000015909755809.52
10000015839847314.29
11000015718841827.19
12000015665936249.22
13000015784930939.84
14000015839727791.01
15000016205726113.84
16000016047525757.16
17000015877625498.18
Sheet1


The formulas...

F2:

=SUMPRODUCT(($C$2:$C$17>=E2)*($C$2:$C$17<E3))

G2:

=SUMPRODUCT(($C$2:$C$17>=E2)*($C$2:$C$17<E3),$C$2:$C$17)
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,427
Members
451,705
Latest member
Priti_190

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