Lookup value in table, return the team header above

Darren_workforce

Board Regular
Joined
Oct 13, 2022
Messages
128
Office Version
  1. 365
Platform
  1. Windows
With assistance, I have a formula that returns the supervisor based on the team member name. However, is it possible to reference the team member name and then return the specific team that member is on within the department? I have a cell range with all the team names (P6:P10) but is it possible to reference the agent name, look upwards at the first team header above their name, and return that result?

EX: Bob Smith would be CSR. Wanda Vasquez would be Tier 2.

supervisor lookup:
Excel Formula:
=IFERROR(INDEX(source!$B$2:$Z$2,1,MIN(IF(source!$B$3:$Z$60=A2,COLUMN(source!$B$2:$Z$2)-1))),"")

1713795623547.png
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,215,425
Messages
6,124,825
Members
449,190
Latest member
rscraig11

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