Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default filtering list based on formating

hi
is there a way to filter a list based on the format of the
cells say 'highlighted in red' or font or something like
that.

thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default filtering list based on formating

If you built a UDF that examines this property, then you can add a dummy
column next to your data with this function and filter on the results of
this function.

Assume data is in A2:C25 and you want to filter on a background color of Red
(not produced by conditional formatting) for column A.

Put the below function in a general module (insert=Module in the vbe), not
a sheet or the thisworkbook module.
Public function ShowColor(rng as Range)
ShowColor = rng.Interior.ColorIndex
End Sub

In D2 put in the formula

=Showcolor(A2)

then drag fill down to D25

in D1 put in the header Color

then apply the autofilter and filter on the value 3. (colorindex for red is
3).


--
Regards,
Tom Ogilvy


Keyur wrote in message
...
hi
is there a way to filter a list based on the format of the
cells say 'highlighted in red' or font or something like
that.

thanks



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
Conditional Formating multiple cells in 1 row based on a list of d Clinton Excel Worksheet Functions 2 November 25th 09 08:03 AM
How- seperate a combined list by filtering out first list of names Briana Excel Worksheet Functions 1 March 21st 06 03:16 PM
list two columnar values based on conditional formating (text color) beechum1 Excel Worksheet Functions 2 February 12th 06 09:53 AM
Auto filtering vs Date List Create List torajudo Excel Worksheet Functions 2 January 29th 06 10:30 AM
trouble filtering a list. Why isn't column filtering? Pat Excel Worksheet Functions 1 July 18th 05 03:30 PM


All times are GMT +1. The time now is 05:52 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"