Using VBA How would you get multiple data when searching 3 other spreadsheets with a lookup?

SNA400

New Member
Joined
Nov 5, 2010
Messages
49
We currently have a list of 8 digit Codes where we need to search multiple spreadsheets to find out the complete 10 digit code from multiple rows of the same 8 digit code.

To give you an example of what I mean - Code 78071595 could return 7807159500, 7807159520, 7807159560, or 7807159590. this will always be from a single spreadsheet first and we always need the highest of these codes whatever it is.

Once we have this 10 digit code we need to search against another two spreadsheets to get other data back like if it has any duty payable, if there are any restrictions on sale etc.

Is this possible? I am sure it is, but for the life of me I cannot get the code to give me the info I need.

Can anyone help :)

Simon
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I don't know where you data range is but this works for me.

=MAX(IF(LEFT(($A$2:$A$26)*1,8)="78071595"&"",($A$2:$A$26)*1))

where the data is in A2:A26.

You can substitute "78071595" for a cell containing this value.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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