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

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,005
Office Version
  1. 365
Platform
  1. Windows
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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
This looks a little odd but should work for you. You need a CF formula:

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

applied to D:D
 
Upvote 0
Solution
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).
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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