Count Unique Values with Multiple Conditions

stbrooks13

New Member
Joined
Dec 9, 2014
Messages
40
I need to count the number of unique offices by summary position=Associate, fiscal year=2014, offer acceptance date>0 and school=I1 (which is a drop down box for all the schools we recruit from). Please help! I've been scouring the web for hours. My ranges are named, I am able to come up with a value for one condition (summary position), but I don't know how to add more IF conditions:

=SUM(IF(FREQUENCY(IF(SummaryPosition="Associate",MATCH(Office,Office,0)),ROW(Office)-ROW($E$2)+1),1))
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Is it something like:

=COUNTIFS(SummaryPosition,"Associate",FiscalYear,"2014",OfferAcceptanceDate,">0",School,$I$1)
 
Upvote 0
@stbrooks13
Hi can you put a Sample, like a screenshot so we can void to put 1000s o words.
that would much easier thank you very much!
 
Upvote 0
Sorry misread. Im presuming the offices are text.

=SUM(IF(FREQUENCY(IF(SummaryPosition="Associate",IF(FiscalYear=2014,IF(OfferAcceptanceDate>0,IF(School=I1,MATCH(Office,Office,0))))),IF(SummaryPosition="Associate",IF(FiscalYear=2014,IF(OfferAcceptanceDate>0,IF(School=I1,MATCH(Office,Office,0))))))>0,1))

You must enter with CNTL-SHIFT-ENTER
 
Last edited:
Upvote 0
Hi all
try this!

=SUM(IF(FREQUENCY(IF(SummaryPosition="Associate",IF(FiscalYear=2014,IF(OfferAcceptanceDate>0,IF(School=I1,MATCH(Office,Office,0))))),ROW(office)-row(A1)+1);1)

GerryZ
 
Upvote 0
Hey Gerry. You forgot your true portion but apart from that it works :)
 
Upvote 0
@Hi Steve
unfortunatly I didn't try with Excel otherwise i would correct the misteks, I copied your formula down and i fast reply I was sure the were some errors like Parentesis, coma, ecc..

What I did I correct the FREQUENCY argument ITEM CLASS that need {1.2.3.4.5.6.7.....}for the match
I hope i helped!!
 
Last edited:
Upvote 0
@Steve the fish
I don't have Excel can you post the correct formula for for STbrooks13
and if you can small screen -shoot?
thank you steve the fish
 
Upvote 0
My other formula would work but yours would be:

=SUM(IF(FREQUENCY(IF(SummaryPosition="Associate",IF(FiscalYear=2014,IF(OfferAcceptanceDate>0,IF(School=I1,MATCH(Office,Office,0))))),ROW(Office)-ROW(A1)+1)>0,1))

Again CNTL-SHIFT-ENTER
 
Upvote 0

Forum statistics

Threads
1,215,730
Messages
6,126,528
Members
449,316
Latest member
sravya

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