Get last row in list of same numbers

Rocky0201

Active Member
Joined
Aug 20, 2009
Messages
278
Hi folks. I am trying to find a formula or combination of formulas that will return info from an array. I tried vlookup (set to True) but it does not work.

In a worksheet, I have a cell that I can change the number which could be 1 through n. I want to reference the number in that cell and lookup that number from the array below (different worksheet).

<table style="border-collapse: collapse; width: 444pt;" width="591" border="0" cellpadding="0" cellspacing="0"><col style="width: 44pt;" width="59"> <col style="width: 96pt;" width="128"> <col style="width: 56pt;" width="74"> <col style="width: 248pt;" width="330"> <tbody><tr style="height: 45pt;" height="60"> <td class="xl67" style="height: 45pt; width: 44pt;" width="59" align="center" height="60">A
</td> <td class="xl68" style="border-left: medium none; width: 96pt;" width="128" align="center">B
</td> <td class="xl67" style="border-left: medium none; width: 56pt;" width="74" align="center">C
</td> <td class="xl68" style="border-left: medium none; width: 248pt;" width="330" align="center">D
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="border: 0.5pt solid windowtext; background: rgb(184, 204, 228) none repeat scroll 0% 0%; height: 15pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="center" height="20">1</td> <td class="xl75" style="border: 0.5pt solid windowtext; background: rgb(184, 204, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Rocky</td> <td class="xl70" style="border: 0.5pt solid windowtext; background: rgb(184, 204, 228) none repeat scroll 0% 0%; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="right">8/14/2009</td> <td class="xl71" style="border: 0.5pt solid windowtext; background: rgb(184, 204, 228) none repeat scroll 0% 0%; width: 248pt; font-size: 11pt; color: black; font-style: italic; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" width="330">Test 1</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl72" style="border: 0.5pt solid windowtext; background: rgb(219, 229, 241) none repeat scroll 0% 0%; height: 15pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="center" height="20">1</td> <td class="xl76" style="border: 0.5pt solid windowtext; background: rgb(219, 229, 241) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Rocky</td> <td class="xl73" style="border: 0.5pt solid windowtext; background: rgb(219, 229, 241) none repeat scroll 0% 0%; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="right">8/14/2009</td> <td class="xl74" style="border: 0.5pt solid windowtext; background: rgb(219, 229, 241) none repeat scroll 0% 0%; width: 248pt; font-size: 11pt; color: black; font-style: italic; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" width="330">Test 2</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="border: 0.5pt solid windowtext; background: rgb(184, 204, 228) none repeat scroll 0% 0%; height: 15pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="center" height="20">2</td> <td class="xl75" style="border: 0.5pt solid windowtext; background: rgb(184, 204, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Rocky</td> <td class="xl70" style="border: 0.5pt solid windowtext; background: rgb(184, 204, 228) none repeat scroll 0% 0%; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="right">8/19/2009</td> <td class="xl71" style="border: 0.5pt solid windowtext; background: rgb(184, 204, 228) none repeat scroll 0% 0%; width: 248pt; font-size: 11pt; color: black; font-style: italic; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" width="330">Test 3</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl72" style="border: 0.5pt solid windowtext; background: rgb(219, 229, 241) none repeat scroll 0% 0%; height: 15pt; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="center" height="20">2</td> <td class="xl76" style="border: 0.5pt solid windowtext; background: rgb(219, 229, 241) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Rocky</td> <td class="xl73" style="border: 0.5pt solid windowtext; background: rgb(219, 229, 241) none repeat scroll 0% 0%; font-size: 11pt; color: black; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="right">8/20/2009</td> <td class="xl74" style="border: 0.5pt solid windowtext; background: rgb(219, 229, 241) none repeat scroll 0% 0%; width: 248pt; font-size: 11pt; color: black; font-style: italic; font-weight: 400; text-decoration: none; font-family: Calibri; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" width="330">Test 4</td> </tr> </tbody></table>
If I enter 1, I want to retrieve the description Test 2 which is the last on the list for the number 1 in the array. If I select 2, I want to retrieve the description Test 4 which is the last in the list for the number 2 in the array.

In advance, thanks for the help...

Rocky
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

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