Forum Discussion
Josh Moulton
Feb 09, 2018Copper Contributor
Help with Excel formulas
I have 2 Columns that are time. Example(one column(A) is arrival and the other column(B) is departures) I need them to highlight the row(A2,B2) when the difference between the two is greater than 15...
Haytham Amairah
Feb 10, 2018Silver Contributor
Joshua,
You can use Conditional Formatting with a formula to do that.
But please let us know the kind of difference between the two? Is it greater than 15 hours or minutes?
I'll suppose that is greater than 15 hours, so the formula for the conditional formatting is like this:
=MOD($B2-$A2,1)*24>15
Please find the attachment file to see the solution!
- Josh MoultonFeb 11, 2018Copper ContributorHello thanks for helping it is actually 15 minutes. How would that formula look.
- Haytham AmairahFeb 11, 2018Silver ContributorIf so, the formula would be as follows:
=(MOD($B2-$A2,1)*24)>0.25
- Josh MoultonFeb 11, 2018Copper Contributor
thanks again is there a way to have it work for each row of do I have to enter it separate for each row