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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,224,813
Messages
6,181,107
Members
453,021
Latest member
Justyna P

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