Complex Question, ISERROR / HLOOKUP / VLOOKUP

azalexx

New Member
Joined
Nov 27, 2017
Messages
1
Hello, and thank you in advance for any assistance I may receive. I have used this forum for years (I cannot retrieve my original account) and am so grateful that excel experts spend thier own time to look and solve complete stranger problems.

I am at hour 4 on this and I just cannot make it work - I admit defeat!!!


Facts:

The topic is "Accounts", and what roles are assigned to said accounts. There can be multiple rows for the same unique account ID, but with unique "Roles" assigned to them. I need to determine if each account is assigned the role of "Account Manager"... or not.

My source data has 30K + rows, but this is a small example of the type of data I am working with.

ABC
1Account IDAccount NameRole Title
2IZSdEIAXPurple PensDirector
3IZSdEIAXPurple PensManager
4IZSznIAHOrange PensManager
5IZSznIAHOrange PensAccount Manager
6IZSznIAHOrange PensInside Sales
7IZStnIAHBlue PensInside Sales
8IZStnIAHBlue PensDirector
9IZStnIAHBlue PensAccount Manager

<tbody>
</tbody>


















My output sheet are Columns A and B with duplicates removed, so that I have only unique Account ID's and Account Names remaining. My goal is to write a TRUE or FALSE statement that will follow this logic:


Match in column A (I tried VLOOKUP and can get that far)
AND
Match unique Account ID
AND
Search in Column C for Account Manager
IF
Account Manager is a value, return TRUE
IF
Account Manager is missing, return FALSE


Output would look like this:

ABC
1Account IDAccount NameAccount Manager
2IZSdEIAXPurple PensFALSE
3IZSznIAHOrange PensTRUE
4IZStnIAHBlue PensTRUE

<tbody>
</tbody>










Does anyone have any ideas on how to accomplish this or can point me to an existing thread where this was covered?

Thank you again for taking the time to look!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
You could use COUNTIFS, so if your data is in Data worksheet then in summary worksheet C2 use this formula copied down

=COUNTIFS(Data!A:A,A2,Data!B:B,B2,Data!C:C,C$1)>0
 
Upvote 0
Like this?
=IFERROR(IF(MATCH("Account Manager",INDIRECT(ADDRESS(MATCH(A2,A:A,0),3)&":"&ADDRESS(MATCH(A2,A:A,0)+COUNTIF(A:A,A2)-1,3)),0)>0.1,"TRUE","FALSE"),"FALSE")
 
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,309
Members
449,080
Latest member
jmsotelo

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