vlookup - Searching for x with y criteria with a z conditional?

oddzac

New Member
Joined
Aug 12, 2022
Messages
25
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
I hope the title makes some sense of what I'm asking here, but my workplace recently transitioned to a new way of recording training transcripts.
The old system had a dedicated "Revoked" column that allowed simple filtering to determine if an associate was certified or not..
The new system is more of a pile of *all* training records and I'm struggling to find a decent way to filter out associates with a revoke on specific trainings.


Pictured below, I have 3 columns.
Emp Login is the main target of my vlookup (being the individual).
- 3 entries shown are the same individual.

LHQ Equiv is the reference code for a specific training.
- 3 entries shown are the same training module

Status is the recorded "result" of that training.
- We have 2 completed entries and 1 revoked

1676561658940.png


Mainly, I would like the one "Revoked" entry to override the "Completed" entries when I'm checking to see who's trained in a way that removes this indiviual from the final list.

My brainstorm formula looks like:

{=vlookup([login], if([LHQ]=335,B:E,""),4,0)}

Obviously, this doesn't factor in the "Status" column in a meaningful way and the array formula itself is incredibly memory intensive for the 3k+ line data dump that I'm working with. I feel like I'm overthinking this and the end result that I need is a simple pivot table that can be filtered by module number and an accurate status..


Any help or suggestions would be greatly appreciated

Thanks!
-z
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
The solution I ran with for this was to remove duplicates during the transformation of the queried file.
Transformation steps:

Reorder columns so that relevant info was situated closely and in descending order by date:
Excel Formula:
= Table.Sort(#"Reordered Columns",{{"Emp Login", Order.Ascending}, {"LHQ Equiv", Order.Ascending}, {"Entry Date", Order.Descending}})

Remove duplicates (keeps first):
Excel Formula:
= Table.Distinct(Table.Buffer(#"Sorted Rows"), {"Emp Login", "LHQ Equiv"})

Notably, I had to change the default syntax of the step to run the remove dupes *after* the steps I had used on the sheet prior to this one

Default Syntax:
Excel Formula:
= Table.Distinct(#"Removed Duplicates", {"Emp Login", "LHQ Equiv"})

I still had to update to Office 2021 to utilize xlookup, but this step was vital in getting the final product.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,734
Messages
6,126,544
Members
449,316
Latest member
sravya

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