Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Excel Sorting / Filtering Colored Cells

Does anyone know how to create a formula / function to obtain a count of
cells in each column that are colored? I need a formula / function that will
count both the text color and the cell fill color of various cells. If
anyone has a solution, I would greatly appreciate your help. Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Excel Sorting / Filtering Colored Cells

You need to use a UDF. Try this one

Function colorcount(Target As Range)

colorcount = 0
For Each cell In Target
If cell.Interior.ColorIndex < xlNone Or _
cell.Font.ColorIndex < xlNone Then

colorcount = colorcount + 1
End If

Next cell

End Function


"Renegade" wrote:

Does anyone know how to create a formula / function to obtain a count of
cells in each column that are colored? I need a formula / function that will
count both the text color and the cell fill color of various cells. If
anyone has a solution, I would greatly appreciate your help. Thank you.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
count colored cells in excel Maddog Excel Worksheet Functions 5 October 9th 08 07:40 PM
XL 2007-Filtering/sorting mixes up chgd cells in shared worksheet? Margie Excel Discussion (Misc queries) 0 April 1st 08 09:33 PM
Sorting Colored list [email protected] Excel Discussion (Misc queries) 2 April 27th 07 01:38 PM
Excel - filtering, sorting? feliks27 Excel Worksheet Functions 1 April 25th 06 03:34 AM
Excel should allow sorting and filtering based on cell color. Linda Excel Worksheet Functions 3 June 20th 05 05:18 PM


All times are GMT +1. The time now is 05:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"