Hi Guys,
Good day.
I have 3 columns(A, B & C) as shown below. I am aware that I can consolidate 2 columns instead of 3 using Data > Consolidate. My intention is to get the expected result as shown at column F, G and H. Are there any way to do it using function or VBA where I can automatically runs it.
Thank you.
Faez
Good day.
I have 3 columns(A, B & C) as shown below. I am aware that I can consolidate 2 columns instead of 3 using Data > Consolidate. My intention is to get the expected result as shown at column F, G and H. Are there any way to do it using function or VBA where I can automatically runs it.
CONSOLIDATE2.xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | colA | colB | colC | colA | colB | colC | ||||
2 | AK | ARKANSAS | 10 | AK | ARKANSAS | 122 | ||||
3 | AK | ARKANSAS | 12 | VA | VIRGINIA | 2142 | ||||
4 | AK | ARKANSAS | 100 | NY | NEW YORK | 310 | ||||
5 | VA | VIRGINIA | 1000 | EXPECTED RESULT | AL | ALABAMA | 69 | |||
6 | VA | VIRGINIA | 304 | CA | CALIFORNIA | 80 | ||||
7 | VA | VIRGINIA | 838 | |||||||
8 | NY | NEW YORK | 290 | |||||||
9 | NY | NEW YORK | 20 | |||||||
10 | AL | ALABAMA | 21 | |||||||
11 | AL | ALABAMA | 48 | |||||||
12 | CA | CALIFORNIA | 10 | |||||||
13 | CA | CALIFORNIA | 10 | |||||||
14 | CA | CALIFORNIA | 30 | |||||||
15 | CA | CALIFORNIA | 30 | |||||||
Sheet2 |
Thank you.
Faez