If function for multiple occurrences and one criteria

miraj42

New Member
Joined
May 15, 2019
Messages
4
Hi Everyone,

I've been trying to get a vlookup formula to work but just realised that vlookup only looks up the first occurrence of a match. How do I make an if function
which returns a value if ANY occurrence of a match meets the criteria?

i.e.

My raw data looks like this:

Site IDNameReceived Badge
101Jim0
101Bill1
103Rose0
105Selena1
103Chris0

I want to create a function which looks up the Site ID and if any one of the people at the site have received a badge (=1) then to return 100% as the output value, if not then 0%.

I appreciate any help on this one or pointers to other useful pages.

Thanks

miraj42
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
How about
+Fluff.xlsm
ABCD
1Site IDNameReceived Badge
2101Jim0100%
3101Bill1100%
4103Rose00%
5105Selena1100%
6103Chris00%
Data
Cell Formulas
RangeFormula
D2:D6D2=--(COUNTIFS(A:A,A2,C:C,1)>0)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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