Lookup and fill values

rollingzep

Board Regular
Joined
Nov 18, 2013
Messages
214
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have two sheets on the same WB.
Sheet1 contains CUS_ID and MARKET_DESC. Sheet2 contains few fields like product, matdate ..... and ST

I need product from Sheet2 to look up the values of CUS_ID of Sheet1 and fill the ST field in Sheet2 with the values of MARKET_DESC from Sheet1.

Test.xlsx
G
11I
Sheet2


Test.xlsx
D
9
Sheet1


Thanks
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
I need product from Sheet2 to look up the values of CUS_ID of Sheet1 and fill the ST field in Sheet2 with the values of MARKET_DESC from Sheet1.

=index(Sheet1!MArket_Desc-Cell-range to return , match( Sheet2!Product cell , Sheet1!Cus_ID-cell-Range of cell , 0))

I think thats whats needed the XL2BB, has little in , and i cant make out exactly what you need
 
Upvote 0
=index(Sheet1!MArket_Desc-Cell-range to return , match( Sheet2!Product cell , Sheet1!Cus_ID-cell-Range of cell , 0))

I think thats whats needed the XL2BB, has little in , and i cant make out exactly what you need
Hi,

<p>
I have pasted a bigger sample of data. I wanted to do this with Excel VBA code.

I have two sheets on the same WB.
Sheet1 contains CUS_ID and MARKET_DESC. Sheet2 contains few fields like product, matdate ..... and ST

I need product from Sheet2 to look up the values of CUS_ID of Sheet1 and fill the ST field in Sheet2 with the values of MARKET_DESC from Sheet1.
</p>



 
Upvote 0
but I though all Excel issues were discussed in this forum.
yes they are , but i personally do not provide any VBA solutuions , so cannot help you , other members will i'm sure

maybe useful to close this thread and start a new one - and say in the title you only want VBA solution
 
Upvote 0

Forum statistics

Threads
1,215,619
Messages
6,125,873
Members
449,267
Latest member
ajaykosuri

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