conditional formatting

ndendrinos

Well-known Member
Joined
Jan 17, 2003
Messages
1,694
hello to all
In A1 I have an amount
I want to conditional format A2:A100 like this
If amt in A2 less than A1 fill in red ... if more than A1 fill in green
I need to extend this conditional formatting to all cells in column A (up to A100)
Many thanks for your help

I use excel 2000
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
6,993
Office Version
  1. 365
Platform
  1. MacOS
setup 2 rules
select a2:a100

the in the rule

=A2 < A1
choose a red fill format

next rule

=A2 > A1
green

what if A1 = A2

change the < or > to include =
ie
< =
> =

will any cell be blank - as the will be seen as zero

so if you want to ignore blank

=AND( A2 < > "" , A2 < A1 )
red

=AND( A2 < > "" , A2 > A1 )
 
Upvote 0

ndendrinos

Well-known Member
Joined
Jan 17, 2003
Messages
1,694
setup 2 rules
select a2:a100

the in the rule

=A2 < A1
choose a red fill format

next rule

=A2 > A1
green

what if A1 = A2

change the < or > to include =
ie
< =
> =

will any cell be blank - as the will be seen as zero

so if you want to ignore blank

=AND( A2 < > "" , A2 < A1 )
red

=AND( A2 < > "" , A2 > A1 )

not sure how to reply but I thank you
 
Upvote 0

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
6,993
Office Version
  1. 365
Platform
  1. MacOS
did it work ok ?

do i need to explain better ?

maybe an example ?
except i dont have office 2000 - which will be limited
 
Last edited:
Upvote 0

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
12,627
I have a version of Excel 2000 loaded, and the Conditional Formatting is significantly different from later versions. To get your requirements to work on 2000, do this:

Select a2:a100
From the menu, click Format > Conditional Formatting
From the dialog box, select "Formula Is" (replacing "Cell Value Is")
In the formula box, type: =A2< A1<a1
Click Format, and choose the Patterns tab, then choose a red color

Repeat those steps, changing the formula to =A2>A1 and choose a green color.

Hope this helps.</a1
 
Last edited:
Upvote 0

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
12,627
To expand a bit on how to add the second rule: with the dialog box still open after choosing the red color, click the Add >> button on the bottom, then follow the same steps to add the second rule. Excel 2000 only allows 3 CF rules for a given range.
 
Upvote 0

Forum statistics

Threads
1,190,858
Messages
5,983,259
Members
439,833
Latest member
CDaviess

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top