Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Conditional Filtering with cell format

Hi,

I wonder in excel functions or excel VBA, is there anyway that those
cells being highlighted by colors,fonts bold ( ie via cell format) in
certain columns of database, can be filtered row by row with category,
say

1st category is red font bold with yellow pattern
2nd category is just light blue pattern
3ed category is font italic bold or underline

The result is to be seen same as auto-filtering functions.

Thanks
Regards
Lenard
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Conditional Filtering with cell format

Filter work on cell values, so you would need to write User Defined
functions that evaluated the color of the target cells and return the
category. Then put this function in the next available column on each row
with reference to the cell to be evaluated for that row. Then filter the
category returned.

If the coloring is produced by conditional formatting, then you would just
duplicate the conditional formatting formula in a dummy column with an
adjustment to have it return the proper category. Then filter on this
column.

--
Regards,
Tom Ogilvy

"ltong" wrote in message
om...
Hi,

I wonder in excel functions or excel VBA, is there anyway that those
cells being highlighted by colors,fonts bold ( ie via cell format) in
certain columns of database, can be filtered row by row with category,
say

1st category is red font bold with yellow pattern
2nd category is just light blue pattern
3ed category is font italic bold or underline

The result is to be seen same as auto-filtering functions.

Thanks
Regards
Lenard



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Conditional Filtering with cell format

Hi Tom,

Thanks for your suggestions and kindly devise an excel VBA code ( ie
UDF) to run the situation with a simple example include the following
conditions : -
say

1) 1st category is red font bold with yellow pattern
2) 2nd category is just light blue pattern
3) 3rd category is font italic bold and underline

Regards
Lenard



"Tom Ogilvy" wrote in message ...
Filter work on cell values, so you would need to write User Defined
functions that evaluated the color of the target cells and return the
category. Then put this function in the next available column on each row
with reference to the cell to be evaluated for that row. Then filter the
category returned.

If the coloring is produced by conditional formatting, then you would just
duplicate the conditional formatting formula in a dummy column with an
adjustment to have it return the proper category. Then filter on this
column.

--
Regards,
Tom Ogilvy

"ltong" wrote in message
om...
Hi,

I wonder in excel functions or excel VBA, is there anyway that those
cells being highlighted by colors,fonts bold ( ie via cell format) in
certain columns of database, can be filtered row by row with category,
say

1st category is red font bold with yellow pattern
2nd category is just light blue pattern
3ed category is font italic bold or underline

The result is to be seen same as auto-filtering functions.

Thanks
Regards
Lenard

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
Capture conditional format as cell format Diddy Excel Discussion (Misc queries) 2 June 23rd 09 11:01 PM
Conditional format - another cell CT Excel Worksheet Functions 1 June 12th 08 04:00 AM
conditional format cell Teri Excel Discussion (Misc queries) 3 March 4th 08 12:56 AM
conditional cell format based on cell in same row, previous column tamiluchi Excel Worksheet Functions 7 May 3rd 06 04:11 PM
Conditional Format with VBA - Interior Colour of cell based on value from in-cell dropdown Steve[_52_] Excel Programming 5 June 15th 04 11:45 AM


All times are GMT +1. The time now is 07:22 PM.

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

About Us

"It's about Microsoft Excel"