Forum Discussion
Formula for tracking service intervals on running equipment
Greetings, all. I've been tasked with creating a live service interval tracking formula for our onsite equipment. I have current hours, and service intervals are 250 hrs and 500 hrs respectively.
=IF(AND((E30-C30)<500),"OK","SERVICE")
C30 = last serviced hrs
E30 = current live hrs
I'm wondering if there is a better formula I can use? I'm a caveman when it comes to Excel, so this is the best I've come up with :(.
I'd like to have OK in green and SERVICE in red.
Any suggestions would be greatly appreciated. Thank you for your time.
BP
7 Replies
- SergeiBaklanDiamond Contributor
_BP_ ,
You don't need AND here, just
=IF((E30-C30<500),"OK","SERVICE")
and you may use conditional formatting to color your cells automatically depends on hours difference.
- _BP_Copper Contributor
SergeiBaklan thank you for your prompt aide. Can you tell me what formula I would use to colour the column when Service is the result of the first formula? I am unclear where to even place the formula, nevermind how to scribe it.
BP
- SergeiBaklanDiamond Contributor
_BP_ , please check this post https://www.ablebits.com/office-addins-blog/2014/06/10/excel-conditional-formatting-formulas/comment-page-6/ how to work with conditional formatting.
Your formula could be like
=($E1-$C1)<500
for the one color, and similar one for another. Two colors - two rules.
If you provide small sample file I could illustrate details on it.