ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sorting by colors (https://www.excelbanter.com/excel-worksheet-functions/172568-sorting-colors.html)

Heather

Sorting by colors
 
Is it possible to sort by the fill-in color in Excel? I do a lot of
highlighting rows, etc. and it would be so much easier than having to cut and
paste.
--
Thanks!
Heather

Bob Phillips

Sorting by colors
 
Get the colorindex in a separate column with the following UDF

Function GetCI(rng As Range) As Long
GetCI = rng.Interior.Colorindex
End Function

in the cell, =GetCI(A2)

and then sort on that new column of CIs.


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Heather" wrote in message
...
Is it possible to sort by the fill-in color in Excel? I do a lot of
highlighting rows, etc. and it would be so much easier than having to cut
and
paste.
--
Thanks!
Heather





All times are GMT +1. The time now is 06:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com