Conditional Formatting and Empty Cells

falcios

Active Member
Joined
Aug 30, 2006
Messages
279
Office Version
  1. 2019
Platform
  1. Windows
I have this formula and I have applied conditional formatting
=IF(D41=D40,"Change","")

Conditional formatting is to bold and fill cell with yellow color if Change is in the cell.
When I drag the formula down to the whole range, the conditional formatting has been applied to the numbers that changed as well as empty adjacent cells.

I don't want to see the word change if the adjacent cell is empty.
How can I do this?

Thanks in advance.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
You should add a condition to your formula providing for empty cells. I don't understand whet you mean by "adjacent cell" , but something based on
Excel Formula:
=IF(AND(D41=D40, D41<>"",D40<>""),"Change","")
should do?
 
Upvote 0
Solution
You should add a condition to your formula providing for empty cells. I don't understand whet you mean by "adjacent cell" , but something based on
Excel Formula:
=IF(AND(D41=D40, D41<>"",D40<>""),"Change","")
should do?

Thanks arthurbr, that formula worked perfectly.

I meant by adjacent cells, the cell is empty either to the left or right of the cell
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,793
Members
449,048
Latest member
greyangel23

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