Hey everyone!
Maybe its a bit of a hard to understand question but I will try my best.
I am creating a custom ribbon and in this ribbon I want a "Easy index-match" button. When the user presses this button 3 pomps in a row will pop up.
The first prompt will ask the user to select the target table that the user wants to fill in.
The second prompt will ask the user to select the raw data table where the information should be gathered from.
The third prompt will list all headers that are both in the first and second prompt and ask the user to select a header which should be used as the column to match values against.
After this I want the macro to fill in the fill in table basically doing multiple index-matches and filling in all cells that can be filled in (would be nice if this also works to the left and not only to the right as a vlookup).
To make it more clear I added a XL2BB table below. (The "expected outcome" should be in the place of the first table)
I hope my question is and thanks a ton in advance,
Bassie
Maybe its a bit of a hard to understand question but I will try my best.
I am creating a custom ribbon and in this ribbon I want a "Easy index-match" button. When the user presses this button 3 pomps in a row will pop up.
The first prompt will ask the user to select the target table that the user wants to fill in.
The second prompt will ask the user to select the raw data table where the information should be gathered from.
The third prompt will list all headers that are both in the first and second prompt and ask the user to select a header which should be used as the column to match values against.
After this I want the macro to fill in the fill in table basically doing multiple index-matches and filling in all cells that can be filled in (would be nice if this also works to the left and not only to the right as a vlookup).
To make it more clear I added a XL2BB table below. (The "expected outcome" should be in the place of the first table)
Bobba.xlsm | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Fill in data table | Raw data table | |||||||||
2 | Header #1 | Header #2 | Header #3 | Header #4 | Header #1 | Header #4 | Header #5 | Header #2 | |||
3 | 2 | z | y | x | 2 | ||||||
4 | 3 | z1 | y1 | x1 | 3 | ||||||
5 | 4 | z2 | y2 | x2 | 1 | ||||||
6 | 1 | z3 | y3 | x3 | 5 | ||||||
7 | 2 | z4 | y4 | x4 | 4 | ||||||
8 | z5 | y5 | x5 | 8 | |||||||
9 | |||||||||||
10 | |||||||||||
11 | |||||||||||
12 | |||||||||||
13 | Expected outcome | ||||||||||
14 | Header #1 | Header #2 | Header #3 | Header #4 | |||||||
15 | z | 2 | y | ||||||||
16 | z1 | 3 | y1 | ||||||||
17 | z4 | 4 | y4 | ||||||||
18 | z2 | 1 | y2 | ||||||||
19 | z | 2 | y | ||||||||
Sheet1 |
I hope my question is and thanks a ton in advance,
Bassie