CountIFS

KevinSue1957

New Member
Joined
Feb 9, 2015
Messages
4
Office Version
  1. 365
Platform
  1. MacOS
Hi, I hope somebody can help me please. I'm trying to create a dashboard and count using COUNTIFS but I don't know how to stop duplicates. For example I have a sheet of people and projects but I want to count only 1 project although I have 2 leads on the project. I have tried using =COUNTIFS('Overall Data'!N:N,"Y",'Overall Data'!K:K,">31/03/2020",'Overall Data'!L:L,"<31/03/2021") but because more than one person is on the project and we have to put the number of the project against anybody on it, it keeps adding up the list of people on the project. I only want it to count one project to many people on it dependant on the criteria. Thanks.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Like this?

=IF( COUNTIFS('Overall Data'!N:N,"Y",'Overall Data'!K:K,">31/03/2020",'Overall Data'!L:L,"<31/03/2021") )>1,1, COUNTIFS('Overall Data'!N:N,"Y",'Overall Data'!K:K,">31/03/2020",'Overall Data'!L:L,"<31/03/2021") )
 
Upvote 0
Like this?

=IF( COUNTIFS('Overall Data'!N:N,"Y",'Overall Data'!K:K,">31/03/2020",'Overall Data'!L:L,"<31/03/2021") )>1,1, COUNTIFS('Overall Data'!N:N,"Y",'Overall Data'!K:K,">31/03/2020",'Overall Data'!L:L,"<31/03/2021") )
Thank you for the help but when I enter the formula I keep getting an error. I get a red bracket after COUNTIFS and after the final date before )>1,1
 
Upvote 0
You will not be able to do what you want with full columns, you will need to set the formula to a 'realistic' range.

=SUM(IF(FREQUENCY(IF('Overall Data'!N2:N200="Y",IF('Overall Data'!K2:K200>DATE(2020,3,31),IF('Overall Data'!L2:L200<=DATE(2021,3,31),ROW('Overall Data'!N2:N200)))),ROW('Overall Data'!N2:N200))>0,1))

Note that this formula must be array confirmed with Ctrl Shift Enter.
 
Upvote 0
Thank you for the help but when I enter the formula I keep getting an error. I get a red bracket after COUNTIFS and after the final date before )>1,1

Sorry,
=IF(COUNTIFS('Overall Data'!N:N,"Y",'Overall Data'!K:K,">31/03/2020",'Overall Data'!L:L,"<31/03/2021")>1,1, COUNTIFS('Overall Data'!N:N,"Y",'Overall Data'!K:K,">31/03/2020",'Overall Data'!L:L,"<31/03/2021")
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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