gadero
Electrical
- May 30, 2003
- 23
Never written VBA code and feel a bit intimidated. May be that this is a good time to start??
So, here's what I'm trying to do. I have two worksheets full of data. The worksheets are updated monthly with new rows added anywhere in the table. The data is in a random order. The goal is to compare information in a specific column from one month to the next. Unfortunately there isn't any single column that I can use as a refernce. I must compare at least 3 columns so that I know that I'm comparing the correct informtion. I think it's easier to explain with an example:
Month 1
column 1 column 2 column 3 data 1
Bill 1/2/07 1/23/07 5
Bill 1/2/07 1/13/07 6
Bill 1/5/07 1/23/07 7
Bill 1/18/07 1/13/07 8
John 1/18/07 1/13/07 8
Ted 1/18/07 1/13/07 8
John 1/18/07 1/16/07 8
Month 2
column 1 column 2 column 3 data 2
Bill 1/2/07 1/13/07 16
Jenny 1/2/07 1/13/07 16
Bill 1/2/07 1/23/07 11
Bill 1/18/07 1/13/07 18
John 1/18/07 1/13/07 18
Ted 1/18/07 1/13/07 18
Bill 1/5/07 1/23/07 17
John 1/18/07 1/16/07 8
What I'm trying to do:
If information in column 1, 2 and 3 are identical, I'd like to compare the values in column 4.
I'd get:
column 1 column 2 column 3 data 1 data 2
Bill 1/2/07 1/23/07 5 11
Bill 1/2/07 1/13/07 6 16
Bill 1/5/07 1/23/07 7 17
Bill 1/18/07 1/13/07 8 18
John 1/18/07 1/13/07 8 18
Ted 1/18/07 1/13/07 8 18
John 1/18/07 1/16/07 8 8
Jenny 1/2/07 1/13/07 16 new
Any thoughts would be appreciated.
Thanks
So, here's what I'm trying to do. I have two worksheets full of data. The worksheets are updated monthly with new rows added anywhere in the table. The data is in a random order. The goal is to compare information in a specific column from one month to the next. Unfortunately there isn't any single column that I can use as a refernce. I must compare at least 3 columns so that I know that I'm comparing the correct informtion. I think it's easier to explain with an example:
Month 1
column 1 column 2 column 3 data 1
Bill 1/2/07 1/23/07 5
Bill 1/2/07 1/13/07 6
Bill 1/5/07 1/23/07 7
Bill 1/18/07 1/13/07 8
John 1/18/07 1/13/07 8
Ted 1/18/07 1/13/07 8
John 1/18/07 1/16/07 8
Month 2
column 1 column 2 column 3 data 2
Bill 1/2/07 1/13/07 16
Jenny 1/2/07 1/13/07 16
Bill 1/2/07 1/23/07 11
Bill 1/18/07 1/13/07 18
John 1/18/07 1/13/07 18
Ted 1/18/07 1/13/07 18
Bill 1/5/07 1/23/07 17
John 1/18/07 1/16/07 8
What I'm trying to do:
If information in column 1, 2 and 3 are identical, I'd like to compare the values in column 4.
I'd get:
column 1 column 2 column 3 data 1 data 2
Bill 1/2/07 1/23/07 5 11
Bill 1/2/07 1/13/07 6 16
Bill 1/5/07 1/23/07 7 17
Bill 1/18/07 1/13/07 8 18
John 1/18/07 1/13/07 8 18
Ted 1/18/07 1/13/07 8 18
John 1/18/07 1/16/07 8 8
Jenny 1/2/07 1/13/07 16 new
Any thoughts would be appreciated.
Thanks