6.6 C
London
Tuesday, March 11, 2025
HomeSoftware TutorialsGoogle SheetsGoogle Sheets: Formula for “If Time is Greater Than”

Google Sheets: Formula for “If Time is Greater Than”

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

You can use the following formula to create an IF statement that compares the time in a cell to some specific time in Google Sheets:

=IF(B2>TIME(0, 5, 0), "Slow", "Fast")

This particular formula checks the time in cell B2 and returns “Slow” if it is greater than 5 minutes or “Fast” if it is equal to or less than 5 minutes.

Note: The TIME function uses a format of TIME(hours, minutes, seconds).

The following example shows how to use this formula in practice.

Example: Formula for “If Time is Greater Than” in Google Sheets

Suppose we have the following dataset in Google Sheets that shows the one-mile run times of various athletes:

We can use the following formula to check the time in cell B2 and return “Slow” if it is greater than 5 minutes or “Fast” if it is equal to or less than 5 minutes:

=IF(B2>TIME(0, 5, 0), "Slow", "Fast")

We can type this formula into cell B2 and then click and drag it down to the remaining cells in column B:

Google Sheets if time is greater than formula

For each athlete who has a time less than 5 minutes, the formula returns “Fast.”

For each athlete who has a time equal to or greater than 5 minutes, the formula returns “Slow.

Note: You can find the complete documentation for the TIME function in Google Sheets here.

Additional Resources

The following tutorials explain how to perform other common operations in Google Sheets:

How to Convert Timestamp to Date in Google Sheets
How to Sort by Date in Google Sheets
How to Compare Dates in Google Sheets
How to Add Months to Date in Google Sheets

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories