How to get unique count (frequency) for a values with two criteria

Boubiche

New Member
Joined
Jan 27, 2016
Messages
14
Office Version
  1. 365
Platform
  1. Windows
CountRepeatEmp #CSR TM GroupPresenceScheduleNoteYear
1Yes3133930NancyGab FRYesDayN/A2016
2No45490AngelaMArvinFRNoDayN/A2015
3Yes48550GregoryCraig ENYesDayN/A2015
4Yes66810RolanceCatherine ENYesDayN/A2016
5No68910MariePierreFRNoDayN/A2015
6Yes71030FrancoBrian EFYesDayN/A2015

<colgroup><col width="64" span="10" style="width:48pt"> </colgroup><tbody>
</tbody>


Hi guys,

i would need some help with this one.. seems simple enough, but for the life of me, i cant get it... please help!!
i need to calculate the total unique count (frequency) of EMP (column C), who were physically present (Yes in column J) for each of the years (2015 or 2016 in column G)

2015: i need a formula

2016: i need a formula





please please please help!!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
control+shift+enter, not just enter...

=sum(if(frequency(if($g$2:$g$6="yes",if($j$2:$j$6=2015,$c$2:$c$6)),$c$2:$c$6),1))
 
Upvote 0
Solution
=SUMPRODUCT(($B$2:$B$7="Yes")*($J$2:$J$7=2015);$C$2:$C$7)

=SUMPRODUCT(($B$2:$B$7="Yes")*($J$2:$J$7=2016);$C$2:$C$7)
 
Upvote 0
control+shift+enter, not just enter...

=sum(if(frequency(if($g$2:$g$6="yes",if($j$2:$j$6=2015,$c$2:$c$6)),$c$2:$c$6),1))



Oh my.. thank you so much...

will this work with several hundred rows of data?? (if i change formula .. of course..)


thanks!!
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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