Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Conditional Formatting - 2 columns

I need to apply conditional formatting to a column of cells based on the
values in other cells. ex. Cell A2 says $12,876.98 and cell C2 $14,987.98. I
want C2 to be green. The problem is I want to continue the same formatting
for the rest of the column "A3 compared to C3" and so on. If the value in "C"
column is lower I want it highlighted red and if the value is higher I want
it highlighted green.
The values change in each "A" and "C" column and I can only get the
conditional formatting to compare to A2
Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Conditional Formatting - 2 columns

Select all the cells in column A that are to have the format ( I will assume
A2 is the first)
Use Format | Conditional Formatting
Specify "Cell value is", "Greater than", in the empty righthand box enter
"=C2" without quotes; and set a format
Use Add
Specify "Cell value is", "Less than", in the empty righthand box enter =C2;
and set a format
Click Ok
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"hamilton_heff" wrote in message
...
I need to apply conditional formatting to a column of cells based on the
values in other cells. ex. Cell A2 says $12,876.98 and cell C2 $14,987.98.
I
want C2 to be green. The problem is I want to continue the same formatting
for the rest of the column "A3 compared to C3" and so on. If the value in
"C"
column is lower I want it highlighted red and if the value is higher I
want
it highlighted green.
The values change in each "A" and "C" column and I can only get the
conditional formatting to compare to A2
Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Conditional Formatting - 2 columns

Hi,

To conditionally format your cell(s):

In 2003:
1. Select the cells you want to format (column C)
2. Choose Format, Conditional Formatting
3. Choose Formula is from the first drop down
4. In the second box enter the formula:
=C2<A2
5. Click the Format button
6. Choose a color on the Patterns tab (or any available option)
7. Click OK one.
8. Click Add
9. For Condition 2, from the first drop down pick Formula is
10. In the second box enter the formula:
=C2A2
11. Click the Format button
1. Choose a color and click OK twice.

In 2007:
1. Highlight all the cells on the rows you want formatted
2. Choose Home, Conditional Formatting, Manage Rules, New Rule
3. Choose Use a formula to determine which cell to format
4. In the Format values where this formula is true enter the following
formula:
=C2<A2
5. Click the Format button and choose a format.
6. Click OK twice
7. New Rule
8. Choose Use a formula to determine which cell to format
9. In the Format values where this formula is true enter the following
formula:
=C2<A2
10. Click the Format button and choose a format.
11. Click OK tree times.

If this helps, please click the Yes button.

Cheers,
Shane Devenshire
--

"hamilton_heff" wrote:

I need to apply conditional formatting to a column of cells based on the
values in other cells. ex. Cell A2 says $12,876.98 and cell C2 $14,987.98. I
want C2 to be green. The problem is I want to continue the same formatting
for the rest of the column "A3 compared to C3" and so on. If the value in "C"
column is lower I want it highlighted red and if the value is higher I want
it highlighted green.
The values change in each "A" and "C" column and I can only get the
conditional formatting to compare to A2
Any ideas?

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
Conditional Formatting Non-Adjacent Columns Al Avery Excel Worksheet Functions 10 October 1st 08 03:29 AM
conditional formatting- same value, different columns wynand Excel Discussion (Misc queries) 4 January 30th 08 12:03 PM
conditional formatting for key-value columns kang New Users to Excel 8 August 27th 07 05:35 PM
Conditional Formatting-Comparing Two Columns Tom K Excel Discussion (Misc queries) 1 May 4th 06 06:16 PM
Conditional Formatting 4 Columns David Excel Discussion (Misc queries) 14 April 12th 06 10:42 AM


All times are GMT +1. The time now is 10:47 AM.

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"