#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default cell color

Hi.

I have a spreadsheet with about 7000 rows.
To make this readable I would like to add some conditional formating but I
just cant seem to get it right.


example If A!=B change the cellcolor of A to red

A B
1 1 1
2 3 5
3 2 2
4 4 1


Anyone got a clue?

Thanks alot!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default cell color

sry

what I mean is that I want to perform the check on every row, like this

If A1!=B1 change the color
If A2!=B2 change the color
etc
etc

"ChrisP" skrev:

Hi.

I have a spreadsheet with about 7000 rows.
To make this readable I would like to add some conditional formating but I
just cant seem to get it right.


example If A!=B change the cellcolor of A to red

A B
1 1 1
2 3 5
3 2 2
4 4 1


Anyone got a clue?

Thanks alot!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default cell color

sorry i can not underestand A1! what does "!" mean is it a type mistake?

Thanks,
--
Farhad Hodjat


"ChrisP" wrote:

sry

what I mean is that I want to perform the check on every row, like this

If A1!=B1 change the color
If A2!=B2 change the color
etc
etc

"ChrisP" skrev:

Hi.

I have a spreadsheet with about 7000 rows.
To make this readable I would like to add some conditional formating but I
just cant seem to get it right.


example If A!=B change the cellcolor of A to red

A B
1 1 1
2 3 5
3 2 2
4 4 1


Anyone got a clue?

Thanks alot!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default cell color

Hi Chris

Mark the range A1:B7000
FormatConditional Formattinguse dropdown for Formula Is =A1=B1
Choose Format required


Note that in the formula pane it is essential to enter the starting =

--
Regards

Roger Govier


"ChrisP" wrote in message
...
sry

what I mean is that I want to perform the check on every row, like
this

If A1!=B1 change the color
If A2!=B2 change the color
etc
etc

"ChrisP" skrev:

Hi.

I have a spreadsheet with about 7000 rows.
To make this readable I would like to add some conditional formating
but I
just cant seem to get it right.


example If A!=B change the cellcolor of A to red

A B
1 1 1
2 3 5
3 2 2
4 4 1


Anyone got a clue?

Thanks alot!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default cell color

hmm doesnt seem to do the right comparison.
It does highlight cells, but not like the code specifies.
It looks like the hightlight are totaly random.

Any other ideas?
Im all out :(


Btw != is the same as NOT()


"Roger Govier" skrev:

Hi Chris

Mark the range A1:B7000
FormatConditional Formattinguse dropdown for Formula Is =A1=B1
Choose Format required


Note that in the formula pane it is essential to enter the starting =

--
Regards

Roger Govier


"ChrisP" wrote in message
...
sry

what I mean is that I want to perform the check on every row, like
this

If A1!=B1 change the color
If A2!=B2 change the color
etc
etc

"ChrisP" skrev:

Hi.

I have a spreadsheet with about 7000 rows.
To make this readable I would like to add some conditional formating
but I
just cant seem to get it right.


example If A!=B change the cellcolor of A to red

A B
1 1 1
2 3 5
3 2 2
4 4 1


Anyone got a clue?

Thanks alot!






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default cell color

Hi,

The right formula is:
=AND(B2,NOT(ISBLANK(B2)))

to avoid changing the color when the cells are blank.

Thanks,

--
Farhad Hodjat


"Roger Govier" wrote:

Hi Chris

Mark the range A1:B7000
FormatConditional Formattinguse dropdown for Formula Is =A1=B1
Choose Format required


Note that in the formula pane it is essential to enter the starting =

--
Regards

Roger Govier


"ChrisP" wrote in message
...
sry

what I mean is that I want to perform the check on every row, like
this

If A1!=B1 change the color
If A2!=B2 change the color
etc
etc

"ChrisP" skrev:

Hi.

I have a spreadsheet with about 7000 rows.
To make this readable I would like to add some conditional formating
but I
just cant seem to get it right.


example If A!=B change the cellcolor of A to red

A B
1 1 1
2 3 5
3 2 2
4 4 1


Anyone got a clue?

Thanks alot!




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default cell color

So if you want highlight cell A2 if it is not equal to B2 then you have to do
this:

active cell A2 go to menu: formatconditional formatting and then the first
combobox should be "cell value is:" and the second combobox sould be "not
equal to" and in the text box enter =B2 then click OK

you can copy the format of the cell B2 to any other cells that you need

Thanks,
--
Farhad Hodjat


"ChrisP" wrote:

hmm doesnt seem to do the right comparison.
It does highlight cells, but not like the code specifies.
It looks like the hightlight are totaly random.

Any other ideas?
Im all out :(


Btw != is the same as NOT()


"Roger Govier" skrev:

Hi Chris

Mark the range A1:B7000
FormatConditional Formattinguse dropdown for Formula Is =A1=B1
Choose Format required


Note that in the formula pane it is essential to enter the starting =

--
Regards

Roger Govier


"ChrisP" wrote in message
...
sry

what I mean is that I want to perform the check on every row, like
this

If A1!=B1 change the color
If A2!=B2 change the color
etc
etc

"ChrisP" skrev:

Hi.

I have a spreadsheet with about 7000 rows.
To make this readable I would like to add some conditional formating
but I
just cant seem to get it right.


example If A!=B change the cellcolor of A to red

A B
1 1 1
2 3 5
3 2 2
4 4 1


Anyone got a clue?

Thanks alot!




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default cell color

I think you meant the formula to be
=AND(A2<B2,NOT(ISBLANK(B2)))

Why not Choose entire column(s)
If you want to color both cells or the entire row
you can change the formula to
=AND($A2<$B2,NOT(ISBLANK($B2)
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Farhad" wrote in message ...
Hi,

The right formula is:
=AND(B2,NOT(ISBLANK(B2)))

to avoid changing the color when the cells are blank.

Thanks,

--
Farhad Hodjat


"Roger Govier" wrote:

Hi Chris

Mark the range A1:B7000
FormatConditional Formattinguse dropdown for Formula Is =A1=B1
Choose Format required


Note that in the formula pane it is essential to enter the starting =

--
Regards

Roger Govier


"ChrisP" wrote in message
...
sry

what I mean is that I want to perform the check on every row, like
this

If A1!=B1 change the color
If A2!=B2 change the color
etc
etc

"ChrisP" skrev:

Hi.

I have a spreadsheet with about 7000 rows.
To make this readable I would like to add some conditional formating
but I
just cant seem to get it right.


example If A!=B change the cellcolor of A to red

A B
1 1 1
2 3 5
3 2 2
4 4 1


Anyone got a clue?

Thanks alot!






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
Can't format cell color/text color in Office Excel 2003 in fil Tony S Excel Discussion (Misc queries) 1 December 21st 07 01:41 PM
Excel: Syntax to change cell color based on color of another cell davew18 Excel Worksheet Functions 1 January 4th 07 01:24 PM
Can't format cell color/text color in Office Excel 2003 in files . albertaman Excel Discussion (Misc queries) 0 February 16th 06 03:56 AM
How to change the default Border, Font Color, and Cell Color Elijah Excel Discussion (Misc queries) 3 November 2nd 05 11:52 PM
Default Border, Font Color, and Cell Background Color Elijah Excel Discussion (Misc queries) 1 October 28th 05 04:10 PM


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