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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
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,223,882
Messages
6,175,164
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