Changing an array formula to a regular formula

bluefish44

Board Regular
Joined
Apr 3, 2009
Messages
190
Hi all and thanks in advance...

I have the following array formula which is working as intended

=SUMPRODUCT(((CONTACTS!$A$2:$A$5000=A2))/COUNTIFS(CONTACTS!$A$2:$A$5000,CONTACTS!$A$2:$A$5000&"",CONTACTS!$R$2:$R$5000,CONTACTS!$R$2:$R$5000&""))

Problem is it takes way to long to calculate. Is there a way to achieve the same result with a formula that is not an Array? Or a different way? The formula is basically doing a Countif if with 1 added criteria.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
A concise example of say 8 rows and an explanation of the calculation that you require would be useful.
 
Upvote 0
Or try this array (Ctrl+Shift+Enter) conditional count unique formula instead :

=SUM(IF(FREQUENCY(IF(CONTACTS!$A$2:$A$5000=A2,CONTACTS!$R$2:$R$5000),CONTACTS!$R$2:$R$5000),1))

This would be much faster than SUMPRODUCT+COUNTIFS function

Regards
Bosco
 
Upvote 0

Forum statistics

Threads
1,215,129
Messages
6,123,217
Members
449,091
Latest member
jeremy_bp001

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