Lookup first column value, then find last column in matched column return value

paul2342

New Member
Joined
Apr 22, 2020
Messages
11
Office Version
  1. 2016
Platform
  1. Windows
Hi everyone,
I've been digging and diggling online and half the solution, but can't solve the other bit, and help appreciated.

I have this stock sector list like this attached below:

test.jpg


I've managed to drag the formula down of this:

=OFFSET('Sector Long-Short rank'!A5,0,MATCH(MAX('Sector Long-Short rank'!5:5)+1,'Sector Long-Short rank'!A5:'Sector Long-Short rank'!XFD5,1)-2)

(It takes the data from this other sheet here which is this):

thislist.jpg


The problem I've got, is I'm trying to add some sort of lookup so that the values in the first column of the sector name are matched first by finding the matching value in the second sheet, and THEN grabbing the relevant last column value and last but one column value.

I've solved half the formula but can't work out how to match the column A from both sheets and the right row (the problem is you see, column A is sorted in not necessarily the same order and might change, which is the reason for some sort of VLOOKUP or similar which I'm struggling with).

Any help appreciated as my brain is toasted. :D

Paul
 
Wow, that worked a treat! :) Thankyou very much. I've * 100 now and all working perfectly. Thanks Fluff :)
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You're welcome & thanks for the feedback.
 
Upvote 0
Hi, last question, honest :) Last one - I noticed that if there's two match values in a list, the first gets returned twice like this:



screen1.jpeg

Here is a copy of the source sheet sorted in order to see the matching entries:

screen2.jpg

- for some reason "Industrial Gases" gets duplicated in F10 + F11, and F11 should be "Oil Gas & Drilling" or vice versa, as both have a value of "50", and I just wondered if there's any workaround to show them both (there will only ever be two that have the same value I think)?

Best Regards,
Paul
 

Attachments

  • screen1.jpeg
    screen1.jpeg
    160.7 KB · Views: 5
Upvote 0
As this is a totally different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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