conditional format; if last cell in column is less than the second last

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
1,808
folks, i use a formula row to update a table each week. that is, i have all the formulas in a row above the table, and then each week when the new data comes out, i copy the formula row below the table, pasting these as values. this is to keep each week of data as a static point in time row. i made a silly mistake today where i forgot to update a separate range which impacted my calculations. to avoid this happening again, i want to add a conditional format to the formula row that will work when i copy the row below the table. this is to highlight when the new number is less than last week's number. it should always be higher. i have tried a simple if statement but the applies to keeps changing to absolute

1615193725154.png
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,403
Office Version
  1. 365
Platform
  1. Windows
This looks a little odd but should work for you. You need a CF formula:

=AND(D1048576<>"",D1<>"",D1<=D1048576)

applied to D:D
 
Solution

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
1,808
This looks a little odd but should work for you. You need a CF formula:

=AND(D1048576<>"",D1<>"",D1<=D1048576)

applied to D:D
Thanks Steve.

works like a charm. How though? it defies logic (well, my slim grasp of logic anyway).
 

Watch MrExcel Video

Forum statistics

Threads
1,130,310
Messages
5,641,450
Members
417,210
Latest member
rins

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
Top