Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,069
Default conditional format from row to row

Hi, I am using Excel 2003 and would like a conditional format to work with a
named range, is that possible? I have a named Range called City in column b.
When the city changes I would like for the entire row to change to a specific
color I designate. I have used this formula =$b16<$b15 and this works until
I filter the data. Please if anyone has done this or something close I would
like to see your formula.

Thanks,
John
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default conditional format from row to row

For a "2 color" band...one group of rows will be the color you select. The
next group of rows will not be colored in effect giving you a 2 color band.

Let's assume the range you want to format is A2:B16. You want to color band
the range when there is a change in column B.

A1:B1 are the column headers.

Select the range A2:B16
Goto the menu FormatConditional Formatting
Select the Formula Is option
Enter this formula in the box on the right

=MOD(SUMPRODUCT(SUBTOTAL(3,OFFSET($B$2:$B2,ROW(B$2 :B2)-ROW(B$2),0,1)),--($B$1:$B1<$B$2:$B2)),2)

Click the Format button
Select the desired fill color
OK out

This will be slow to calculate on large amounts of data.

Sample file available on request

--
Biff
Microsoft Excel MVP


"John" wrote in message
...
Hi, I am using Excel 2003 and would like a conditional format to work with
a
named range, is that possible? I have a named Range called City in column
b.
When the city changes I would like for the entire row to change to a
specific
color I designate. I have used this formula =$b16<$b15 and this works
until
I filter the data. Please if anyone has done this or something close I
would
like to see your formula.

Thanks,
John



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
copy conditional format without using format painter MsConfused Excel Worksheet Functions 2 May 4th 09 07:16 AM
New Conditional Format Overriding Previous Conditional Format Rene Excel Discussion (Misc queries) 3 February 27th 08 06:08 PM
copy conditional format to regular format GDC Setting up and Configuration of Excel 3 May 4th 05 09:35 PM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM


All times are GMT +1. The time now is 04:27 AM.

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"