Reverse Lookup/Index and Return Column Headers

FuriousD

New Member
Joined
Sep 1, 2016
Messages
35
Office Version
  1. 365
Platform
  1. MacOS
I've posted a similar request previously but wasn't able to get the formula figured out, but was able to get on the right track and create a solution. Hoping someone can help as now I have an issue with Duplicates and need a way to return the column headers for like 30,000 lines of data. Sample below:

ABCDEFGHI
1
IDEmployeeManagerRecruiterRec AsstHM AsstTask NameTask Completed ByRole Who Completed Task
2123Jane YoungKenny GLL Cool JDave GrohlLL Cool JEmergency ContactJane YoungEmployee
3123Jane YoungKenny GLL Cool JDave GrohlLL Cool JEmployer I9LL Cool JRecruiter
4125John OldDr. DreDr DreDr. DreDr DreConfirm Start DateDr. DreManager

So I need Column I to return an index of the Headers from the Array B1:F1 to show me which person completed the task. However you see there are duplicates in Column D and F in this example. There could be duplicates in all 4 business roles (not employee) potentially.

I'd like to incorporate something like an IFS statement so that it evaluates from left to right. So if the Manager Name = the Task Complete by Name (H), then it returns Manager before it evaluates the others for a match.

Any ideas? TIA
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,224,828
Messages
6,181,201
Members
453,022
Latest member
RobertV1609

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