Excel TIME function

Builds a time value from hours, minutes and seconds. In Spanish Excel it is called NSHORA.

Syntax

English Excel

=TIME(hour, minute, second)

Spanish Excel (Mexico)

=NSHORA(hora, minuto, segundo)

Spanish Excel (Spain, Latin America)

=NSHORA(hora; minuto; segundo)

ArgumentWhat it is
hourThe hour, from 0 to 23.
minuteThe minutes.
secondThe seconds.

Example

HOUR and MINUTE pull the hour and minutes out of a time or date-time. TIME(hour, minute, second) builds a time to compare with: TIME(9, 0, 0) is 9:00.

=IF(B2<=TIME(9,0,0),"Yes","No")

Common mistake

In Spanish Excel it is NSHORA. Use it to compare: =IF(B2<=TIME(9,0,0),"On time","Late").

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice TIME

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

HOUR, MINUTE and TIME

HOUR and MINUTE pull the hour and minutes out of a time or date-time. TIME(hour, minute, second) builds a time to compare with: TIME(9, 0, 0) is 9:00.

Step 1/3

In C2, extract the arrival hour.

C2
ABCDEF
1EmployeeArrivalHourMinutesOn time?
2Carmen08:52
3Jorge09:17
4Lucía08:59
5Andrés09:04
6Paola08:41
7

Tip: while typing, click a cell or drag across several to insert their reference. F4 anchors the reference with $.

Frequently asked questions

What is TIME called in Spanish?
In Spanish Excel it is NSHORA. The formula =IF(B2<=TIME(9,0,0),"Yes","No") is written =SI(B2<=NSHORA(9;0;0);"Sí";"No") (or with commas in Mexico).
Why does TIME use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common TIME mistake?
In Spanish Excel it is NSHORA. Use it to compare: =IF(B2<=TIME(9,0,0),"On time","Late").