Connt Unique items - with No C+S+E

Joe Galvan

Board Regular
Joined
Jun 24, 2008
Messages
152
Hi all...

I need to be able to count unique items and overlook the duplicates....

I have a formula that can do that, but it is a rather intesive formula, so it takes for ever when you have 2000+ lines trying to calculate.

the formula I am currently using is

{=SUM(IF(FREQUENCY(IF($A$5:$A$10000<>"", IF($D$5:$D$10000=P6,MATCH("~"&$A$5:$A$10000,$A$5:$A$10000&"",0))),ROW($A$5:$A$10000)-ROW($A$5)+1),1))}

closed with C+S+E

Any way this could be a lighter formula? or a differnt formula can do the same thing? I am leaning towards an Index/match formula but just not sure...

thanks,
JOE
 
That may even be worse.

By the time you copy that formula down to row 10,000 this is how many cells you've calculated:

=SUMPRODUCT(ROW(1:9996))

John and T.

Sorry, i replied too hastily.
I even did not see there was a condition...
:oops:

M.
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,225,156
Messages
6,183,230
Members
453,152
Latest member
ChrisMd

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