Double V Lookup

clares

Well-known Member
Joined
Mar 14, 2002
Messages
557
Hi All

I've giving up trying to work this one out. Can someone help me please?

I have two worksheets in a workbook

On the first worksheet sheet I have:

Column A (Account Code) and Column B (Address Code) Column C (wanting the address ref from second worksheet)

On the second worksheet I have 3 columns:

Column A (Account Code) and Column B (Address Code) Column C (Address Ref)

If the account code and address code match put the address ref in column C on first workbook?

I do hope I have explained myself.

Could anyone please help?


Kind regards

Peter
 
Yes I realised that but when I hit CTRL+SHIFT+ENTER excel (2003) showed me another box asking what worksheet the references were so I clicked them and that's what it gave me? :)

Kind regards

Peter
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
If your first worksheet is named "ShipAddress" (no spaces, nothing different) and your second worksheet is named "AccountShippingAddress", and you're placing the formula in the "ShipAddress" worksheet, then you should be able to use:

=INDEX(AccountShippingAddress!$C$2:$C$4532,MATCH($A$2&$B$2,AccountShippingAddress!$A$2:$A$4532&AccountShippingAddress!$B$2:$B$4532,0))

Copy that formula, then on your worksheet select cell C2 (on the ShipAddress sheet). Press F2 to start editing that cell (delete any current formulas) and then paste this formula. Press CTRL+SHIFT+ENTER to confirm.

If you still get an error, something is wrong with your workbook, or there is no match to the values you're looking up.
 
Upvote 0
Does that mean it worked? If not, see my signature for a site to upload a sample workbook. (Mediafire preferred.)
 
Upvote 0
Hi mvptomlinson

Perfect thank you very much indeed.

I had to trim() one of the account codes as it had spaces at the end and I have to convert some of the values to numbers. I had to take change $A$2&$B$2 to A2&B2 then run like you said it would.

Very grateful indeed.

Kind regards

Peter
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,258
Members
449,149
Latest member
mwdbActuary

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