Date & Time Formulas

Add business days to a dateDate - Add or Subtract
Add business days to a date changing the days of the weekendDate - Add or Subtract
Add business days to a date excluding additional holidaysDate - Add or Subtract
Add calendar days to a dateDate - Add or Subtract
Add calendar days to a date excluding additional datesDate - Add or Subtract
Add calendar days to a date not landing on a weekendDate - Add or Subtract
Add hours to a timeTime - Add or Subtract
Add minutes to a timeTime - Add or Subtract
Add months to a dateDate - Add or Subtract
Add seconds to a timeTime - Add or Subtract
Add weeks to a dateDate - Add or Subtract
Add years to a dateDate - Add or Subtract
Convert a date string to a date valueDate - Convert
Convert decimal hours to timeTime - Convert
Convert decimal minutes to timeTime - Convert
Convert decimal seconds to timeTime - Convert
Convert time to hoursTime - Convert
Convert time to minutesTime - Convert
Convert time to secondsTime - Convert
Convert time to time zoneTime - Convert
Number of business days between 2 datesDate - Number of Days
Number of business days in a particular monthDate - Number of Days
Number of business days in a particular yearDate - Number of Days
Number of business days left in the current monthDate - Number of Days
Number of business days left in the current yearDate - Number of Days
Number of business days that have passed in the current monthDate - Number of Days
Number of business days that have passed in the current yearDate - Number of Days
Number of days between 2 datesDate - Number of Days
Number of days between 2 dates excluding weekendsDate - Number of Days
Number of days between 2 dates ignoring months and yearsDate - Number of Days
Number of days between 2 dates ignoring yearsDate - Number of Days
Number of days in a particular monthDate - Number of Days
Number of days in a particular yearDate - Number of Days
Number of days left in the current monthDate - Number of Days
Number of days left in the current yearDate - Number of Days
Number of days months years from a dateDate - Number of Days
Number of days that have passed in the current monthDate - Number of Days
Number of days that have passed in the current yearDate - Number of Days
Number of Mondays between 2 datesDate - Number of Days
Number of months and days between 2 datesDate - Number of Months
Number of months between 2 datesDate - Number of Months
Number of months between 2 dates ignoring days and yearsDate - Number of Months
Number of months weeks days between 2 datesDate - Number of Months
Number of occurrences of a particular day of the weekDate - Number of
Number of weekend days between 2 datesDate - Number of Days
Number of weekend days in a particular monthDate - Number of Days
Number of weekend days in a particular yearDate - Number of Days
Number of weeks and days between 2 datesDate - Number of Weeks
Number of weeks between 2 datesDate - Number of Weeks
Number of working hours between 2 datesTime - Number of Hours
Number of working hours between 2 timesTime - Number of Hours
Number of years and days between 2 datesDate - Number of Years
Number of years between 2 datesDate - Number of Years
Number of years months days between 2 datesDate - Number of Years
Number of years months days from a dateDate - Number of Years
Return a date from a date stringDate - Display
Return a date in a particular formatDate - Display
Return a date in US date formatDate - Display
Return a list of random dates in a particular rangeDate - Display
Return a persons age in yearsDate - Display
Return a persons age in years months daysDate - Display
Return random dates in a particular rangeDate - Display
Return the 3rd Monday in a monthDate - Display
Return the business daysDate - Display
Return the current dateDate - Display
Return the current date and timeDate - Display
Return the current dayDate - Display
Return the current monthDate - Display
Return the current quarterDate - Display
Return the current timeTime - Display
Return the current yearDate - Display
Return the date from a date and timeDate - Display
Return the date from a date stringDate - Display
Return the date of the Monday in the current weekDate - Display
Return the date of the Monday in the next weekDate - Display
Return the date of the Monday in the previous weekDate - Display
Return the day from a dateDate - Return
Return the day nameDate - Display
Return the first business day of the yearDate - First
Return the first day of the current monthDate - First
Return the first day of the current quarterDate - First
Return the first day of the next monthDate - First
Return the first day of the previous monthDate - First
Return the first day of the previous quarterDate - First
Return the first Monday of the current monthDate - First
Return the first Monday of the next monthDate - First
Return the first Monday of the previous monthDate - First
Return the first weekday of the monthDate - First
Return the first weekday of the yearDate - First
Return the last business day of the yearDate - Last
Return the last day of the current monthDate - Last
Return the last day of the current quarterDate - Last
Return the last day of the next monthDate - Last
Return the last day of the previous monthDate - Last
Return the last day of the previous quarterDate - Last
Return the last Monday of the current monthDate - Last
Return the last Monday of the next monthDate - Last
Return the last Monday of the previous monthDate - Last
Return the last weekday of the monthDate - Last
Return the last weekday of the yearDate - Last
Return the month from a dateDate - Return
Return the most recent Friday*Date - Return
Return the most recent Monday*Date - Return
Return the next business dayDate - Return
Return the next FridayDate - Return
Return the next MondayDate - Return
Return the next working dayDate - Return
Return the nth business day of the yearDate - Return
Return the nth day of a monthDate - Return
Return the nth day of a weekDate - Return
Return the nth day of a yearDate - Return
Return the number corresponding to a given monthDate - Display
Return the previous business dayDate - Return
Return the previous FridayDate - Return
Return the previous MondayDate - Return
Return the previous working dayDate - Return
Return the time elapsed between 2 timesTime - Display
Return the time from a date and timeTime - Display
Return the time rounded to the nearest 15 minutesTime - Display
Return the week number of the current dateDate - Return
Return the working hours between 2 datesTime - Display
Return the working hours between 2 timesTime - Display
Return the year from a dateDate - Return
Subtract business days from a dateDate - Add or Subtract
Subtract business days from a date changing the days of the weekendDate - Add or Subtract
Subtract business days from a date excluding public holidaysDate - Add or Subtract
Subtract days from a dateDate - Add or Subtract
Subtract hours from a timeDate - Add or Subtract
Subtract minutes from a timeDate - Add or Subtract
Subtract months from a dateDate - Add or Subtract
Subtract seconds from a timeDate - Add or Subtract
Subtract weeks from a dateDate - Add or Subtract
Subtract years from a dateDate - Add or Subtract
Test if a cell is between 2 datesDate - Test
Test if a date is in a particular rangeDate - Test
Test if a month has 30 daysDate - Test
Test if a month has 31 daysDate - Test
Test if a year is a leap yearDate - Test
Add business days to a date
Date - Add or Subtract
Add business days to a date changing the days of the weekend
Date - Add or Subtract
Add business days to a date excluding additional holidays
Date - Add or Subtract
Add calendar days to a date
Date - Add or Subtract
Add calendar days to a date excluding additional dates
Date - Add or Subtract
Add calendar days to a date not landing on a weekend
Date - Add or Subtract
Add hours to a time
Time - Add or Subtract
Add minutes to a time
Time - Add or Subtract
Add months to a date
Date - Add or Subtract
Add seconds to a time
Time - Add or Subtract
Add weeks to a date
Date - Add or Subtract
Add years to a date
Date - Add or Subtract
Convert a date string to a date value
Date - Convert
Convert decimal hours to time
Time - Convert
Convert decimal minutes to time
Time - Convert
Convert decimal seconds to time
Time - Convert
Convert time to hours
Time - Convert
Convert time to minutes
Time - Convert
Convert time to seconds
Time - Convert
Convert time to time zone
Time - Convert
Number of business days between 2 dates
Date - Number of Days
Number of business days in a particular month
Date - Number of Days
Number of business days in a particular year
Date - Number of Days
Number of business days left in the current month
Date - Number of Days
Number of business days left in the current year
Date - Number of Days
Number of business days that have passed in the current month
Date - Number of Days
Number of business days that have passed in the current year
Date - Number of Days
Number of days between 2 dates
Date - Number of Days
Number of days between 2 dates excluding weekends
Date - Number of Days
Number of days between 2 dates ignoring months and years
Date - Number of Days
Number of days between 2 dates ignoring years
Date - Number of Days
Number of days in a particular month
Date - Number of Days
Number of days in a particular year
Date - Number of Days
Number of days left in the current month
Date - Number of Days
Number of days left in the current year
Date - Number of Days
Number of days months years from a date
Date - Number of Days
Number of days that have passed in the current month
Date - Number of Days
Number of days that have passed in the current year
Date - Number of Days
Number of Mondays between 2 dates
Date - Number of Days
Number of months and days between 2 dates
Date - Number of Months
Number of months between 2 dates
Date - Number of Months
Number of months between 2 dates ignoring days and years
Date - Number of Months
Number of months weeks days between 2 dates
Date - Number of Months
Number of occurrences of a particular day of the week
Date - Number of
Number of weekend days between 2 dates
Date - Number of Days
Number of weekend days in a particular month
Date - Number of Days
Number of weekend days in a particular year
Date - Number of Days
Number of weeks and days between 2 dates
Date - Number of Weeks
Number of weeks between 2 dates
Date - Number of Weeks
Number of working hours between 2 dates
Time - Number of Hours
Number of working hours between 2 times
Time - Number of Hours
Number of years and days between 2 dates
Date - Number of Years
Number of years between 2 dates
Date - Number of Years
Number of years months days between 2 dates
Date - Number of Years
Number of years months days from a date
Date - Number of Years
Return a date from a date string
Date - Display
Return a date in a particular format
Date - Display
Return a date in US date format
Date - Display
Return a list of random dates in a particular range
Date - Display
Return a persons age in years
Date - Display
Return a persons age in years months days
Date - Display
Return random dates in a particular range
Date - Display
Return the 3rd Monday in a month
Date - Display
Return the business days
Date - Display
Return the current date
Date - Display
Return the current date and time
Date - Display
Return the current day
Date - Display
Return the current month
Date - Display
Return the current quarter
Date - Display
Return the current time
Time - Display
Return the current year
Date - Display
Return the date from a date and time
Date - Display
Return the date from a date string
Date - Display
Return the date of the Monday in the current week
Date - Display
Return the date of the Monday in the next week
Date - Display
Return the date of the Monday in the previous week
Date - Display
Return the day from a date
Date - Return
Return the day name
Date - Display
Return the first business day of the year
Date - First
Return the first day of the current month
Date - First
Return the first day of the current quarter
Date - First
Return the first day of the next month
Date - First
Return the first day of the previous month
Date - First
Return the first day of the previous quarter
Date - First
Return the first Monday of the current month
Date - First
Return the first Monday of the next month
Date - First
Return the first Monday of the previous month
Date - First
Return the first weekday of the month
Date - First
Return the first weekday of the year
Date - First
Return the last business day of the year
Date - Last
Return the last day of the current month
Date - Last
Return the last day of the current quarter
Date - Last
Return the last day of the next month
Date - Last
Return the last day of the previous month
Date - Last
Return the last day of the previous quarter
Date - Last
Return the last Monday of the current month
Date - Last
Return the last Monday of the next month
Date - Last
Return the last Monday of the previous month
Date - Last
Return the last weekday of the month
Date - Last
Return the last weekday of the year
Date - Last
Return the month from a date
Date - Return
Return the most recent Friday*
Date - Return
Return the most recent Monday*
Date - Return
Return the next business day
Date - Return
Return the next Friday
Date - Return
Return the next Monday
Date - Return
Return the next working day
Date - Return
Return the nth business day of the year
Date - Return
Return the nth day of a month
Date - Return
Return the nth day of a week
Date - Return
Return the nth day of a year
Date - Return
Return the number corresponding to a given month
Date - Display
Return the previous business day
Date - Return
Return the previous Friday
Date - Return
Return the previous Monday
Date - Return
Return the previous working day
Date - Return
Return the time elapsed between 2 times
Time - Display
Return the time from a date and time
Time - Display
Return the time rounded to the nearest 15 minutes
Time - Display
Return the week number of the current date
Date - Return
Return the working hours between 2 dates
Time - Display
Return the working hours between 2 times
Time - Display
Return the year from a date
Date - Return
Subtract business days from a date
Date - Add or Subtract
Subtract business days from a date changing the days of the weekend
Date - Add or Subtract
Subtract business days from a date excluding public holidays
Date - Add or Subtract
Subtract days from a date
Date - Add or Subtract
Subtract hours from a time
Date - Add or Subtract
Subtract minutes from a time
Date - Add or Subtract
Subtract months from a date
Date - Add or Subtract
Subtract seconds from a time
Date - Add or Subtract
Subtract weeks from a date
Date - Add or Subtract
Subtract years from a date
Date - Add or Subtract
Test if a cell is between 2 dates
Date - Test
Test if a date is in a particular range
Date - Test
Test if a month has 30 days
Date - Test
Test if a month has 31 days
Date - Test
Test if a year is a leap year
Date - Test

Add business days to a date

You can add business days to an existing date by using the WORKDAY.INTL function.

 A
1=TODAY() = Monday, 26 October 2026
2=WORKDAY.INTL(A1, 7) = Wednesday, 04 November, 2026
3=WORKDAY.INTL(A1, -21) = Friday, 25 September, 2026
This function will ignore Saturdays and Sundays by default.
1 - Displays the current date.
2 - Displays the date that is 7 business days after the date in cell "A1".
3 - Displays the date that is 21 business days before the date in cell "A1".

Add business days to a date changing the days of the weekend

You can add business days to an existing date by using the WORKDAY.INTL function.

 A
1=TODAY() = Monday, 26 October 2026
2=WORKDAY.INTL(A1, 9, 1) = Friday, 06 November, 2026
3=WORKDAY.INTL(A1, 9, "0000011") = Friday, 06 November, 2026
4=WORKDAY.INTL(A1, 9, 7) = Sunday, 08 November, 2026
5=WORKDAY.INTL(A1, 9, "0000110") = Sunday, 08 November, 2026
6=WORKDAY.INTL(A1, 9, 14) = Friday, 06 November, 2026
7=WORKDAY.INTL(A1, 9, "0010000") = Friday, 06 November, 2026
This function will ignore Saturdays and Sundays by default, but this can be changed.
1 - Displays the current date.
2 - Displays 9 business days after the date in cell "A1" (excluding Saturday and Sunday with an explicit argument).
3 - Displays 9 business days after the date in cell "A1" (using the string representation).
4 - Displays 9 business days after the date in cell "A1" (excluding Friday and Saturday).
5 - Displays 9 business days after the date in cell "A1" (using the string representation).
6 - Displays 9 business days after the date in cell "A1" (excluding just Wednesday).
7 - Displays 9 business days after the date in cell "A1" (using the string representation).

Add business days to a date excluding additional holidays

You can add business days to an existing date by using the WORKDAY.INTL function.

 A
1=TODAY() = Monday, 26 October 2026
2=WORKDAY.INTL(A1, 2) = Wednesday, 28 October, 2026
3=WORKDAY.INTL(A1, 4) = Friday, 30 October, 2026
4=WORKDAY.INTL(A1, 6) = Tuesday, 03 November, 2026
5=WORKDAY.INTL(A1, 5, , A2:A4) = Thursday, 05 November, 2026
1 - Displays the current date.
2 - Displays the date of the first public holiday that we want to exclude. This is 2 business days after the date in cell "A1".
3 - Displays the date of the second public holiday day that we want to exclude. This is 4 business days after the date in cell "A1".
4 - Displays the date of the third public holiday day that we want to exclude. This is 6 business days after the date in cell "A1".
The WORKDAY.INTL function has an optional argument called "holidays" that allows you to exclude additional dates.
The public holiday dates that we want to exclude are in cells "A2:A4".
5 - This formula displays the business date that is 5 business days after the date in cell "A1" and excludes three additional dates.
So the date displayed in cell "A5" is 8 business days after the date in cell "A1".

Add calendar days to a date

You can add calendar days to an existing date by adding that corresponding whole number.

 A
1=TODAY() = Monday, 26 October 2026
2=TODAY()+5 = Saturday, 31 October, 2026
3=TODAY()-5 = Wednesday, 21 October, 2026
4=WORKDAY.INTL(A1, 5, "0000000") = Saturday, 31 October, 2026
This function will ignore Saturdays and Sundays by default.
1 - Displays the current date.
2 - Displays the date that is 5 calendar days after the date in cell "A1".
3 - Displays the date that is 5 calendar days before the date in cell "A1".
4 - This is an alternative formula.

Add calendar days to a date excluding additional dates

You can add calendar days to an existing date by adding that corresponding whole number.

 A
1=TODAY() = Monday, 26 October, 2026
2=A1+20 = Sunday, 15 November, 2026
3=A1+20+3 = Wednesday, 18 November, 2026
4=A1+5 = Saturday, 31 October, 2026
5=A1+10 = Thursday, 05 November, 2026
6=A1+15 = Tuesday, 10 November, 2026
7=WORKDAY.INTL(A1, 20, "0000000", A3:A5) = Tuesday, 17 November, 2026
1 - Displays the current date.
2 - Displays the date that is 20 calendar days after the date in cell "A1".
3 - Displays the date that is 20 calendar days after the date in cell "A1" and then adds another 3 days.
4 - Displays the date of the first additional date we want to exclude.
5 - Displays the date of the second additional date we want to exclude.
6 - Displays the date of the third additionl date we want to exclude.
The three additional dates that we want to exclude are in cells "A4:A6".
7 - This formula displays the calendar date that is 20 days after the date in cell "A1" and excludes three additional dates.

Add calendar days to a date not landing on a weekend

You can add calendar days to an existing date not landing on a weekend.

 A
1=TODAY() = Monday, 26 October 2026
2=WEEKDAY(A1, 2) = 1
3=A1+6 = Sunday, 01 November 2026
4=IF(WEEKDAY(A3, 2)>5, "Sat or Sun", "Mon - Fri") = Sat or Sun
5=IF(WEEKDAY(A1+6, 2)>5, A1+6+(8-WEEKDAY(A1+6, 2)), A1+6) = Monday, 02 November 2026
6=LET(startdate, A1, noofdays, 6, enddate, startdate+noofdays,
weekdayno, WEEKDAY(startdate + noofdays, 2),
IF
(weekdayno>5, enddate+(8-weekdayno), enddate)) = Monday, 02 November 2026
This formula will return the following Monday when the date falls on either a Saturday or a Sunday.
1 - Displays the current date.
The WEEKDAY function can be used to return the day of the week for a given date.
2 - Displays a number indicating the day of the week.
The numbers are: 1 = Mon, 2 = Tue, 3 = Wed, 4 = Thu, 5 = Fri, 6 = Sat, 7 = Sun.
You can add calendar days to an existing date by adding that corresponding whole number.
3 - Displays the date that is 6 days after the date in cell "A1".
We now need to check if this date falls on a Saturday or a Sunday.
4 - Tells us if this date falls on a Saturday or a Sunday.
If it does then we need to shift the date to the Monday.
When its a Saturday we need to add 2 days and when its a Sunday we need to add 1 day.
We can calculate this by subtracting the weekday number from 8.
When its a Saturday the weekday number is 6 and when its a Sunday the weekday number is 7.
5 - Displays the date which is a certain number of days after an existing date that ignores Saturdays and Sundays.
6 - This formula uses a LET function.

Add hours to a time

You can add hours to a time using fractions and the TIME function.

 A
1=NOW() = Monday, 26 October, 2026 07:34 PM
2=A1 + (6*(1/24)) = Tuesday, 27 October, 2026 01:34 AM
3=A1 + TIME(6, 0, 0) = Tuesday, 27 October, 2026 01:34 AM
4=A1 + (8/24) + (15/1440) = Tuesday, 27 October, 2026 03:49 AM
5=A1 + TIME(8, 15, 0) = Tuesday, 27 October, 2026 03:49 AM
6=A1 + (13/24) + (25/1440) + (45/86400) = Tuesday, 27 October, 2026 08:59 AM
7=A1 + TIME(13, 25, 45) = Tuesday, 27 October, 2026 08:59 AM
Dates are represented as sequential whole numbers so 1 hour is equivalent to the fraction (1/24).
One Hour is 1/24 = 0.04166
One Minute is 1/(24*60) = 1/1440
One Second is 1/(24*60*60) = 1/86400
Times are represented as fractions based on there being 24 hours in a day.
1 - Displays the current date and time.
2 - Displays the current time plus 6 hours.
3 - Displays the current time plus 6 hours using the TIME function to return the correct decimal.
4 - Displays the current time plus 8 hours and 15 minutes.
5 - Displays the current time plus 8 hours and 15 minutes using the TIME function to return the correct decimal.
6 - Displays the current time plus 13 hours, 25 minutes and 45 seconds.
7 - Displays the current time plus 13 hours, 25 minutes and 45 seconds using the TIME function to return the correct decimal.

Add minutes to a time

You can add minutes to a time using fractions and the TIME function.

 A
1=NOW() = Monday, 26 October, 2026 07:34 PM
2=A1 + (25*(1/1440)) = Monday, 26 October, 2026 07:59 PM
3=A1 + TIME(0, 25, 0) = Monday, 26 October, 2026 07:59 PM
4=A1 + (4/24) + (75/1440) = Tuesday, 27 October, 2026 12:49 AM
5=A1 + TIME(4, 75, 0) = Tuesday, 27 October, 2026 12:49 AM
6=A1 + (6/24) + (30/1440) + (80/86400) = Tuesday, 27 October, 2026 02:05 AM
7=A1 + TIME(6, 30, 80) = Tuesday, 27 October, 2026 02:05 AM
Dates are represented as sequential whole numbers so 1 hour is equivalent to the fraction (1/24).
One Hour is 1/24 = 0.04166
One Minute is 1/(24*60) = 1/1440
One Second is 1/(24*60*60) = 1/86400
Times are represented as fractions based on there being 24 hours in a day.
1 - Displays the current date and time.
2 - Displays the current time plus 25 minutes.
3 - Displays the current time plus 25 minutes seconds using the TIME function to return the correct decimal.
4 - Displays the current time plus 4 hours and 75 minutes.
5 - Displays the current time plus 4 hours and 75 minutes using the TIME function to return the correct decimal.
6 - Displays the current time plus 6 hours, 30 minutes and 80 seconds.
7 - Displays the current time plus 6 hours, 30 minutes and 80 seconds using the TIME function to return the correct decimal.

Add months to a date

You can add months to a date by using the EDATE function.

 A
1=TODAY() = Monday 26 October 2026
2=EDATE(A1, 1) = Thursday 26 November 2026
3=EDATE(A1, 3) = Tuesday 26 January 2027
4=DATE(YEAR(A1), MONTH(A1)+20, DAY(A1)) = Monday 26 June 2028
1 - Displays the current date.
2 - Displays the date in cell "A1" plus 1 month.
3 - Displays the date in cell "A1" plus 3 months.
The DATE function can be used to return a date serial number given a YEAR, MONTH, DAY.
4 - Displays the date in cell "A1" plus 20 months.

Add seconds to a time

You can add seconds to a time using fractions and the TIME function.

 A
1=NOW() = Monday, 26 October, 2026 07:34 PM
2=A1 + (200*(1/86400)) = Monday, 26 October, 2026 07:37 PM
3=A1 + TIME(0, 0, 200) = Monday, 26 October, 2026 07:37 PM
4=A1 + (40/1440) + (50/86400) = Monday, 26 October, 2026 08:15 PM
5=A1 + TIME(0, 40, 50) = Monday, 26 October, 2026 08:15 PM
6=A1 + (3/24) + (15/1440) + (30/86400) = Monday, 26 October, 2026 10:49 PM
7=A1 + TIME(3, 15, 30) = Monday, 26 October, 2026 10:49 PM
Dates are represented as sequential whole numbers so 1 hour is equivalent to the fraction (1/24).
One Hour is 1/24 = 0.04166
One Minute is 1/(24*60) = 1/1440
One Second is 1/(24*60*60) = 1/86400
Times are represented as fractions based on there being 24 hours in a day.
1 - Displays the current date and time.
2 - Displays the current time plus 200 seconds.
3 - Displays the current time plus 200 seconds using the TIME function to return the correct decimal.
4 - Displays the current time plus 40 minutes and 50 seconds.
5 - Displays the current time plus 40 minutes and 50 seconds using the TIME function to return the correct decimal.
6 - Displays the current time plus 3 hours, 15 minutes and 30 seconds.
7 - Displays the current time plus 3 hours, 15 minutes and 30 seconds using the TIME function to return the correct decimal.

Add weeks to a date

You can add weeks to a date by adding the corresponding number of days.

 A
1=TODAY() = Monday 26 October 2026
2=A1+(7*3) = Monday 16 November 2026
3=A1+(7*20) = Monday 15 March 2027
1 - Displays the current date.
2 - Displays the date that is 3 weeks after the date in cell "A1".
3 - Displays the date that is 20 weeks after the date in cell "A1".

Add years to a date

You can add years to a date by using the EDATE function.

 A
1=TODAY() = 26 October 2026
229 February 2024
3=EDATE(A1, 12*4) = 26 October 2030
4=EDATE(A2, 12*4) = 29 February 2028
5=EDATE("28 Feb 2023", 12*1) = 28 February 2024
6=EDATE("29 Feb 2024", -12*1) = 28 February 2023
1 - Displays the current date.
2 - Contains the date 29 February 2024 and 2024 was a leap year.
3 - This formula displays the date that is 4 years after the date in cell "A1".
4 - This formula displays the date that is 4 years after the date in cell "A2".
5 - This formula displays the date that is 1 year after 28 Feb 2023.
6 - This formula displays the date that is 1 year before 29 Feb 2024.

Convert a date string to a date value

If you have any dates entered as a string (e.g. "01 Jul 2022") you can convert it to an actual date using the DATEVALUE function.

 A
1English (United Kingdom)
2=TODAY() = Monday 26 October 2026
3=NOW() = Monday 26 October 2026 19:34:12
4=TEXT(A2, "yyyymmdd") = 20261026
5=DATEVALUE(RIGHT(A4, 2)&"/"&MID(A4, 5, 2)&"/"&(LEFT(A4, 4))) = Monday, 26 October, 2026
620200523
7=DATEVALUE(RIGHT(A6, 2)&"/"&MID(A6, 5, 2)&"/"&(LEFT(A6, 4))) = Saturday, 23 May, 2020
820200208
9=DATEVALUE(RIGHT(A8, 2)&"/"&MID(A8, 5, 2)&"/"&(LEFT(A8, 4))) = Saturday, 08 February, 2020
10English (United States)
1120200715
12=DATEVALUE(MID(A1,5,2)&"/"&RIGHT(A1,2)&"/"&(LEFT(A1,4))) = Wednesday, 15 July, 2020
1320200523
14=DATEVALUE(MID(A3,5,2)&"/"&RIGHT(A3,2)&"/"&(LEFT(A3,4))) = Saturday, 23 May, 2020
1520200208
16=DATEVALUE(MID(A5,5,2)&"/"&RIGHT(A5,2)&"/"&(LEFT(A5,4))) = Saturday, 08 February, 2020
This function returns the date serial number given a date in text format.
Exactly which formula you use will depend on your Regional Format.
If you regional format is set to English (United States) you need to use a different formula.
DATEVALUE - The date serial number given a date in text format.
LEFT - The first or left most characters in a text string.
MID - The characters from the middle of a text string.
NOW - The date serial number of the current system date and time.
RIGHT - The last or rightmost characters in a text string.
TEXT - The number as a formatted text string.
TODAY - The date serial number representing today's date.
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Converts the date in cell "A1" to a text string with the format "yyyymmdd".
4 - Converts the text string in cell "A3" to its corresponding date serial number. Custom format "dddd, dd mmmm, yyyy".
5 - Contains the text string "20200523".
6 - Converts the text string in cell "A5" to its corresponding date serial number. Custom format "dddd, dd mmmm, yyyy".
7 - Contains the text string "20200208".
8 - Converts the text string in cell "A7" to its corresponding date serial number. Custom format "dddd, dd mmmm, yyyy".
1 - Contains the text string "20200715".
2 - Converts the text string in cell "A1" to its corresponding date serial number. Custom format "dddd, dd mmmm, yyyy".
3 - Contains the text string "20200523".
4 - Converts the text string in cell "A3" to its corresponding date serial number. Custom format "dddd, dd mmmm, yyyy".
5 - Contains the text string "20200208".
6 - Converts the text string in cell "A5" to its corresponding date serial number. Custom format "dddd, dd mmmm, yyyy".

Convert decimal hours to time

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
??

Convert decimal minutes to time

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
??

Convert decimal seconds to time

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
??

Convert time to hours

??

 A
1??
multiply by 24

Convert time to minutes

??

 A
1??
multiply by (24 x 60)

Convert time to seconds

??

 A
1??
multiply by (24 x 60 x 60)

Number of business days between 2 dates

You can return the number of business days between two dates by using the NETWORKDAYS.INTL function.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=NETWORKDAYS.INTL(A1, A1) = 1
4=NETWORKDAYS.INTL(A1, A1)-1 = 0
5=NETWORKDAYS.INTL(A1, A1+1)-1 = 1
6=NETWORKDAYS.INTL(A1, A1+2)-1 = 2
7=NETWORKDAYS.INTL(A1, A1+3)-1 = 3
8=NETWORKDAYS.INTL(A1, A1+4)-1 = 4
9=NETWORKDAYS.INTL(A1, A1+5)-1 = 4
10=NETWORKDAYS.INTL(A1, A1+6)-1 = 4
11=NETWORKDAYS.INTL("01/01/2020", "20/01/2020")-1 = 13
This function will include both the "start_date" and the "end_date" so you need to minus 1.
This function will ignore Saturdays and Sundays by default.
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays the number of business days between that date and 1 day after.
4 - Displays the number of business days between that date and 2 days after.
Cell "A10" displays the number of business days between 1 January 2020 and 20 January 2020.
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.
NETWORKDAYS.INTL - The number of working days between two dates excluding weekends and holidays.

Number of business days in a particular month

You can return the number of business days in a particular month by using

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.

Number of business days in a particular year

You can return the number of business days in a particular year by using

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.

Number of business days left in the current month

You can return the number of business days left in the current month by combining 2 functions.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=NETWORKDAYS.INTL(A1, EOMONTH(A1, 0)) = 5
4=NETWORKDAYS.INTL("20/01/2020", EOMONTH("20/01/2020", 0)) = 10
5=NETWORKDAYS.INTL("27/01/2020", EOMONTH("27/01/2020", 0)) = 5
The NETWORKDAYS.INTL function will ignore Saturdays and Sundays by default.
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays the number of business days left in the month.
4 - Displays the number of business days left in January after Monday 20th.
5 - Displays the number of business days left in January after Monday 27th.
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.
EOMONTH - The date serial number of the last day of a month before or after a date.
NETWORKDAYS.INTL - The number of working days between two dates excluding weekends and holidays.

Number of business days left in the current year

You can return the number of business days left in the current year by using

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.

Number of business days that have passed in the current month

You can return the number of business days that have passed in the current month by using

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.

Number of business days that have passed in the current year

You can return the number of business days that have passed in the current year by using

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.

Number of days between 2 dates

You can return the number of days between 2 dates by subtracting them.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=A1+7 = 11/2/2026 0:00
4=A1+14 = 11/9/2026 0:00
5=DATEDIF(A1, A3, "D") = 7
6=DATEDIF(A1, A4, "D") = 14
7="01/08/03"-"28/08/03" = -27
8=A4-A1 = 14
9=INT(A4-A3) = 7
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.
DATEDIF - (Compatibility) The number of days, months or years between two dates.
DATEDIFFERENCE - Returns the number of days, months or years between two dates.

Number of days between 2 dates excluding weekends

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
You can use the NETWORKDAYS.INTL function if you want to return the total number of business days between two dates excluding weekends and public holidays
You can use the WORKDAY.INTL function if you want to return the serial number for a given number of working days before or after a date.
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
NETWORKDAYS.INTL - The number of working days between two dates excluding weekends and holidays.
WORKDAY.INTL - The date serial number that is a given number of working days before or after a date.

Number of days between 2 dates ignoring months and years

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATEDIFFERENCE - Returns the number of days, months or years between two dates.

Number of days between 2 dates ignoring years

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DAYS - The number of days between two dates.
DATEDIFFERENCE - Returns the number of days, months or years between two dates.

Number of days in a particular month

You must also provide the year

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=DATE(YEAR(A1), 2, 1) = 01/02/2026
4=DATE(YEAR(A1), 4, 1) = 01/04/2026
5=DAY(EOMONTH(A1, 0)) = 31
6=DAY(DATE(YEAR(A1), MONTH(A1)+1, 1)-1) = 31
7=DAY(EOMONTH(DATE(YEAR(A3), 4, 1), 0)) = 30
8=DAY(DATE(YEAR(A3), 4+1, 1)-1) = 30
9=DAY(EOMONTH(A3, 0)) = 28
10=DAY(DATE(2024, 3, 1)-1) = 29
There are four months that always contain 30 days and they are: April, June, September and November.
There is one month that always contains 28 days (except on a leap year) and that is February.
There is one month that always contains 29 days (only on a leap year) and that is February.
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays the first day of February in the current year.
4 - Displays the first day of April in the current year.
5 - Displays the number of days in the current month of the current year using EOMONTH.
6 - Displays the number of days in the current month of the current year using DATE, YEAR and MONTH.
7 - Displays the number of days in the month of April of the current year using EOMONTH.
8 - Displays the number of days in the month of April of the current year using DATE, YEAR and MONTH.
9 - Displays the number of days in the month of February of the current year using EOMONTH.
10 - Displays the number of days in the month of February in the leap year 2024.
DATE - The date as a date serial number given a year, month, day.
DAY - The day as an integer given a date serial number.
EOMONTH - The date serial number of the last day of a month before or after a date.
MONTH - The month as an integer given a date serial number.
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.
YEAR - The year as an integer given a date serial number.
DAYSINAMONTH - Returns the number of days in a particular month and year.

Number of days in a particular year

You can return the number of days in a year taking leap years into account.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=TODAY()-365 = 26/10/2025
4=TODAY()-(2*365) = 26/10/2024
5=TODAY()-(3*365) = 27/10/2023
6=DATE(YEAR(A1), 12, 31)-DATE(YEAR(A1), 1, 1)+1 = 365
7=DATE(YEAR(A3), 12, 31)-DATE(YEAR(A3), 1, 1)+1 = 365
8=DATE(YEAR(A4), 12, 31)-DATE(YEAR(A4), 1, 1)+1 = 366
9=DATE(YEAR(A5), 12, 31)-DATE(YEAR(A5), 1, 1)+1 = 365
10=365+IF(MOD(2010, 4), 0, 1) = 365
11=365+IF(MOD(2000, 4), 0, 1) = 366
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays 365 days before that date.
4 - Displays (2*365) days before that date.
5 - Displays (3*365) days before that date.
6 - Displays the number of days in the current year.
7 - Displays the number of days in the previous year.
8 - Displays the number of days in the year of the date in cell "A4".
9 - Displays the number of days in the year of the date in cell "A5".
10 - Displays the number of days in the year 2010.
11 - Displays the number of days in the year 2000.
DATE - The date as a date serial number given a year, month, day.
IF - The value based on whether a condition is True or False.
MOD - The remainder after division.
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.
YEAR - The year as an integer given a date serial number.
DAYSINAYEAR - Returns the number of days in a particular year.

Number of days left in the current month

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".

Number of days left in the current year

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=NOW()-20 = 6-Oct-26
4=DATE(YEAR(A3), 12, 31)- A3 = 85.1845806712954
5=DATE(YEAR(A2), 12, 31)- NOW() = Monday 05 March 1900 04:25:48
6=DATE(YEAR("19/08/2005"), 12, 31)-NOW() = -7604.81541886574
7=DATE(YEAR(NOW()), 12, 31)- NOW() = 65.1845811342573
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.
YEAR - The year as an integer given a date serial number.

Number of days months years from a date

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".

Number of days that have passed in the current month

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.

Number of days that have passed in the current year

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=A1-DATE(YEAR(A1), 1, 0) = 299
4=A2-DATE(YEAR(A2), 1, 0) = 300
5="02/01/2004"-DATE(YEAR("01/01/2004"), 1, 0) = 01/01/1900
6=DATE(2004, 1, 2)-DATE(2004, 1, 0) = 2
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.

Number of Mondays between 2 dates

number of occurrences of a particular day of the week

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.

Number of months and days between 2 dates

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.
DATEDIFFERENCE - Returns the number of days, months or years between two dates.

Number of months between 2 dates

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=DATEDIF(A1, A2, "M") = 0
4=DATEDIF("01/01/2003", "28/04/2003", "M") = 3
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.
DATEDIF - (Compatibility) The number of days, months or years between two dates.
DATEDIFFERENCE - Returns the number of days, months or years between two dates.

Number of months between 2 dates ignoring days and years

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.
DATEDIFFERENCE - Returns the number of days, months or years between two dates.

Number of months weeks days between 2 dates

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.
DATEDIFFERENCE - Returns the number of days, months or years between two dates.

Number of occurrences of a particular day of the week

You can return the number of times a particular day of the week occurs between 2 dates (inclusive)

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
31
4=TODAY() = 26/10/2026
5=A4 = Monday
614
7=A4+A6 = 09/11/2026
8=A7 = Monday
9=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A4&":"&A7)), 2)=A3)) = 3
The occurrences for represented as a numeric value, Monday = 1, Sunday = 7.
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays the date formatted in long date format
4 - Displays the number of days that you want to add
5 - Displays the last date
6 - Displays the date formatted in long date format
7 - Displays the date
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.
SUMPRODUCT - The sum of the product of one or more arrays of values.
WEEKDAY - The day of the week for a given date.
ROW - The row number of a cell reference.
INDIRECT - The value of a given cell reference specified by a text string.

Number of weekend days between 2 dates

Returns the number of Saturdays between the 2 dates

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&"."&B1))7)=1))
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.
SUMPRODUCT - The sum of the product of one or more arrays of values.
WEEKDAY - The day of the week for a given date.
ROW - The row number of a cell reference.
INDIRECT - The value of a given cell reference specified by a text string.

Number of weekend days in a particular month

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.

Number of weekend days in a particular year

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.

Number of weeks and days between 2 dates

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
DATEDIF - (Compatibility) The number of days, months or years between two dates.
NOW - The date serial number of the current system date and time.
DATEDIFFERENCE - Returns the number of days, months or years between two dates.

Number of weeks between 2 dates

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.
DATEDIFFERENCE - Returns the number of days, months or years between two dates.

Number of working hours between 2 dates

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.

Number of working hours between 2 times

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.

Number of years and days between 2 dates

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.

Number of years between 2 dates

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.

Number of years months days between 2 dates

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".

Number of years months days from a date

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".

Return a date in a particular format

You can return a date in a particular format by using the TEXT function.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=TEXT(A1, "dd/mm/yy") = 26/10/26
4=TEXT(A1, "mm/dd/yy") = 10/26/26
5=TEXT(A1, "dd mmmm, yyyy") = 26 October, 2026
6=TEXT(A1, "dd-mmm yyyy") = 26-Oct 2026
7=TEXT(TODAY(), "dd/mmm, yyyy") = 26/Oct, 2026
8=TEXT("01/07/2020", "dddd mmm yy") = Wednesday Jul 20
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays the current date in the format "dd/mm/yy".
4 - Displays the current date in the format "mm/dd/yy".
5 - Displays the date from cell "A2" in the format "dd mmmm, yyyy".
6 - Displays the date from cell "A2" in the format "dd-mmm yyyy".
7 - Displays the current date in the format "dd/mmm, yyyy".
8 - Displays the date "01/07/2020" in the format "dddd mmm yy".
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.
TEXT - The number as a formatted text string.

Return a date in US date format

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.
TEXT - The number as a formatted text string.

Return a persons age in years

Cell "A3" displays the date the person was born.

 A
1=TODAY() = 26/10/2026
2=NOW() = 26/10/2026
3=DATE(1990, 1, 1) = 01/01/1990
4=INT(YEARFRAC(TODAY(), A3, 1)) = 36
5=DATEDIF(A3, TODAY(), "y") = 36
6=DATEDIF(A3, NOW(), "y") = 36
7=INT((TODAY()-A3)/365.25) = 36
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.
TEXT - The number as a formatted text string.
YEARFRAC - The number of years as a decimal between two dates.
DATEDIF - (Compatibility) The number of days, months or years between two dates.
DATE - The date as a date serial number given a year, month, day.
INT - The number rounded down to the nearest integer.
AGE - Returns the age of a person given a birthday.

Return random dates in a particular range

??

 AB
1156
2=INT(RAND()*25)+1=15=INT(RAND()*25)+1 = 14
3=INT(RAND()*25)+1=6=INT(RAND()*25)+1 = 20
INT - The number rounded down to the nearest integer.
RAND - The random number between zero and one (>=0 and <1).

Return the current date

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.
(Ctrl + ;) - Enters the current date into the active cell and applies the format "dd/mm/yyyy" (Regional Settings). This is static and will not update.

Return the current date and time

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
NOW - The date serial number of the current system date and time.
(Ctrl + ;) - Enters the current date into the active cell and applies the format "dd/mm/yyyy" (Regional Settings). This is static and will not update.
(Ctrl + Shift + ;) - Enters the current time into the active cell. This is static and will not update.

Return the current day

You can display the day of the week by using the TEXT function.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=TEXT(A1, "dddd") = Monday
4=DAY(A2) = 26
5=CHOOSE(WEEKDAY(TODAY()), "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su") = Mo
If you do not want to display the full date you can apply the custom number format "dddd" to a cell that contains a date.
1 - Display a date
2 - Displays the date component of the date in cell A1
3 - Displays the date with the custom number format "dddd" applied
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.
DAY - The day as an integer given a date serial number.
TEXT - The number as a formatted text string.
CHOOSE - The value in a row (or column) based on an index number.
WEEKDAY - The day of the week for a given date.

Return the current month

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=MONTH(A1) = 10
4=TEXT(A1, "MMMM") = October
5=CHOOSE(MONTH(A1), "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec") = Oct
1 - Display a date
2 - Displays the date component of the date in cell A1
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.
MONTH - The month as an integer given a date serial number.
TEXT - The number as a formatted text string.

Return the current quarter

You can return the current quarter with

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=A1+(360/4) = 24 Sunday January 2027
4=A3+(360/4) = 24 Saturday April 2027
5=A4+(360/4) = 23 Friday July 2027
6=INT((MONTH(A1)+2)/3) = 4
7=INT((MONTH(A3)+2)/3) = 1
8=INT((MONTH(A4)+2)/3) = 2
9=INT((MONTH(A5)+2)/3) = 3
10=ROUNDUP((MONTH(A1)/3), 0) = 4
1 - Displays a date.
All these cells have been formatted with the custom number format "dd dddd mmmm yyyy".
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.

Return the current time

You can return the current time by using the NOW function.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=NOW()-TODAY() = 19:34:12
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
This function returns the serial number of the current system date and time.
(Ctrl + Shift + ;) - Enters the current time into the active cell
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.

Return the current year

You can return the current year by using the YEAR function.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=YEAR(A1) = 2026
4=YEAR(A2) = 2026
This function returns the year as an integer given a date serial number.
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.
YEAR - The year as an integer given a date serial number.

Return the date from a date and time

You can remove the time component from a date and time by using the TRUNC function.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=TRUNC(A2) = Monday 26 October 2026
4=INT(A2) = Monday 26 October 2026
This function will return the number with any decimal places removed.
The INT function could also be used as it returns a number rounded down to the nearest integer.
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays just the date from cell "A2".
4 - Displays just the date from cell "A2".
INT - The number rounded down to the nearest integer.
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.
TRUNC - The number rounded towards zero and truncated to a certain number of decimal places or digits.

Return the date of the Monday in the current week

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=A1-WEEKDAY(A1, 3) = Monday, October 26, 2026
4=A1-WEEKDAY(A1, 3) = 46321
NOW - The date serial number of the current system date and time.
TODAY - The date serial number representing today's date.
WEEKDAY - The day of the week for a given date.

Return the date of the Monday in the previous week

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
??

Return the date of the Monday in the next week

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
??

Return the day from a date

Display the current day

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
??

Return the day name

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
??

Return the first day of the current month

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=DATE(YEAR(TODAY()), MONTH(TODAY()), 1) = 10/1/2026 0:00
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.
DATE - The date as a date serial number given a year, month, day.
YEAR - The year as an integer given a date serial number.
MONTH - The month as an integer given a date serial number.

Return the first day of the previous month

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=DATE(YEAR(TODAY()), MONTH(TODAY())-1, 1) = 01/09/2026
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.

Return the first Monday of the current month

??

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=DATE(YEAR(A1), MONTH(A1), 7)-WEEKDAY(DATE(YEAR(A1), MONTH(A1), 7), 3) = 05 Monday October 2026
Cell "A1" displays a date.
All these cells have been formatted with the custom number format "dd dddd mmmm yyyy".
TODAY - The date serial number representing today's date.
DATE - The date as a date serial number given a year, month, day.
DAY - The day as an integer given a date serial number.
MONTH - The month as an integer given a date serial number.
WEEKDAY - The day of the week for a given date.
YEAR - The year as an integer given a date serial number.

Return the first weekday of the month

You can return the first weekday of the month

 A
1=TODAY() = 26 Monday October 2026
2=EOMONTH(A1, -1) +1+CHOOSE(WEEKDAY(EOMONTH(A1, -1)+1, 2), 0, 0, 0, 0, 0, 2, 1) = 01 Thursday October 2026
1 - Displays a date.
All these cells have been formatted with the custom number format "dd dddd mmmm yyyy".
CHOOSE - The value in a row (or column) based on an index number.
EOMONTH - The date serial number of the last day of a month before or after a date.
TODAY - The date serial number representing today's date.
WEEKDAY - The day of the week for a given date.

Return the last day of the current month

You can return the last day in the month by using the EOMONTH function.

 A
1=TODAY() = 26 Monday October 2026
2=EOMONTH(TODAY(), 0) = 31 Saturday October 2026
3=DATE(YEAR(TODAY()), MONTH(TODAY())+1, 1)-1 = 31 Saturday October 2026
1 - Displays a date.
2 - Displays the last day in this month.
3 - Displays an alternative formula.
All these cells have been formatted with the custom number format "dd dddd mmmm yyyy".
DATE - The date as a date serial number given a year, month, day.
EOMONTH - The date serial number of the last day of a month before or after a date.
MONTH - The month as an integer given a date serial number.
TODAY - The date serial number representing today's date.

Return the last day of the previous month

??

 A
1=TODAY() = 26/10/2026
2=NOW() = 10/26/2026 19:34
3=DATE(YEAR(TODAY()), MONTH(TODAY())+1, 0) = 31/10/2026
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.
YEAR - The year as an integer given a date serial number.
TODAY - The date serial number representing today's date.
MONTH - The month as an integer given a date serial number.

Return the last day of the previous quarter

??

 A
1=TODAY() = 26/10/2026
2=NOW() = 10/26/2026 19:34
3=DATE(YEAR(TODAY()), MONTH(TODAY())+1, 0) = 31/10/2026
DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.
YEAR - The year as an integer given a date serial number.
TODAY - The date serial number representing today's date.
MONTH - The month as an integer given a date serial number.

Return the last weekday of the month

??

 A
1=TODAY() = 26 Monday October 2026
2=EOMONTH(A1, 0)-MAX(0, WEEKDAY(EOMONTH(A1, 0), 2)-5) = 30 Friday October 2026
You can return the last weekday of the month
Cell "A1" displays a date.
All these cells have been formatted with the custom number format "dd dddd mmmm yyyy".
EOMONTH - The date serial number of the last day of a month before or after a date.
MAX - The largest numerical value.
TODAY - The date serial number representing today's date.
WEEKDAY - The day of the week for a given date.

Return the next Monday

You can return the next Monday using

 A
1=TODAY() = 26 Monday October 2026
2=A1 + MOD(8 - WEEKDAY(A1, 2), 7) = 26 Monday October 2026
3=A1+IF(2<WEEKDAY(A1), 7-WEEKDAY(A1)+2, 2 - WEEKDAY(A1) ) = 26 Monday October 2026
1 - Displays a date
2 - Displays the next Monday
3 - Displays an alternative formula
All these cells have been formatted with the custom number format "dd dddd mmmm yyyy".
IF - The value based on whether a condition is True or False.
MOD - The remainder after division.
TODAY - The date serial number representing today's date.
WEEKDAY - The day of the week for a given date.

Return the number corresponding to a given month

You can return the number corresponding to a given month using the MONTH function.

 A
1=TODAY() = 26 October 2026
218 April 2024
3February
4Mar
5=MONTH(A1) = 10
6=MONTH(A2) = 4
7=MONTH(A3&1) = 2
8=MONTH(A4&1) = 3
9=MONTH(DATEVALUE(A4&"1")) = 3
1 - Displays the current date.
2 - Displays a date as a text string.
3 - Displays a month as a text string.
4 - Displays a abbreviated month as a text string.
5 - This formula displays the month number for the date in cell "A1".
6 - This formula displays the month number for the month in cell "A2".
7 - This formula displays the month number for the month in cell "A3".
8 - This formula displays the month number for the month in cell "A4".
9 - This is an alternative formula.

Return the time elapsed between 2 times

??

 A
1=NOW() = 7:34:12 PM
2=NOW()+0.5 = 7:34:12 AM
3=MOD(A2-A1, 1) = 12:05:00 AM
4=MOD(TIME(21, 36, 0)-TIME(3, 0, 0), 1) = 6:36:00 PM
??

Return the time from a date and time

You can remove the date component from a date and time by using the MOD function.

 A
1=TODAY() = Monday, October 26, 2026
2=NOW() = Monday, October 26, 2026 19:34:12
3=MOD(A2, 1) = 7:34:12 PM
4=A2-INT(A2) = 7:34:12 PM
5=TIME(HOUR(A2), MINUTE(A2), SECOND(A2)) = 7:34:12 PM
This function will return the remainder after division.
The remainder after dividing a number by 1 will remove the integer part of the number.
There are some other formulas that could also be used.
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays just the time from cell "A2".
4 - Displays just the time from cell "A2". This formula uses subtraction to remove the date integer.
5 - Displays just the time from cell "A2". This formula reconstructs a time using the individual components.
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.
MOD - The remainder after division.
TIME - The time as a decimal given an hour, minute, second.
INT - The number rounded down to the nearest integer.
HOUR - The hour as an integer given a date serial number.
MINUTE - The minute as an integer given a date serial number.
SECOND - The number of seconds as an integer given a date serial number.

Return the week number of the current date

??

 A
1=TODAY() = Monday, October 26, 2026
2=NOW() = Monday, October 26, 2026
3=ISOWEEKNUM((A1)) = 44
4=TRUNC(((A1-DATE(YEAR(A1), 1, 0))+6)/7) = 43
5=INT((A1-DATE(YEAR(?-3496), 1, 1))/7)+1 = 6618
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.
ISOWEEKNUM - The week number in the year for a given date (based on European convention).

Subtract business days from a date

You can subtract business days from an existing date by using the WORKDAY.INTL function.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=WORKDAY.INTL(A1, -7) = 15 Thursday October 2026
This function will ignore Saturdays and Sundays by default.
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays the date that is 7 business days before the date in cell "A1".
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.
WORKDAY.INTL - The date serial number that is a given number of working days before or after a date.

Subtract business days from a date changing the days of the weekend

You can subtract business days from an existing date by using the WORKDAY.INTL function.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=WORKDAY.INTL(A1, -9, 1) = 13 Tuesday October 2026
4=WORKDAY.INTL(A1, -9, 7) = 13 Tuesday October 2026
5=WORKDAY.INTL(A1, -9, 14) = 16 Friday October 2026
This function will default to excluding Saturdays and Sundays.
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays 9 business days before the date in cell "A1" (excluding Saturday and Sunday with an explicit argument).
4 - Displays 9 business days before the date in cell "A1" (excluding Friday and Saturday).
5 - Displays 9 business days before the date in cell "A1" (excluding just Wednesday).
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.
WORKDAY.INTL - The date serial number that is a given number of working days before or after a date.

Subtract business days from a date excluding public holidays

You can add a certain number of business days to an existing date by using the WORKDAY.INTL function.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=WORKDAY.INTL(A1, -2) = 22 Thursday October 2026
4=WORKDAY.INTL(A1, -4) = 20 Tuesday October 2026
5=WORKDAY.INTL(A1, -6) = 16 Friday October 2026
6=WORKDAY.INTL(A1, -5, , A3:A5) = 14 Wednesday October 2026
The public holidays that we want to exclude are in cells "A3:A5".
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays 2 business days before the date in cell "A1".
4 - Displays 4 business days before the date in cell "A1".
5 - Displays 6 business days before the date in cell "A1".
6 - Displays the date that is 5 business days before the date in cell "A1" excluding the 3 public holidays.
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.
WORKDAY.INTL - The date serial number that is a given number of working days before or after a date.

Subtract days from a date

You can subtract days from a date by

 A
1=TODAY() = 26/10/2026
2=NOW() = 10/26/2026 19:34
Cell "A1" displays the current date.
Cell "A2" displays the current date and time.
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.

Subtract hours from a time

You can subtract (or add) a number of hours from a time using fractions.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=A2 - (6/24) = Monday, 26 October, 2026 01:34 PM
4=A2 - TIME(6, 0, 0) = Monday, 26 October, 2026 01:34 PM
5=A2 - (8/24)-(15/1440) = Monday, 26 October, 2026 11:19 AM
6=A2 - TIME(8, 15, 0) = Monday, 26 October, 2026 11:19 AM
7=A2 - (13/24) - (25/(1440)) - (45/86400) = Monday, 26 October, 2026 06:08 AM
8=A2 - TIME(13, 25, 45) = Monday, 26 October, 2026 06:08 AM
Dates are represented as sequential whole numbers so 1 hour is equivalent to the fraction (1/24).
Times are represented as fractions based on there being 24 hours in a day.
1 Hour is 1/24 = 0.04166
1 Minute is 1/(24*60) = 1/1440
1 Second is 1/(24*60*60) = 1/86400
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays the current time minus 6 hours.
4 - Displays the current time minus 6 hours using the TIME function to return the correct decimal.
5 - Displays the current time minus 8 hours and 15 minutes.
6 - Displays the current time minus 8 hours and 15 minutes using the TIME function to return the correct decimal.
7 - Displays the current time minus 13 hours, 25 minutes and 45 seconds.
8 - Displays the current time minus 13 hours, 25 minutes and 45 seconds using the TIME function to return the correct decimal.
All these cells have been formatted with the custom number format "dddd, dd mmmm, yyyy hh:mm AM/PM".
NOW - The date serial number of the current system date and time.
TIME - The time as a decimal given an hour, minute, second.
TODAY - The date serial number representing today's date.

Subtract minutes from a time

You can subtract (or add) a number of minutes from a time using fractions.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=A2-(25*(1/1440)) = Monday, 26 October, 2026 07:09 PM
4=A2 - TIME(0, 25, 0) = Monday, 26 October, 2026 07:09 PM
5=A2 - (4/24) - (75/1440) = Monday, 26 October, 2026 02:19 PM
6=A2 - TIME(4, 75, 0) = Monday, 26 October, 2026 02:19 PM
7=A2 - (6/24) - (30/1440) - (80/86400) = Monday, 26 October, 2026 01:02 PM
8=A2 - TIME(6, 30, 80) = Monday, 26 October, 2026 01:02 PM
Dates are represented as sequential whole numbers so 1 hour is equivalent to the fraction (1/24).
Times are represented as fractions based on there being 24 hours in a day.
1 Hour is 1/24 = 0.04166
1 Minute is 1/(24*60) = 1/1440
1 Second is 1/(24*60*60) = 1/86400
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays the current time minus 25 minutes
4 - Displays the current time minus 25 minutes seconds using the TIME function to return the correct decimal.
5 - Displays the current time minus 4 hours and 75 minutes.
6 - Displays the current time minus 4 hours and 75 minutes using the TIME function to return the correct decimal.
7 - Displays the current time minus 6 hours, 30 minutes and 80 seconds.
8 - Displays the current time minus 6 hours, 30 minutes and 80 seconds using the TIME function to return the correct decimal.
All these cells have been formatted with the custom number format "dddd, dd mmmm, yyyy hh:mm AM/PM".
NOW - The date serial number of the current system date and time.
TIME - The time as a decimal given an hour, minute, second.
TODAY - The date serial number representing today's date.

Subtract months from a date

You can subtract months from a date by

 A
1=TODAY() = 26/10/2026
2=NOW() = 10/26/2026 19:34
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.

Subtract seconds from a time

You can subtract (or add) a number of seconds from a time using fractions.

 A
1=TODAY() = Monday 26 October 2026
2=NOW() = Monday 26 October 2026 19:34:12
3=A2-(200*(1/86400)) = Monday, 26 October, 2026 07:30 PM
4=A2 - TIME(0, 0, 200) = Monday, 26 October, 2026 07:30 PM
5=A2 - (40/1440) - (50/86400) = Monday, 26 October, 2026 06:53 PM
6=A2- TIME(0, 40, 50) = Monday, 26 October, 2026 06:53 PM
7=A2 - (3/24) - (15/1440) - (30/86400) = Monday, 26 October, 2026 04:18 PM
8=A2 - TIME(3, 15, 30) = Monday, 26 October, 2026 04:18 PM
Dates are represented as sequential whole numbers so 1 hour is equivalent to the fraction (1/24).
Times are represented as fractions based on there being 24 hours in a day.
1 Hour is 1/24 = 0.04166
1 Minute is 1/(24*60) = 1/1440
1 Second is 1/(24*60*60) = 1/86400
1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".
3 - Displays the current time minus 200 seconds.
4 - Displays the current time minus 200 seconds using the TIME function to return the correct decimal.
5 - Displays the current time minus 40 minutes and 50 seconds.
6 - Displays the current time minus 40 minutes and 50 seconds using the TIME function to return the correct decimal.
7 - Displays the current time minus 3 hours, 15 minutes and 30 seconds.
8 - Displays the current time minus 3 hours, 15 minutes and 30 seconds using the TIME function to return the correct decimal.
All these cells have been formatted with the custom number format "dddd, dd mmmm, yyyy hh:mm AM/PM".
NOW - The date serial number of the current system date and time.
TIME - The time as a decimal given an hour, minute, second.
TODAY - The date serial number representing today's date.

Subtract years from a date

You can subtract years from a date by

 A
1=TODAY() = 26/10/2026
2=NOW() = 10/26/2026 19:34
TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.

Test if a month has 30 days

??

 A
1??
Test if a month has 31 days
Test if a year is a leap year

Test if a month has 31 days

??

 A
1??
Test if a month has 30 days
Test if a year is a leap year

Test if a year is a leap year

??

 A
1=TODAY() = 26/10/2026
2=NOW() = 10/26/2026 19:34
3=MONTH(DATE(YEAR(A1), 2, 29))=2 = 0
Test if a month has 31 days
Test if a month has 30 days

© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top