Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 313
Default auto-filter in excel but leave cell background color

I want to create a simple chart with alternating row colors to easily read
data. When I auto-filter the data it moves the cell color. I want to keep
nice alternating rows.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default auto-filter in excel but leave cell background color

Try this conditional format formula,
taken from a post by Tom Ogilvy,
http://tinyurl.com/dsu87

" If the hidden rows are cause by applying a filter then this formula will
work:

=MOD(SUBTOTAL(3,$A$1:A1),2)=0

Select the rows to format (this assumes the formatting starts with row 1)
Enter the formula as if it were for the the currently active cell (in this
case A1). The range must be applied to a column that will contain values in
each visible cell in the column. "

The formula above will also take care of the normal unfiltered situation

If it's without filtering, then we could just use:
=MOD(ROW(),2)=0
as the cond format formula
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Tony" wrote:
I want to create a simple chart with alternating row colors to easily read
data. When I auto-filter the data it moves the cell color. I want to keep
nice alternating rows.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default auto-filter in excel but leave cell background color

Max

Thanks for posting.

I thought the =MOD(ROW(),2)=0 would stick through filtering, but my test data
was spurious......who woulda guessed?<g

Gord


On Wed, 20 Dec 2006 17:47:00 -0800, Max wrote:

Try this conditional format formula,
taken from a post by Tom Ogilvy,
http://tinyurl.com/dsu87

" If the hidden rows are cause by applying a filter then this formula will
work:

=MOD(SUBTOTAL(3,$A$1:A1),2)=0

Select the rows to format (this assumes the formatting starts with row 1)
Enter the formula as if it were for the the currently active cell (in this
case A1). The range must be applied to a column that will contain values in
each visible cell in the column. "

The formula above will also take care of the normal unfiltered situation

If it's without filtering, then we could just use:
=MOD(ROW(),2)=0
as the cond format formula


Gord Dibben MS Excel MVP
  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default auto-filter in excel but leave cell background color

No prob, Gord <g. Cheers
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

Gord Dibben wrote:
Max

Thanks for posting.

I thought the =MOD(ROW(),2)=0 would stick through filtering, but my test data
was spurious......who woulda guessed?<g

Gord


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default auto-filter in excel but leave cell background color

Tony

Select the rows you want with alternating shading.

FormatConditional FormattingFormula is:

=MOD(ROW(),2)=0

Format to a color and OK

Alternating row colrs will stick through filtering.


Gord Dibben MS Excel MVP

On Wed, 20 Dec 2006 15:55:12 -0800, Tony wrote:

I want to create a simple chart with alternating row colors to easily read
data. When I auto-filter the data it moves the cell color. I want to keep
nice alternating rows.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default auto-filter in excel but leave cell background color

Not correct...........please see Max's post for correct.

Gord

On Wed, 20 Dec 2006 17:49:36 -0800, Gord Dibben <gorddibbATshawDOTca wrote:

Tony

Select the rows you want with alternating shading.

FormatConditional FormattingFormula is:

=MOD(ROW(),2)=0

Format to a color and OK

Alternating row colrs will stick through filtering.


Gord Dibben MS Excel MVP

On Wed, 20 Dec 2006 15:55:12 -0800, Tony wrote:

I want to create a simple chart with alternating row colors to easily read
data. When I auto-filter the data it moves the cell color. I want to keep
nice alternating rows.


Gord Dibben MS Excel MVP
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
Auto filter by background color. infinitodd New Users to Excel 2 March 31st 06 10:03 PM
Excel 2003 Font Color and Background Color DrankPA6 Excel Discussion (Misc queries) 1 August 12th 05 11:43 PM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
background color of my cell does not change Colorblinded Excel Discussion (Misc queries) 2 March 27th 05 04:55 PM
Excel Cell Background Colors Disappeared JerryI Excel Discussion (Misc queries) 6 March 24th 05 10:05 PM


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