IF, COUNTIFS Statement

bflan0524

Board Regular
Joined
Oct 7, 2016
Messages
193
Office Version
  1. 2010
hello
i am trying to write a formula to identify unique enterprise IDs associated with an employee. table below. i don't know where i am messing up, if somebody could advise. Column BH is where the formula is

[TABLE="width: 500"]
<tbody>[TR]
[TD]Column E[/TD]
[TD]Column L [/TD]
[TD]Column BH[/TD]
[/TR]
[TR]
[TD]Employee Officer Code[/TD]
[TD]Enterprise ID[/TD]
[TD]Unique Enterprise ID[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]E222999999[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Current formula
=IF(COUNTIFS(E$3:E4,E4,L$3:L4,L4)>1,0,1)

so basically if the next row was ABC for Employee Offiicer Code and the same Enterprise ID that row in column BH would return 0,
if column E was different then ABC, it would return 1

hope this makes sense

ty
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You're formula works for me, what is the first row with an employee?
 
Upvote 0
thank you, i must have fat fingered something when i did it in the actual spreadsheet, works now. thanks again
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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