Excel Formula Help - Pulling non-blank cell in row

bellsam13

New Member
Joined
Jan 16, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi there,

I'm looking for some assistance creating a formula that will essentially help me with an organization chart report, pulling in the C-Suite Executive for each employee. Current the report is setup as follows:
  • Column "I" populates the direct manager unique identifier ; Column "J" populates direct manager name
  • Column "K" populates the direct managers manager unique identifies ; Column "L" populates direct managers manager name
  • So on and so forth through column "T". "Manager 1 - Manager 6"
The formula that I'm needing assistance with will be in Column "U." I'd like this to essentially pull the highest value of the "Manager" columns on the row. I.e. Joe Shmoe reports to David Test. David Test reports to Lisa Frank. Lisa Frank reports to Jessica Stewart. I'm wanting column "U" to pull Jessica Stewart.

Thank you!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Would something like this work for you ?
(Option 2 relies on a column identifier for name vs id)

20240117 Lookup Last non blank bellsam13.xlsx
JKLMNOPQRSTUVW
1Mgr Name1Mgr ID2Mgr Name2Mgr ID3Mgr Name3Mgr ID4Mgr Name4Mgr ID5Mgr Name5Mgr ID6Mgr Name6LOOKUP Option1LOOKUP Option2LOOKUP ID
2Nm1456Nm2789Nm3321Nm4654Nm5Nm5Nm5654
3Nm1456Nm2789Nm3321Nm4Nm4Nm4321
Sheet1
Cell Formulas
RangeFormula
U2:U3U2=XLOOKUP(TRUE,($I2:$T2<>""),$I2:$T2,,,-1)
V2:V3V2=XLOOKUP(1,($I2:$T2<>"")*ISNUMBER(SEARCH("Name",$I$1:$T$1)),$I2:$T2,,,-1)
W2:W3W2=XLOOKUP(1,($I2:$T2<>"")*ISNUMBER(SEARCH("ID",$I$1:$T$1)),$I2:$T2,,,-1)
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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