So I have a range of cells, specifically A1:LH1100 on Sheet 2. Some of these cells are blank, some contain an ID number.
On Sheet 1, I have a dataset which contains ID Numbers in column A, and other descriptive fields in columns B-E
I am lookking for a macro that will go through each cell in that range on Sheet 2 (A1:LH1100) and perform the following:
-if the cell is empty, go to next cell
-if the cell contains an ID number
-if the ID number is on the list on Sheet 1, format the cell to be filled "red"
-if the ID number is not on the list on Sheet 1, format the cell to be filled "blue"
Ideally I would like to easily be able to expand this and format based on whether that cell ID is not only listed on Sheet 1, but also meets other criteria (in columns B-E)
I was thinking I could do some sort of "if ( sumifs" formula in VBA but I'm not sure. The code that I was trying was a For Each loop and it looked like it would work for about the first 100 rows and then stop, though none of those cells would be formatted any differently. So I am thinking I may have been way off.
Please help. Thanks!
On Sheet 1, I have a dataset which contains ID Numbers in column A, and other descriptive fields in columns B-E
I am lookking for a macro that will go through each cell in that range on Sheet 2 (A1:LH1100) and perform the following:
-if the cell is empty, go to next cell
-if the cell contains an ID number
-if the ID number is on the list on Sheet 1, format the cell to be filled "red"
-if the ID number is not on the list on Sheet 1, format the cell to be filled "blue"
Ideally I would like to easily be able to expand this and format based on whether that cell ID is not only listed on Sheet 1, but also meets other criteria (in columns B-E)
I was thinking I could do some sort of "if ( sumifs" formula in VBA but I'm not sure. The code that I was trying was a For Each loop and it looked like it would work for about the first 100 rows and then stop, though none of those cells would be formatted any differently. So I am thinking I may have been way off.
Please help. Thanks!