LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Conditional Formatting and Autofilter

Hi,

I've setup excel to take the alphabetical records I have (1 row = 1 record)
and perform a calculation on each row that eventually makes the spreadsheet
appear with a green or white background for each differnt name. Column A
contains the last name of the person in each record. So...

A B C Z
1 LAST FIRST INVOICE ........
2 Kirkpatrick Lady 72772 1
3 Jones Mister 72554 2
4 Jones Mister 72555 2
5 Smith Guy 73301 3

In some column off-screen like column Z in each row starting with row 2
where the first record is, I tell Excel to determine if the last name above
the current row is the same as the last name in the current row. If the
names are different then add 1 to the number above itself (in column Z). If
the names are the same then carry the number above itself. (we dont have so
many clients that i need to worry about the first name check yet)

The formula for cell Z2 is : =IF(A2<A1,Z1+1,Z1)
The formula for cell Z3 is : =IF(A3<A2,Z2+1,Z2)
etc...

This works very well with conditional formatting for the rows, making the
odd numbers in the cell produce a green pattern background and the even
numbers staying with a white background.

My problem is when autoformat is turned on and some of the rows disappear.
The calculation STILL calculates the hidden rows and messes up the
green/white/green/white altering pattern. Any way to make the calculation
perform on only the visible rows?
 
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 Autofilter For Formula Ms-Exl-Learner Excel Discussion (Misc queries) 4 September 22nd 09 12:47 PM
Conditional format when autofilter engaged ttbbgg Excel Discussion (Misc queries) 3 February 13th 08 07:57 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
autofilter/formatting problem [email protected] Excel Discussion (Misc queries) 1 April 22nd 07 07:43 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


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