I have two seperate data blocks, both with a number of columns. The first data source has a column with town names.
The second data block has 4 columns, the first has town names, the remaining three columns has numbers (there are about 200 rows in total in each data block).
Both these data blocks are in the same worksheet in the same workbook.
What I am trying to do is to compare the town names from each data block (they may or may not appear in the same row). If the name matches, then the corresponding row in the second data block where there was a match should be added to give a total figure.
I have tried a number of "IF", "SUMIF", conditional arguments etc, but I cannot get it to work.
Pls help!
To help visualise the problem:
Datablock 1 Datablock 2 Results
A B C A B C D
1 Town1 Town1 4 7 9 20
2 Town3 Town2 6 1 5 0
3 Town4 Town7 1 6 9 16
4 Town5 Town9 4 4 6 0
5 Town7 Town4 7 5 9 21
So the above would yield the results as shown:
The second data block has 4 columns, the first has town names, the remaining three columns has numbers (there are about 200 rows in total in each data block).
Both these data blocks are in the same worksheet in the same workbook.
What I am trying to do is to compare the town names from each data block (they may or may not appear in the same row). If the name matches, then the corresponding row in the second data block where there was a match should be added to give a total figure.
I have tried a number of "IF", "SUMIF", conditional arguments etc, but I cannot get it to work.
Pls help!
To help visualise the problem:
Datablock 1 Datablock 2 Results
A B C A B C D
1 Town1 Town1 4 7 9 20
2 Town3 Town2 6 1 5 0
3 Town4 Town7 1 6 9 16
4 Town5 Town9 4 4 6 0
5 Town7 Town4 7 5 9 21
So the above would yield the results as shown: