Dazzawm
Well-known Member
- Joined
- Jan 24, 2011
- Messages
- 3,783
- Office Version
- 365
- Platform
- Windows
I need a code please that will highlight rows when not in order. The code needs to look at column C then see all the rows that match. In the example below the first 3 rows match so then needs to look at column AF. Because Water Pump 2 is above Water Pump 1 then the rows need to be highlighted as they are. The next set of 3 are left clear because Water Pump 1 is above Water Pump 2 so that is ok, the bottom 2 are highlighted because Water Pump 2 is above Water Pump 1 then the rows need to be highlighted as they are and so on with the rest of the rows in the file. I have hidden the rest of the columns for clarity. A sort can't be done as there is many columns with data in. There may be 2 rows that match in C or there may be 10 rows that match. Thanks.
VLAST16 7001 | Data1 | (Sell First Where Possible) | |||||||||||||||||||||||||||
VLAST16 7001 | Data2 | Water Pump 2 | |||||||||||||||||||||||||||
VLAST16 7001 | Data3 | Water Pump 1 | |||||||||||||||||||||||||||
VLAST16 7004 | Data4 | (Sell First Where Possible) | |||||||||||||||||||||||||||
VLAST16 7004 | Data5 | Water Pump 1 | |||||||||||||||||||||||||||
VLAST16 7004 | Data6 | Water Pump 2 | |||||||||||||||||||||||||||
VLAST16 5022 | Data4 | Water Pump 2 | |||||||||||||||||||||||||||
VLAST16 5022 | Data5 | Water Pump 1 | |||||||||||||||||||||||||||