Copy conditional statements does not work like it should

bwhyte

New Member
Joined
Nov 22, 2005
Messages
3
When I cut and paste a function from cell B2 to B3, Excel updates the function with new cell numbers

Cut =IF(B2>A2,"true","false") from B2
Paste to B3 becomes = IF(B3>A3,"true","false")

Is there a solution to cutting and pasting conditional statements so that Excel updates the cell numbers?

If not, is there a way to change the color of a cell using an IF function?

If not, I will have to edit 10000 conditional statements.

Thanks
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
75,362
Office Version
365
Platform
Windows
What do you actulaly want to do?

You seem to be contradicting yourself. First you say Excel is updating the cell references, and you don't seem to want that.

Then you ask if there's a way to update the cell numbers.

Do you only want to update the column or row?

As to your last question, you probably want Format>Conditional Formatting...
 

bwhyte

New Member
Joined
Nov 22, 2005
Messages
3
Norie,

Replace the words "conditional statement" with "conditional formatting" and it will make sense. I have created conditional formatting on one cell and wish to copy it to 10000 other cells. When I copy it to the 10000 other cells, I want Excel to update the cells in the formulas. Excel updates functions when they are copied from one cell to another, but does not update conditional formatting when it is copied from one cell to another.

Thanks

Brian
 

bwhyte

New Member
Joined
Nov 22, 2005
Messages
3
Nevermind. My brother suggested that I remove the dollar signs from the conditional formatting formulas ($) and Excel updated the conditional formatting.
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
75,362
Office Version
365
Platform
Windows
Brian
but does not update conditional formatting when it is copied from one cell to another.
Yes it does.:)

Can you tell us what conditional formatting you are trying to apply?
 

Forum statistics

Threads
1,081,525
Messages
5,359,272
Members
400,523
Latest member
ExcelNewbie98

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top