hello. I have two sets of data bases both containing data with unique ID in column A.In ColumnB there are amounts (it varies how many amounts are with each ID). for example:
first data
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody> A B C
1 id Amount Date
2 a112 200 dd-mm-yyy
3 1200 dd-mm-yyy
4 5 dd-mm-yyy
5 B112 500 dd-mm-yyy
6 400 dd-mm-yyy
7 C112 100 dd-mm-yyy
Second database:
A B C
1 id Amount Date
2 a112 1400 dd-mm-yyy
3
4 5
5
6
7 C112 100 dd-mm-yyy
I want a macro to match the sum of amounts with respective IDs and tick in the next column (columnE) when the sum of amounts equal. Also highlight in red if date with any ID of data2 is greater than that in data1.
first data
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>
1 id Amount Date
2 a112 200 dd-mm-yyy
3 1200 dd-mm-yyy
4 5 dd-mm-yyy
5 B112 500 dd-mm-yyy
6 400 dd-mm-yyy
7 C112 100 dd-mm-yyy
Second database:
A B C
1 id Amount Date
2 a112 1400 dd-mm-yyy
3
4 5
5
6
7 C112 100 dd-mm-yyy
I want a macro to match the sum of amounts with respective IDs and tick in the next column (columnE) when the sum of amounts equal. Also highlight in red if date with any ID of data2 is greater than that in data1.