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 Formating if Greater Than or Less Than other column

Hi,

I have a spreadsheet with data in two worksheets. I need to compare the data
in each cell of column A in worksheet A to the data in each cell of column A
of worksheet B. If the value of a cell in worksheet A is greater, I need the
cell to be colored green. If the value is less, I need it to be coded red.
There is the same number of rows in both columns.

I have tried copying the column from worksheet B into worksheet A, but this
doesn't help much. The problem is that when I do the normal greater/less than
conditional formating, I can't copy and paste the formula down the column
because it will only look at the value of the first cell that I entered. I
don't know how to do codes or anything, so I don't know how to fix this.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Conditional Formating if Greater Than or Less Than other column

With both columns in one worksheet, highlight all the cells in column
A starting with A1 and click on Format | Conditional Formatting, then
in the first panel select Formula Is rather than Cell Value Is, and in
the next panel enter this formula:

=A1B1

Click on the Format button, choose the Patterns tab (for background
colours) and choose your colour (green). Then click OK once to get
back to the CF dialogue box and click Add to set up the next condition
- select Formula Is again, and this formula:

=A1<B1

then click the Format button and choose Red as the background colour.
This time click OK twice.

Hope this helps.

Pete

On Feb 25, 3:24*pm, CClio333
wrote:
Hi,

I have a spreadsheet with data in two worksheets. I need to compare the data
in each cell of column A in worksheet A to the data in each cell of column A
of worksheet B. If the value of a cell in worksheet A is greater, I need the
cell to be colored green. If the value is less, I need it to be coded red.
There is the same number of rows in both columns.

I have tried copying the column from worksheet B into worksheet A, but this
doesn't help much. The problem is that when I do the normal greater/less than
conditional formating, I can't copy and paste the formula down the column
because it will only look at the value of the first cell that I entered. I
don't know how to do codes or anything, so I don't know how to fix this.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 189
Default Conditional Formating if Greater Than or Less Than other column

Hi,

Its late but still give it a try. Say for eg you have to compare two columns
of salary and the creteria is as below. You need to put more conditions to
fullfill your requirements thats why i have added one more condition.

if salary less than 1000 = Red
if salary more than 1000 = Green
if salary more than 1000 but less than 2000 = Blue.

=IF(Sheet6!A2Sheet7!A2,Sheet6!A2,Sheet7!A2)

Based on the above formula you can chalk down the limit as mentioned above
and do the conditional formatting.

Thanks
--
Thanks
Suleman Peerzade


"CClio333" wrote:

Hi,

I have a spreadsheet with data in two worksheets. I need to compare the data
in each cell of column A in worksheet A to the data in each cell of column A
of worksheet B. If the value of a cell in worksheet A is greater, I need the
cell to be colored green. If the value is less, I need it to be coded red.
There is the same number of rows in both columns.

I have tried copying the column from worksheet B into worksheet A, but this
doesn't help much. The problem is that when I do the normal greater/less than
conditional formating, I can't copy and paste the formula down the column
because it will only look at the value of the first cell that I entered. I
don't know how to do codes or anything, so I don't know how to fix this.

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
colors and conditional format - greater than, less than Michele Excel Discussion (Misc queries) 5 October 1st 07 10:38 PM
Use conditional formating to find one word in a column. Betty Excel Discussion (Misc queries) 2 November 17th 06 05:09 PM
Conditional formating - Highlighting items in a separate column AFSSkier Excel Discussion (Misc queries) 2 June 7th 06 03:38 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
conditional format greater or less than Micayla Bergen Excel Discussion (Misc queries) 4 May 3rd 05 06:48 AM


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

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"