MATCH the last instance of a value in a column

MartinL

Well-known Member
Joined
Oct 16, 2008
Messages
1,141
Office Version
  1. 365
Platform
  1. Windows
If I use the formula
Code:
=MATCH(771160,Table1[Barcode],0)
the result will always stop at the first ROW that contains the matched value.

How can I find the last row that contains that value?

Ultimately I am doing a MATCH and INDEX to get an adjacent alphanumeric value.

Martin
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi

Try:

=LOOKUP(2,1/(Table1[Barcode]=771160),ROW(Table1[Barcode]))

I
ve never used this with a Table before though so not sure if it will work
 
Upvote 0
This works in Non Table range.
=LOOKUP(99999,SEARCH(C1,A1:A7,1),ROW(A1:A7))
Which should translate & hopefully work as:
=LOOKUP(99999,SEARCH(C1,Table1[Barcode],1),ROW(Table1[Barcode]))
 
Upvote 0
Firefly,
Your answer works just fine, many thanks

Taurean - I'm just looking at your now
 
Upvote 0
taurean,
I can confirm your answer works just fine too, many thanks
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

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