Vba with vlook-up table

FGaxha

Board Regular
Joined
Jan 10, 2023
Messages
227
Office Version
  1. 365
Platform
  1. Windows
Help needed please:
How to get values from a source data with look-up table:
Column A Product Id = bb,cc, dd, ee, ff,gg:
Column F sales per day.
My lookup table column A Product Id. bb, cc, dd, ee, ff, gg
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
1681076672995.png
 
Upvote 0
yes,
I add a module on workbook2 and run macro based on your code
 
Upvote 0
So your second workbook is not called: Workbook 2.xlsx
 
Upvote 0
I can't believe you don't realize the difference between: .xlsx and .xlsm.
 
Upvote 0
Mario_R,

I did save as Macro enable but still doesn't work
1681079833605.png
 
Upvote 0
Macros do not work in workbooks with the "xlsx" extension.

Change that detail in the macro...
 
Upvote 0

Forum statistics

Threads
1,222,903
Messages
6,168,939
Members
452,227
Latest member
sam1121

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