Formula to get goal status

zinah

Active Member
Joined
Nov 28, 2018
Messages
353
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a list of employees with their goals, some of those employees have no goals, some have one goal and others have multiple goals. What I need to determine whom of those employees have goals and who don't. The challenge is some of employees have multiple goals and some have EEID but blank goal, so how can I figure out the total employees (unique EEID) that has goals, and don't have goals?
The result in Goal Status will show if any employee at least has one goal, then "Yes", if not, then "No"

EEID​
Goal​
Goal Status​
679693​
AAA​
679693​
679693​
CCC​
679693​
DDD​
679693​
EEE​
155434​
BBB​
734814​
CCC​
838080​
525294​
CCC​
525294​
AAA​
890277​
511806​
AAA​
511806​
BBB​
511806​
EEE​
437962​
AAA​
854101​
AAA​
659905​
CCC​
659905​
DDD​
659905​
EEE​
659905​
FFF​
659905​
BBB​
706506​
AAA​
426276​
176939​
177085​
AAA​
173545​
CCC​
484602​
BBB​
731301​
FFF​
731301​
EEE​
731301​
DDD​
731301​
AAA​
731301​
CCC​
771349​
DDD​
379818​
DDD​
958328​
873892​
EEE​
110947​
AAA​
483678​
159304​
DDD​
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
How about
+Fluff 1.xlsm
ABC
1EEIDGoalGoal Status
2679693AAAYes
3679693Yes
4679693CCCYes
5679693DDDYes
6679693EEEYes
7155434BBBYes
8734814CCCYes
9838080No
10525294No
11525294No
12890277No
13511806AAAYes
14511806BBBYes
15511806EEEYes
16437962AAAYes
17854101AAAYes
18659905CCCYes
19659905DDDYes
20659905EEEYes
21659905FFFYes
22659905BBBYes
23706506AAAYes
24426276No
25176939No
26177085AAAYes
27173545CCCYes
28484602BBBYes
29731301FFFYes
30731301EEEYes
31731301DDDYes
32731301AAAYes
33731301CCCYes
34771349DDDYes
35379818DDDYes
36958328No
37873892EEEYes
38110947AAAYes
39483678No
40159304DDDYes
Main
Cell Formulas
RangeFormula
C2:C40C2=IF(COUNT(FILTER($A$2:$A$40,($A$2:$A$40=A2)*($B$2:$B$40<>""))),"Yes","No")
 
Upvote 0
Assuming your table starts in A1:

Excel Formula:
=IF(COUNTIFS($A$2:$A$40,A2,$B$2:$B$40,B2)=0,"No","Yes")

Or if you format as a table:

Excel Formula:
=IF(COUNTIFS([EEID],[@EEID],[Goal],[@Goal])=0,"No","Yes")
 
Upvote 0
Hi,

You can also try this:

Book3.xlsx
ABCD
1EEIDGoalGoal Status# of Goals
2679693AAAYes4
3679693Yes 
4679693CCCYes 
5679693DDDYes 
6679693EEEYes 
7155434BBBYes1
8734814CCCYes1
9838080No0
10525294CCCYes2
11525294AAAYes 
12890277No0
13511806AAAYes3
14511806BBBYes 
15511806EEEYes 
16437962AAAYes1
17854101AAAYes1
18659905CCCYes5
19659905DDDYes 
20659905EEEYes 
21659905FFFYes 
22659905BBBYes 
23706506AAAYes1
24426276No0
25176939No0
26177085AAAYes1
27173545CCCYes1
28484602BBBYes1
29731301FFFYes5
30731301EEEYes 
31731301DDDYes 
32731301AAAYes 
33731301CCCYes 
34771349DDDYes1
35379818DDDYes1
36958328No0
37873892EEEYes1
38110947AAAYes1
39483678No0
40159304DDDYes1
Sheet786
Cell Formulas
RangeFormula
C2:C40C2=IF(COUNTIFS(A$2:A$50,A2,B$2:B$50,"<>"),"Yes","No")
D2:D40D2=IF(COUNTIF(A$2:A2,A2)=1,COUNTIFS(A$2:A$50,A2,B$2:B$50,"<>"),"")


Edit: Added # of Goals (Column D)
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,380
Members
448,955
Latest member
BatCoder

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