Problem with Unique Sum/Count with Criteria

tdemana

New Member
Joined
Apr 12, 2011
Messages
3
Using Excel 2010, I have a sheet that I'm using as a base for a sheet of metrics.



Sheet1 has my data, with named ranges, and Sheet2 has my metrics on it.

I have multiple client names (Named range = Client_Name)that could be associated with a row of data, and I need to know how many unique entries occur here after filtering for another criteria (where named range Client_ClientNonClientRelated = On Site Client Related Time).

I'm not sure how to go about this. This is what I've tried, but I get a 0 as a result.

=SUM(IFS(Client_ClientNonClientRelated,"=On Site Client Related Time",FREQUENCY(MATCH(ClientName,ClientName,0),MATCH(ClientName,ClientName,0))>0,1))

Any suggestions?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<!---->
<!---->
<!---->
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try...

=SUM(IF(FREQUENCY(IF(Client_ClientNonClientRelated="On Site Client Related Time",IF(ClientName<>"",MATCH(ClientName,ClientName,0))),ROW(ClientName)-MIN(ROW(ClientName))+1)>0,1))

...confirmed with CONTROL+SHIFT+ENTER.
 
Upvote 0
I got the full formula for what I was into by playing with what you started, and ended up with this:

=COUNT(1/FREQUENCY(IF(Client_ClientNonClientRelated="On Site Client Related Time",IF(ClientName<>"",MATCH(ClientName,ClientName,0))),ROW(ClientName)-ROW(OFFSET(ClientName,,,1,1))+1))


Thanks!
 
Upvote 0
You're welcome! Note, however, that OFFSET is a volatile function. Volatile functions recalculate each time a change of data occurs in any cell on any worksheet, regardless of whether a cell they're referencing has changed. As a result , recalculation times are prolonged. Therefore, you may want to replace...

ROW(OFFSET(ClientName,,,1,1))+1

with

MIN(ROW(ClientName))+1
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,517
Members
452,921
Latest member
BBQKING

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