A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Faraz,
In the Excel file linked below, on my Dropbox public file, there is a bunch of code to count colors, including conditional formatting colors. There is a function in there -
Public Function GetCellColor(theCells As Range, Optional theType As String = "Regular") As Long
This function returns the RGB (long integer) color value of the color in a cell, whether that color is a fill color or a conditional color. You might be able to use it to get the color values of each of your cells, and then sort on those values.
HTH,
Eric