Conditional Formatting data in a Query Table based on elapsed time.

killerdegus

New Member
Joined
Jun 16, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello all,
I have a table (Query 1) which pulls data from an SQL server and auto refreshed every 2 minutes.
This table has rows each depicting a single order with columns showing various information about the order (Value, Status, Allocation etc)
In this table i have a column called "Last Updated' (Column M) which tells me the last time the order was adjusted on our system.
It shows in standard time format e.g. 16/06/2023 13:01 ,this represents the time a picking list was printed and sent to our warehouse.

On this table i would like to conditional format so a row would turn red if the current time =NOW() is more than two hours after the Last Updated time.
This would then flash orders that have been active and allocated for longer than two hours, letting the pickers know to prioritize them.

I have tried solutions from other threads such as =AND(MOD(NOW(),1)>=TIMEVALUE(LEFT(M$7,5)),MOD(NOW(),1)<TIMEVALUE(RIGHT(M$7,5))) but i think the application is a bit different so isnt working for me.

Any help would be appreciated. Let me know if you need any more specifics.

-Alex
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,215,110
Messages
6,123,138
Members
449,098
Latest member
Doanvanhieu

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