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 public holidaysDate - Add or Subtract
Add days to a date including weekendsDate - Add or Subtract
Add 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 public holidays
Date - Add or Subtract
Add days to a date including weekends
Date - Add or Subtract
Add 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() = Friday, 23 October 2026
2=WORKDAY.INTL(A1, 7) = Tuesday, 03 November, 2026 12:00 AM
3=WORKDAY.INTL(A1, 21) = Monday, 23 November, 2026 12:00 AM
* 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() = Friday, 23 October 2026
2=WORKDAY.INTL(A1, 9, 1) = Thursday, 05 November, 2026 12:00 AM
3=WORKDAY.INTL(A1, 9, 7) = Wednesday, 04 November, 2026 12:00 AM
4=WORKDAY.INTL(A1, 9, 14) = Monday, 02 November, 2026 12:00 AM
* This function will default to excluding Saturdays and Sundays 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" (excluding Friday and Saturday).
* 4 - Displays 9 business days after the date in cell "A1" (excluding just Wednesday).

Add business days to 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() = Friday, 23 October 2026
2=WORKDAY.INTL(A1, 2) = Tuesday, 27 October, 2026
3=WORKDAY.INTL(A1, 4) = Thursday, 29 October, 2026
4=WORKDAY.INTL(A1, 6) = Monday, 02 November, 2026
5=WORKDAY.INTL(A1, 5, , A2:A4) = Wednesday, 04 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 days to a date including weekends

You can add a certain number of days to an existing date by adding that corresponding whole number.

 A
1=TODAY() = Friday, 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=TODAY()+1 = Saturday, 24 October, 2026 12:00 AM
4=TODAY()+7 = Friday, 30 October, 2026 12:00 AM
5=T(DAY(TODAY())&"/"&MONTH(TODAY())&"/"&YEAR(TODAY())) = Friday, 23 October, 2026 12:00 AM
6=DATEVALUE(A5) +0 = Friday, 23 October, 2026 12:00 AM
7=DATEVALUE(A5)+1 = Saturday, 24 October, 2026 12:00 AM
8=DATEVALUE(A5)+7 = Friday, 30 October, 2026 12:00 AM
* Dates are represented as date serial numbers.
* DATEVALUE - The date serial number given a date in text format.
* DAY - The day as an integer given a date serial number.
* MONTH - The month as an integer given a date serial number.
* NOW - The date serial number of the current system date and time.
* T - The argument as a text string when the value is text.
* TODAY - The date serial number representing today's date.
* YEAR - 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".
* 3 - Displays 1 day added to that date.
* 4 - Displays 7 days added to that date.
* All these cells have been formatted with the custom number format "dd dddd mmmm yyyy".

Add days to a date not landing on a weekend

You can add a certain number of days to an existing date which will return the Monday when the date is either a Saturday or a Sunday.

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
36
4=A2+A3 = Thursday, 29 October, 2026 06:12 AM
5=A4 = Thursday
6=WEEKDAY(A4) = 5
7=IF(A6>5, A4+(8-A6), A4) = Thursday, 29 October, 2026 06:12 AM
* IF - The value based on whether a condition is True or False.
* 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.
* 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 days that you want to add.
* 4 - Displays 6 days after the date in cell A1
* 5 - Displays this date formatted with "dddd"
* 6 - Displays a number from 1 (Monday) to 7 (Sunday) representing the corresponding day of the week.
* 7 - Displays the date which is a certain number of days after an existing date that ignores Saturdays and Sundays.
* All these cells have been formatted with the custom number format "dddd mmmm yyyy".

Add hours to a time

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

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=A2 + (6*(1/24)) = Friday, 23 October, 2026 12:12 PM
4=A2 + TIME(6, 0, 0) = Friday, 23 October, 2026 12:12 PM
5=A2 + (8/24) + (15/1440) = Friday, 23 October, 2026 02:27 PM
6=A2 + TIME(8, 15, 0) = Friday, 23 October, 2026 02:27 PM
7=A2 + (13/24) + (25/1440) + (45/86400) = Friday, 23 October, 2026 07:37 PM
8=A2 + TIME(13, 25, 45) = Friday, 23 October, 2026 07:37 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
* 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.
* 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 plus 6 hours.
* 4 - Displays the current time plus 6 hours using the TIME function to return the correct decimal.
* 5 - Displays the current time plus 8 hours and 15 minutes.
* 6 - Displays the current time plus 8 hours and 15 minutes using the TIME function to return the correct decimal.
* 7 - Displays the current time plus 13 hours, 25 minutes and 45 seconds.
* 8 - Displays the current time plus 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".

Add minutes to a time

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

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=A2 + (25*(1/1440)) = Friday, 23 October, 2026 06:37 AM
4=A2 + TIME(0, 25, 0) = Friday, 23 October, 2026 06:37 AM
5=A2 + (4/24) + (75/1440) = Friday, 23 October, 2026 11:27 AM
6=A2 + TIME(4, 75, 0) = Friday, 23 October, 2026 11:27 AM
7=A2 + (6/24) + (30/1440) + (80/86400) = Friday, 23 October, 2026 12:43 PM
8=A2 + TIME(6, 30, 80) = Friday, 23 October, 2026 12:43 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
* 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.
* 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 plus 25 minutes.
* 4 - Displays the current time plus 25 minutes seconds using the TIME function to return the correct decimal.
* 5 - Displays the current time plus 4 hours and 75 minutes.
* 6 - Displays the current time plus 4 hours and 75 minutes using the TIME function to return the correct decimal.
* 7 - Displays the current time plus 6 hours, 30 minutes and 80 seconds.
* 8 - Displays the current time plus 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".

Add months to a date

You can add a certain number of months to an existing date by adding the corresponding number of days in that month.

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=EDATE(A1, 1) = 46349
4=EDATE(A1, 3) = Saturday, 23 January, 2027 12:00 AM
5=DATE(YEAR(A1), MONTH(A1)+3+1, 0) = Sunday, 31 January, 2027 12:00 AM
6=DATE(YEAR(A1), MONTH(A1+3), MIN(DAY(A1), DAY(A5))) = Friday, 23 October, 2026 12:00 AM
* Dates are represented as date serial numbers.
* DATE - The date as a date serial number given a year, month, day.
* DAY - The day as an integer given a date serial number.
* EDATE - The date serial number that is a given number of months before or after a date.
* MIN - The smallest numerical value.
* 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.
* 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".
* All these cells have been formatted with the custom number format "dd dddd mmmm yyyy".

Add seconds to a time

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

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=A2 + (200*(1/86400)) = Friday, 23 October, 2026 06:15 AM
4=A2 + TIME(0, 0, 200) = Friday, 23 October, 2026 06:15 AM
5=A2 + (40/1440) + (50/86400) = Friday, 23 October, 2026 06:52 AM
6=A2 + TIME(0, 40, 50) = Friday, 23 October, 2026 06:52 AM
7=A2 + (3/24) + (15/1440) + (30/86400) = Friday, 23 October, 2026 09:27 AM
8=A2 + TIME(3, 15, 30) = Friday, 23 October, 2026 09:27 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
* 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.
* 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 plus 200 seconds.
* 4 - Displays the current time plus 200 seconds using the TIME function to return the correct decimal.
* 5 - Displays the current time plus 40 minutes and 50 seconds.
* 6 - Displays the current time plus 40 minutes and 50 seconds using the TIME function to return the correct decimal.
* 7 - Displays the current time plus 3 hours, 15 minutes and 30 seconds.
* 8 - Displays the current time plus 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".

Add weeks to a date

You can add a certain number of weeks to an existing date by adding the corresponding number of days in a week.

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* Dates are represented as date serial numbers.
* 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.

Add years to a date

You can add a certain number of years to an existing date by adding the corresponding number of days in that year.

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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.
* 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".

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() = Friday 23 October 2026
3=NOW() = Friday 23 October 2026 06:12:05
4=TEXT(A2, "yyyymmdd") = 20261023
5=DATEVALUE(RIGHT(A4, 2)&"/"&MID(A4, 5, 2)&"/"&(LEFT(A4, 4))) = Friday, 23 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* ??

Convert decimal minutes to time

??

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* ??

Convert decimal seconds to time

??

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* ??

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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=NETWORKDAYS.INTL(A1, A1) = 1
4=NETWORKDAYS.INTL(A1, A1)-1 = 0
5=NETWORKDAYS.INTL(A1, A1+1)-1 = 0
6=NETWORKDAYS.INTL(A1, A1+2)-1 = 0
7=NETWORKDAYS.INTL(A1, A1+3)-1 = 1
8=NETWORKDAYS.INTL(A1, A1+4)-1 = 2
9=NETWORKDAYS.INTL(A1, A1+5)-1 = 3
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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=NETWORKDAYS.INTL(A1, EOMONTH(A1, 0)) = 6
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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=A1+7 = 10/30/2026 0:00
4=A1+14 = 11/6/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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=TODAY()-365 = 23/10/2025
4=TODAY()-(2*365) = 23/10/2024
5=TODAY()-(3*365) = 24/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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=NOW()-20 = 3-Oct-26
4=DATE(YEAR(A3), 12, 31)- A3 = 88.7416045138889
5=DATE(YEAR(A2), 12, 31)- NOW() = Thursday 08 March 1900 17:47:55
6=DATE(YEAR("19/08/2005"), 12, 31)-NOW() = -7601.2583943287
7=DATE(YEAR(NOW()), 12, 31)- NOW() = 68.7416056712973
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=A1-DATE(YEAR(A1), 1, 0) = 296
4=A2-DATE(YEAR(A2), 1, 0) = 296
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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
31
4=TODAY() = 23/10/2026
5=A4 = Friday
614
7=A4+A6 = 06/11/2026
8=A7 = Friday
9=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A4&":"&A7)), 2)=A3)) = 2
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=TEXT(A1, "dd/mm/yy") = 23/10/26
4=TEXT(A1, "mm/dd/yy") = 10/23/26
5=TEXT(A1, "dd mmmm, yyyy") = 23 October, 2026
6=TEXT(A1, "dd-mmm yyyy") = 23-Oct 2026
7=TEXT(TODAY(), "dd/mmm, yyyy") = 23/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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = 23/10/2026
2=NOW() = 23/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 = 9
3=INT(RAND()*25)+1=6=INT(RAND()*25)+1 = 16
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=TEXT(A1, "dddd") = Friday
4=DAY(A2) = 23
5=CHOOSE(WEEKDAY(TODAY()), "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su") = Fr
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=A1+(360/4) = 21 Thursday January 2027
4=A3+(360/4) = 21 Wednesday April 2027
5=A4+(360/4) = 20 Tuesday 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=NOW()-TODAY() = 6:12:05
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=TRUNC(A2) = Friday 23 October 2026
4=INT(A2) = Friday 23 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=A1-WEEKDAY(A1, 3) = Monday, October 19, 2026
4=A1-WEEKDAY(A1, 3) = 46314
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* ??

Return the date of the Monday in the next week

??

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* ??

Return the day from a date

Display the current day

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* ??

Return the day name

??

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
* ??

Return the first day of the current month

??

 A
1=TODAY() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
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() = 23 Friday 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() = 23 Friday 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() = 23/10/2026
2=NOW() = 10/23/2026 6:12
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() = 23/10/2026
2=NOW() = 10/23/2026 6:12
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() = 23 Friday 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() = 23 Friday 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

??

 A
1=TODAY() = 23/10/2026
2=NOW() = 10/23/2026 6:12
3January
4November
5=MONTH("1/"&A3) = 1
6=MONTH("1/"&A4) = 11
7=CHOOSE(MATCH(LEFT(A3, 3), {"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";"Oct";"Nov";"Dec"}, 0), 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) = 1
8=CHOOSE(MATCH(LEFT(A4, 3), {"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";"Oct";"Nov";"Dec"}, 0), 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) = 11
* 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.
* CHOOSE - The value in a row (or column) based on an index number.
* LEFT - The first or left most characters in a text string.
* MATCH - (XMATCH) The position of a value in a list, table or cell range.

Return the time elapsed between 2 times

??

 A
1=NOW() = 6:12:05 AM
2=NOW()+0.5 = 6:12:05 PM
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() = Friday, October 23, 2026
2=NOW() = Friday, October 23, 2026 06:12:05
3=MOD(A2, 1) = 6:12:05 AM
4=A2-INT(A2) = 6:12:05 AM
5=TIME(HOUR(A2), MINUTE(A2), SECOND(A2)) = 6:12:05 AM
* 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() = Friday, October 23, 2026
2=NOW() = Friday, October 23, 2026
3=ISOWEEKNUM((A1)) = 43
4=TRUNC(((A1-DATE(YEAR(A1), 1, 0))+6)/7) = 43
5=INT((A1-DATE(YEAR(?-3495), 1, 1))/7)+1 = 6617
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=WORKDAY.INTL(A1, -7) = 14 Wednesday 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=WORKDAY.INTL(A1, -9, 1) = 12 Monday October 2026
4=WORKDAY.INTL(A1, -9, 7) = 12 Monday October 2026
5=WORKDAY.INTL(A1, -9, 14) = 12 Monday 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=WORKDAY.INTL(A1, -2) = 21 Wednesday October 2026
4=WORKDAY.INTL(A1, -4) = 19 Monday October 2026
5=WORKDAY.INTL(A1, -6) = 15 Thursday October 2026
6=WORKDAY.INTL(A1, -5, , A3:A5) = 13 Tuesday 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() = 23/10/2026
2=NOW() = 10/23/2026 6:12
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=A2 - (6/24) = Friday, 23 October, 2026 12:12 AM
4=A2 - TIME(6, 0, 0) = Friday, 23 October, 2026 12:12 AM
5=A2 - (8/24)-(15/1440) = Thursday, 22 October, 2026 09:57 PM
6=A2 - TIME(8, 15, 0) = Thursday, 22 October, 2026 09:57 PM
7=A2 - (13/24) - (25/(1440)) - (45/86400) = Thursday, 22 October, 2026 04:46 PM
8=A2 - TIME(13, 25, 45) = Thursday, 22 October, 2026 04:46 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 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=A2-(25*(1/1440)) = Friday, 23 October, 2026 05:47 AM
4=A2 - TIME(0, 25, 0) = Friday, 23 October, 2026 05:47 AM
5=A2 - (4/24) - (75/1440) = Friday, 23 October, 2026 12:57 AM
6=A2 - TIME(4, 75, 0) = Friday, 23 October, 2026 12:57 AM
7=A2 - (6/24) - (30/1440) - (80/86400) = Thursday, 22 October, 2026 11:40 PM
8=A2 - TIME(6, 30, 80) = Thursday, 22 October, 2026 11:40 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() = 23/10/2026
2=NOW() = 10/23/2026 6:12
* 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() = Friday 23 October 2026
2=NOW() = Friday 23 October 2026 06:12:05
3=A2-(200*(1/86400)) = Friday, 23 October, 2026 06:08 AM
4=A2 - TIME(0, 0, 200) = Friday, 23 October, 2026 06:08 AM
5=A2 - (40/1440) - (50/86400) = Friday, 23 October, 2026 05:31 AM
6=A2- TIME(0, 40, 50) = Friday, 23 October, 2026 05:31 AM
7=A2 - (3/24) - (15/1440) - (30/86400) = Friday, 23 October, 2026 02:56 AM
8=A2 - TIME(3, 15, 30) = Friday, 23 October, 2026 02:56 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 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() = 23/10/2026
2=NOW() = 10/23/2026 6:12
* 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() = 23/10/2026
2=NOW() = 10/23/2026 6:12
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