Xlookup between two tables

kapela2017

New Member
Joined
Oct 16, 2022
Messages
33
Office Version
  1. 365
Platform
  1. Windows
Greetings, I would be very grateful if you could give me some idea, you will see I am trying to develop a code that allows me, through a macro, to apply the XLookUp function to compare two tables (TABLE1 AND TABLE1) and enter, according to their ID, the weight and the cost of the products in the second table and after leaving the "TABLE1" clean to be filled again,((๐“๐€๐๐‹๐„๐’ ๐‚๐€๐ ๐†๐‘๐Ž๐– ๐Ž๐ ๐ˆ๐ƒ ๐‚๐Ž๐ƒ๐„ ๐…๐Ž๐‘ ๐๐‘๐Ž๐ƒ๐”๐‚๐“๐’)) I'm starting with Vba and I can't get much further than the Dim and the Set, I'm trying to declare the function with Listobjects.ListColumns. DataBody.Range and the function does not accept the range thanks for what you can contribute...


IDPRODUCTWEIGHTCOST
1001APPLE0,2 KG2,3$
1002PEAR4,5 KG3,1$
1003PEACH5,4 KG2,1$
1004STRAWBERRY2,9 KG3,4$
1005CANTAOLUPE4,9 KG4,1$
1006MANGO2,4 KG3,2$
1007ORANGE5,9 KG1,4$
1008BANANA8,5 KG3,2$




IDPRODUCTWEIGHTCOST
1001APPLE0,2 KG2,3$
1002PEAR
1003PEACH
1004STRAWBERRY
 
Last edited:

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,215,377
Messages
6,124,597
Members
449,174
Latest member
chandan4057

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