Conditional formatting autofilling to adjacent column (screenshot enclosed)

Noumenon

New Member
Joined
Aug 19, 2011
Messages
8
In my miles per gallon spreadsheet, the price of gas column has the automatic red-to-green conditional formatting, but when I enter my total miles, it thinks it's part of that range and formats it.

mpg.png
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
In my miles per gallon spreadsheet, the price of gas column has the automatic red-to-green conditional formatting, but when I enter my total miles, it thinks it's part of that range and formats it.

mpg.png
Maybe all you need to do is clear the formats for that range of cells.

I keep this button on my QAT.

Select the range of cells in question
Goto the Home tab
In the Editing Group, select Clear (the eraser icon)>Clear Formats
 
Upvote 0
Thanks, that didn't work for me. Just now I tried clearing the formats on the gallons column and setting up a brand new red-to-green conditional format, but I get the same problem.

One thing you can't see in the screen shot is that there are blank cells in both columns. If I enter a new number in a blank cell higher up the miles column, it gets conditional formatted. If I change a number in one of the filled cells, it does not get formatted. If I delete a filled cell and re-enter the number, it gets formatted. So only blank cells are getting the formatting from the column to their left.
 
Upvote 0
This is Excel 2007, I forgot to say (sorry, didn't see if there are posting rules). And I would have posted the .xlsx file except the FAQ seemed to say the download that lets you do that is off the Web.
 
Upvote 0
To be clearer about my #3: I did try clearing the format and it did work as far as having the formatting restricted to the one column, but then when I entered another new number it was formatted again, even if I cleared the formatting in that cell before entering a number in it.
 
Upvote 0
To be clearer about my #3: I did try clearing the format and it did work as far as having the formatting restricted to the one column, but then when I entered another new number it was formatted again, even if I cleared the formatting in that cell before entering a number in it.
Well, at this point I'd need to see the file to try to figure out what's what.

Can you post a link to your file? You can use a free file host if need be.
 
Upvote 0
I'm glad the file upload worked, it will eliminate a lot of confusing descriptions. My problem, simply stated, is that if you enter a number in a blank cell in column E that has a filled cell to the left of it, it gains the formatting from column D.
 
Upvote 0
I'm glad the file upload worked, it will eliminate a lot of confusing descriptions. My problem, simply stated, is that if you enter a number in a blank cell in column E that has a filled cell to the left of it, it gains the formatting from column D.
Hmmm...

Ok, now I see what you mean.

It seems to happen to every consecutive cell in the row even though none of the other columns has a CF rule applied.

For example, in the sample file cell D9 contains an entry and the rest of the row is empty. D9 and F9 have CF applied. If you start entering numbers in E9 then F9 then G9 then H9 then I9 then etc., etc. all these cells get formatted yet the only cells that had a pre-defined CF rule applied are D9 and F9.

To stop this check this setting:

Office button
Excel Options
Advanced
Editing Options
Uncheck: Extend data range formats and formulas

They sure did screw up the CF tool in Excel 2007. It's a good thing that they greatly expanded the number and types of formatting that could be applied but at the same time they totally screwed up the CF user interface. It sucks big time!
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,750
Members
452,940
Latest member
rootytrip

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
Back
Top