VBA Code / Macro for column comparison - progressive scan and formatting cell
Data Range B3:V100 (Data type is DATE)
Compare each cell in Column B with each cell in Column C, and each subsequent columns till Column V, (There could be a blank column also). The comparison and result should be -
If the cell value, say is equal or +- 2 days, the target cell should be formatted as BOLD+Color, else do nothing
So, the comparison would like
B3 with C3, B3 with C4, B3 with C5, till last cell in column C, then
B3 with D3, B3 with D4, B3 with D5, till last cell in column D, then
B3 with E3, E4, E5, till last cell in Column E
And so on till Column V
Then
B4 with C3, C4 and so on till last cell in Column C
B4 with D3, D4, D5 and son till last cell in Column D, then
B4 with E3, E4, E5, till last cell in Column E,
And so on till Column V
Then
B5 with C3, C4 and so on till last cell in Column C
B5 with D3, D4, D5 and son till last cell in Column D, then
B5 with E3, E4, E5, till last cell in Column E,
And so on till Column V
Bookmarks