Two Criteria Are Met

Jak7217

New Member
Joined
Jan 11, 2019
Messages
31
Office Version
  1. 365
Platform
  1. Windows
Hey All:

This should be simple, but I can't think of the best way to write this formula. I have a huge access listing with e-mail addresses in one column and access rights in another column. There are duplicate e-mail addresses if the individual has multiple access rights. I need to write a lookup where I define the e-mail address and the access right and the formula will identify if both are found in the listing.

Thanks in advance!

Justin
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
you could use conditional formatting and colour those -
how do you want to
the formula will identify if both are found in the listing.
BOTH, does that mean there are only 2 access rights

assuming email in A and Access rights in B
=countifs(A2:A1000, A2, B2:B1000,B2)
will give a number

if you add conditional formatting
=countifs(A2:A1000, A2, B2:B1000,B2)>1

that will show any duplicates

in conditional formatting - it will colour

thats one way

Various.xlsx
AB
1EmailAccess
21@2.comA
32@2.comB
43@2.comA
52@2.comB
64@2.comA
72@2.comB
81@2.comA
92@2.comB
103@3.comA
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B10Expression=COUNTIFS($A$2:$A$10,$A2, $B$2:$B$10,$B2)>1textNO


OR
Various.xlsx
ABC
1EmailAccessCount
21@2.comA2
32@2.comB4
43@2.comA1
52@2.comB4
64@2.comA1
72@2.comB4
81@2.comA2
92@2.comB4
103@3.comA1
Sheet3
Cell Formulas
RangeFormula
C2:C10C2=COUNTIFS($A$2:$A$10,$A2, $B$2:$B$10,$B2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B10Expression=COUNTIFS($A$2:$A$10,$A2, $B$2:$B$10,$B2)>1textNO
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,215,235
Messages
6,123,786
Members
449,125
Latest member
shreyash11

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