Search : in
By :

Conditional formating - apply on more cells

Last answer on Jul 31, 2009 8:25:47 am BST Biljana, on Dec 1, 2008 12:18:38 am GMT 
 Report this message to moderators

Hello,
i'm not so familiar with conditional formatting, so i would like to ask something:
I'm making a doc where Column A has number values, column B also numbers, of rank positions. Conditional formating of cell in column B would be: if number is greater than number in cell A, colour it Red, and if it is less than number in cell A, colour it green (rank position dropped down). Now, i managed that, but since the document has lots of rows, how do i apply the formating on the other cells in the column? If i make copy/paste to them, formatting doesn't apply on the whole column since it is not a function, but a cell format. And do i have to do the formating every day for every next column ?

Configuration: Windows XP
Firefox 3.0.4

Best answers for « Conditional formating apply on more cells » in :
Unlimited Conditional Formatting ShowUnlimited Conditional Formatting Introduction Principle Code Introduction The limitation of MFC (Conditional Formatting) to Excel version 2007 is less than 3. This is very short. Having seen many applications to push the limit, I am...
Colouring cells on conditions ShowColouring cells on conditions There are many pratical functions under Excel which is not commonly used. Example: If you wish a cell automatically turns red (or other formatting border, frame etc) under one condition: a result, a...
[VBA] A function that returns the color of an active MFC Show[VBA] A function that returns the color of an active MFC This function returns the value of the active format in conditional formatting. With the function below, two values can be returned. Mode = 0: the value of Interior.ColorIndex...
Download Free Virtual Serial Ports Emulator ShowFor the users of the same network or even on the single computer, sometimes an apparatus can be solicited by several applications more than once. Free Virtual Serial Ports Emulator or VPSE is a program intends for the computer engineers and in...
Spreadsheets - Conditional expressions ShowWhat is a Conditional Structure? Conditional structures are instructions that allow to test if a condition is true or not. Conditional structures may be associated together. To successfully execute these tests using logical functions, spreadsheets...
General Terms and Conditions of Use ShowAll Rights Reserved - 2009 - Communitic International Object These General Terms and Conditions are meant to define the ways in which the services of the website en.kioskea.net, hereafter "The Service," are made available, as well as the...

3

sheryljohnson, on Dec 2, 2008 7:19:42 am GMT
  • +11

The "secret" is to make the formula with "relative referencing", hence, if your formula looks like this:
=$B$2>$A$2

then remove the $ sign before the row number, so it will look like this:
=$B2>$A2

With this, you actually don't need to copy the conditional formatting. You can select an entire range before applying it, and insert the formula as if you selected only the first cell at the top. Excel will know to apply the correct formulas to all the other cells in the range (assuming the range is a column).
Or you can apply this formula to the first row, and copy it with the format painter.

You can have a look at the video named "Highlight the entire row based upon a cell value (with a formula)" in the following address:
http://www.microsoft-office-excel.com/conditional-formatting.html

It gives an example of using a similar formula with such "relative referencing".

Good luck!

Reply to sheryljohnson

4

Poo, on Jan 12, 2009 4:45:54 am GMT
  • +2

Hi!!! Your guidance was really helpful... saved on a lot of effort!!! Thanks a ton!

Reply to Poo

5

iceteh, on Jan 16, 2009 11:55:36 pm GMT

Your replay is very very helpful. I had been looking for the solution. Thank you.

Reply to iceteh

6

Alban, on Jan 28, 2009 1:16:21 am GMT

Many thanks for this link.
It was really helpful

Reply to Alban

7

Outlandish, on Mar 6, 2009 1:07:15 pm GMT
  • +1

Thank you so much. The answer I have been looking for all this time. You made my otherwise horrible week okay.

thanks.

Reply to Outlandish

8

TBone, on Apr 6, 2009 5:08:09 pm BST
  • +1

Thank you!! I cannot believe how long I had to search this morning to find a short, concise answer to a question that I feel shouldn't need asking. I just don't understand the thought process behind not having conditional formatting copiable across a range (relative) easily available.
T

Reply to TBone

9

Mousetrapper, on Apr 30, 2009 8:31:01 am BST
  • +1

This does appear to work for normal cells. However, if the range is in a pivot table, which is refreshed the conditional format is removed from the pivot table range. This doesn't happen in Excel 2003 any ideas?

Reply to Mousetrapper

10

Mousetrapper, on Apr 30, 2009 8:48:27 am BST

Or it may be something to do with the data coming from an external data warehouse.

Reply to Mousetrapper

11

angelcross37, on May 11, 2009 5:08:24 pm BST

Hoolleeyy cow!!!
i've been thinking for 3hrs how to this, i even attempted to use macros but it still fails...
can u please explain what is the purpose of that dollar sign? pls? y u removed it?

thanks you made my day!!!

Reply to angelcross37

12

herodouts, on Jun 8, 2009 8:21:01 pm BST

AWESOME! Thanks. it seemed rather finicky - seems flakey if you try to edit an existing rule, but if you start from scratch it works.

Reply to herodouts

13

Umair, on Jul 29, 2009 7:32:44 pm BST

Thanks mate. it was very helpful

Reply to Umair

14

 Perinouk, on Jul 31, 2009 8:25:47 am BST

Hi,

This is great. However I would like rows highlighted which are within a range. I tried the formula =($G2>0), ($g2<21) but it isn't working. what's the right formula to use?

Thanks

Reply to Perinouk