Formula returns 0 with lots of data

apc1968

New Member
Joined
Nov 4, 2012
Messages
14
Hi - using Excel for Mac and have a large volume of data (40k records) - col A is customer name and col B is policy type.

To count how many customers have (say) 3 policies I was previously told to use:

To count how many customers have three policies,
=SUMPRODUCT(--(COUNTIF(A2:A40000,A2:A40000)=3))/3

This works with small amounts of data but
when applied to my 40k records - it just returns a 0 (and calculate is still showing at the bottom) - forcing a recalc doesnt do anything either

Is it just my volume size that is the problem - is there another formula I can use - or do I need to ask for VBA help?

Thanks for any replies - I appreciate the help

A
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi - the previous formula would show that 2 customers have three policies - I want a formula as well which would show that those customers with 3 policies (2 of them) have total profits of £390 (the total of Jones and Smith)
[TABLE="width: 195"]
<TBODY>[TR]
[TD="class: xl63, width: 65"]Name
[/TD]
[TD="class: xl63, width: 65"]Policy
[/TD]
[TD="class: xl63, width: 65"]Profit
[/TD]
[/TR]
[TR]
[TD="class: xl63"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"][/TD]
[/TR]
[TR]
[TD="class: xl64"]Jones
[/TD]
[TD="class: xl64"]Home
[/TD]
[TD="class: xl65"]£60
[/TD]
[/TR]
[TR]
[TD="class: xl64"]Jones
[/TD]
[TD="class: xl64"]Motor
[/TD]
[TD="class: xl65"]£55
[/TD]
[/TR]
[TR]
[TD="class: xl64"]Kane
[/TD]
[TD="class: xl64"]Home
[/TD]
[TD="class: xl65"]£45
[/TD]
[/TR]
[TR]
[TD="class: xl64"]Able
[/TD]
[TD="class: xl64"]Home
[/TD]
[TD="class: xl65"]£33
[/TD]
[/TR]
[TR]
[TD="class: xl64"]Kennedy
[/TD]
[TD="class: xl64"]Motor
[/TD]
[TD="class: xl65"]£30
[/TD]
[/TR]
[TR]
[TD="class: xl64"]Jones
[/TD]
[TD="class: xl64"]Travel
[/TD]
[TD="class: xl65"]£50
[/TD]
[/TR]
[TR]
[TD="class: xl64"]Webster
[/TD]
[TD="class: xl64"]Home
[/TD]
[TD="class: xl65"]£45
[/TD]
[/TR]
[TR]
[TD="class: xl64"]Williams
[/TD]
[TD="class: xl64"]Motor
[/TD]
[TD="class: xl65"]£48
[/TD]
[/TR]
[TR]
[TD="class: xl64"]Williams
[/TD]
[TD="class: xl64"]Home
[/TD]
[TD="class: xl65"]£44
[/TD]
[/TR]
[TR]
[TD="class: xl64"]Smith
[/TD]
[TD="class: xl64"]Home
[/TD]
[TD="class: xl65"]£55
[/TD]
[/TR]
[TR]
[TD="class: xl64"]Smith
[/TD]
[TD="class: xl64"]Motor
[/TD]
[TD="class: xl65"]£90
[/TD]
[/TR]
[TR]
[TD="class: xl64"]Smith
[/TD]
[TD="class: xl64"]Travel
[/TD]
[TD="class: xl65"]£80
[/TD]
[/TR]
</TBODY>[/TABLE]


Hope that makes sense - thanks!!
This will work but will be slow to calculate on 40k rows of data:

=SUMPRODUCT(--(COUNTIF(A2:A13,A2:A13)=3),C2:C13)
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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