Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old December 9th 05, 12:07 AM posted to microsoft.public.excel.worksheet.functions
thisisjampers
 
Posts: n/a
Default format cell based on previous one

I'm using conditional formats to seperate groups of data. For example, when
the content of a cell in column A changes from the previous row to the next,
the conditional format puts a bold border on top (as opposed on a light
border). The problem arises when I insert a row. Then every comparison below
that new row compares to 2 rows up, not 1 row up.
Ideas appreciated.

  #2   Report Post  
Old December 9th 05, 02:15 PM posted to microsoft.public.excel.worksheet.functions
thisisjampers
 
Posts: n/a
Default format cell based on previous one

I will describe the problem more clearly:
I have several rows of information. Column A contains the main group for
each row. The items are sorted so all items in the main group are together.
Every time the main group changes, I want to put a thicker format line above
that group. For example:
A/B/C
1] cow/white/500
2] cow/black/450
3] cow/spotted/398
4] horse/brown/333
5] horse/black/450
6] pig/tan/340
7] pig/white/322
So I want thick lines above row 1, 4 and 6.
And if I insert a row, it doesn't affect it.
This is what I used in the conditional format, but row insertions messes it
up.
=$A7<$A6 (then format with thick line on top of cell)

"thisisjampers" wrote:

I'm using conditional formats to seperate groups of data. For example, when
the content of a cell in column A changes from the previous row to the next,
the conditional format puts a bold border on top (as opposed on a light
border). The problem arises when I insert a row. Then every comparison below
that new row compares to 2 rows up, not 1 row up.
Ideas appreciated.

  #3   Report Post  
Old December 9th 05, 08:06 PM posted to microsoft.public.excel.worksheet.functions
thisisjampers
 
Posts: n/a
Default format cell based on previous one

All right, I figured it out. The conditional statement looks like this:
=INDEX($A$1:$A$100,ROW(),1)<INDEX($A$1:$A$100,ROW ()-1,1)

"thisisjampers" wrote:

I will describe the problem more clearly:
I have several rows of information. Column A contains the main group for
each row. The items are sorted so all items in the main group are together.
Every time the main group changes, I want to put a thicker format line above
that group. For example:
A/B/C
1] cow/white/500
2] cow/black/450
3] cow/spotted/398
4] horse/brown/333
5] horse/black/450
6] pig/tan/340
7] pig/white/322
So I want thick lines above row 1, 4 and 6.
And if I insert a row, it doesn't affect it.
This is what I used in the conditional format, but row insertions messes it
up.
=$A7<$A6 (then format with thick line on top of cell)

"thisisjampers" wrote:

I'm using conditional formats to seperate groups of data. For example, when
the content of a cell in column A changes from the previous row to the next,
the conditional format puts a bold border on top (as opposed on a light
border). The problem arises when I insert a row. Then every comparison below
that new row compares to 2 rows up, not 1 row up.
Ideas appreciated.



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
Creating a conditional format for a cell based on another cell's v steve-o Excel Discussion (Misc queries) 2 October 26th 05 03:51 PM
Can I format an entire row based on the value of a single cell? LTShelley Excel Discussion (Misc queries) 1 August 11th 05 07:37 PM
New column based on row cell format peteracain Excel Discussion (Misc queries) 1 August 8th 05 01:37 PM
How do I do conditional format based on a cell with a formula? Justin Excel Worksheet Functions 9 December 17th 04 03:05 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 08:16 PM


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

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017