last occurrence of a value in a 4 column array

kmr47

New Member
Joined
Sep 1, 2014
Messages
12
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet with multiple sheets and many columns. Within sheet name TEMPLATE
there are 4 columns S:V that have 2 character initials or blank.
A given initial say "BM" could appear in multiple columns of S:V.

I want to find the last occurrence of the search value "BM" (entered in cell C9) within S:V then
return a date from Column X of that found row.

Using LOOKUP i can find the last occurrence from Column S but cannot make it work
across all four columns S:V

LOOKUP(2,1/(Template!$S5:$V22=$C$9),Template!$X5:$X22)

Any help would be appreciated.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,

Please update your profile to reflect what version of excel you are using. This will really help members to provide answer based on the version you are currently in.
 
Upvote 0

Forum statistics

Threads
1,215,200
Messages
6,123,601
Members
449,109
Latest member
Sebas8956

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