Find last cell with data, then get column title

TAPS_MikeDion

Well-known Member
Joined
Aug 14, 2009
Messages
622
Office Version
  1. 2011
Platform
  1. MacOS
Hi everybody,
This seems like it will probably be an easy one for those of you who are better than I am with Google Sheets formulas.

I have columns R through AC marked JAN, FEB, MAR and so on for the months of the year, with staff rows starting at 3 with a simple X per staff member who attended a meeting that month. All I'm looking to do in column AD is to show the last month that has an X in the cell per staff member.

P​
Q​
R​
S​
T​
U​
V - AC​
AD​
1MEETINGS HELD
X​
X​
X​
2
JAN
FEB
MAR
APR
ETC​
LAST MEETING ATTENDED​
3JOE
X​
JAN
4BILL
X​
X​
MAR
5TOM
X​
X​
FEB

In the example above, column AD for rows 3, 4, and 5 should read:

3 - JAN
4 - MAR
5 - FEB

Thank you very much for your help on this!
 
In that case just enclosed it in IFNA
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Got it Fluff.

I just combined your 2 formulas and it work perfectly!

Excel Formula:
=IFNA(LOOKUP(2,1/(D3:O3="x"),D$2:O$2),"")
 
Upvote 0
Thank you, it works like a charm.
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,215,757
Messages
6,126,693
Members
449,331
Latest member
smckenzie2016

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