Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to check if time is greater than or less than a specific time in Excel?

How could you check if the time which in a list of time cells is greater than or less than a specific time in Excel? In this article, I will talk about some useful formulas to deal with this problem, please do with the following steps:

Check if time is greater than or less than a specific time with formulas


Quickly insert random time in a range of cells:

With Kutools for Excel's Insert Random Data feature, you can quickly insert random numbers, date, times and text strings as you need.

doc insert random time

Note: More than 200 functions can make your job efficiently,you can download Kutools for Excel for free trial.


arrow blue right bubble Check if time is greater than or less than a specific time with formulas

For example, here, I will check the time based on 3:30PM, if the time is greater than 3:30PM, a text “Yes” is displayed, if less than 3:30PM, a text “No” is appeared as following screenshot shown. In Excel, the following formulas may help you, please do as this:

doc if time greater than 1

Enter this formula: =IF(A2="","",IF(A2>(--"3:30 PM"),"Yes","No")) into a blank cell where you want to locate the result, B2, for instance, and then drag the fill handle down to the cells that you want to apply this formula. Now, if the time is greater than the specific time 3:30PM, a “Yes” is displayed, otherwise, a “No” is displayed, see screenshot:

doc if time greater than 2

Notes:

1. In the above formula, A2 is the cell that you want to check, and the 3:30PM is the specific time that you want to check based on, you can change them to your need;

2. Expecting the above formula, here is another formula also can help you:

=IF(A2<TIME(15,30,0),"Prior",IF(A2>=TIME(15,30,0),"After","0")), (15, 30, 0 indicate the number of hour, minute and second that you want to check based on, you can modify them to your need ), after applying this formula, if your time is greater than 15:30:00, it will displayed “After”, if the time is less than 15:30:00, the cell is displayed “Prior”. See screenshot:

doc if time greater than 3


Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for you.

  • Designed for 1500+ work scenarios, helps you solve 80% Excel problems.
  • Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  • Being used by 110,000 elites and 300+ well-known companies.

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.