Hello,
I need help with VLOOKUP in VBA that i havent figured out for weeks now (but im still a beginner too).
I have file with 2 sheets - data and calculation.
Data sheet has base data as column A has metric name, columns B to O has values
but the catch is that criteria values are in rows 1 and 2 - date and country
fe.
A B C D
01.11.2023 01.12.2023 01.01.2024
NO FI CA
Total salary 520835 4220170 7187268
GGR 112004 529309 334859
Sheet calculation has dates in column A, countries in Column B and metrics in first row of columns C to J
A B C D
DATE COUNTRY Total salary GGR
01.11.2023 NO
01.12.2023 FI
So i would need it to find fe. total salary value to calculation sheet (C2) based on date and country given in columns a and b and to loop it until the end of values given in columns a/b. I couldnt find any version where vloopup would search from rows as criteria, also i couldnt make index match work so help!
I need help with VLOOKUP in VBA that i havent figured out for weeks now (but im still a beginner too).
I have file with 2 sheets - data and calculation.
Data sheet has base data as column A has metric name, columns B to O has values
but the catch is that criteria values are in rows 1 and 2 - date and country
fe.
A B C D
01.11.2023 01.12.2023 01.01.2024
NO FI CA
Total salary 520835 4220170 7187268
GGR 112004 529309 334859
Sheet calculation has dates in column A, countries in Column B and metrics in first row of columns C to J
A B C D
DATE COUNTRY Total salary GGR
01.11.2023 NO
01.12.2023 FI
So i would need it to find fe. total salary value to calculation sheet (C2) based on date and country given in columns a and b and to loop it until the end of values given in columns a/b. I couldnt find any version where vloopup would search from rows as criteria, also i couldnt make index match work so help!