lookup multiple times

kgkev

Well-known Member
Joined
Jun 24, 2008
Messages
1,285
Office Version
  1. 365
Platform
  1. Windows
Good Morning,

i have two spread sheets (Database downloads)
One is supplier names (Suppliers)
One is Supplier contact details. (Contacts)

Each supplier appears once in the Sheet "suppliers" They have a unique identifier in Column A

Each supplier has multiple contact persons (or 1 or none).
The unique supplier code is stored in A
There is a contact type stored in F which is the data I need.
Each contact can be identified by 3 categories based on the communication they are set to receive.
They can be any combination of
P = Purchase Order
E = Expedite Report
R = Remittance Advice.

Smaller suppliers will have 1 contact who handles all communications
in this case Column F will be "PRE"

Larger suppliers with specific departments might have one contact for each category
Contact 1 = P
Contact 2 = R
Contact 3 = E

Also some suppliers will have multiple people set to any combination of contact types.

I am trying to identify any supplier that is missing either P, R or E contact types.
Happy to use three columns to check for P, R & E separately, but I cannot workout the logic.

Or is VBA the only way to go?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
not sure if it helps but my suggestion would be in a new column in the suppliers sheet next to each record put a countifs function which would be for example"=COUNTIFS(L:L,A2,N:N,"p")+COUNTIFS(L:L,A2,N:N,"e")+COUNTIFS(L:L,A2,N:N,"r")" in this example L:L would be the supplierID in the contracts sheet and N:N would be the contracts type and A2 is the supplierid in the row. then if any are 0 then they have got no contracts with P,R or E
 
Upvote 0
Thanks,
This worked, but I had to break down my supplier type into three columns as well:

=IF(ISNUMBER(SEARCH(G$1,$F2)),G$1,"")

Very simple, thanks for the suggestion
 
Upvote 0
Solution

Forum statistics

Threads
1,215,046
Messages
6,122,854
Members
449,096
Latest member
Erald

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