Date and Time formulas help you calculate deadlines, find the difference between dates, add working days, and extract months or years. Instead of remembering the syntax of each formula, you can ask Copilot to create it based on your requirements. In this article, you will learn how to use Copilot for date and time formulas in Excel.
Key Takeaways:
- Copilot can create date and time formulas using simple prompts.
- Ask Copilot to calculate the difference between two dates.
- Copilot can extract the day, month, and year from a date.
- It can be used to calculate working days and project deadlines.
- You can calculate time differences and total working hours.
Table of Contents
How to Use Copilot for Date and Time Formulas
Step-by-Step Guide
STEP 1: Open your Excel workbook.
STEP 2: Make sure your data has proper column headers.
STEP 3: Select the Copilot icon in the lower-right corner of Excel.
STEP 4: The Copilot pane will open. Enter your request in the prompt box.
STEP 5: Review the result and press Done.
Attributes of a Good Prompt
- Mention the exact name of the header when referring to it.
- Mention the unit in which you want your result: days, months, years, hours, or minutes.
- Mention if you want to include the start date in your calculation.
- Mention if you want to skip weekends or a holiday list.
More Examples for Date and Time Formulas
1. Extract Day, Month, and Year From a Date
To get the day, month, or year from an existing date, ask Copilot to extract the required details into separate columns.
“Extract the day, month, and year from the Order Date column. Add three separate columns named Day, Month, and Year.”
2. Calculate the Number of Working Days
Project schedules and employee records often require the number of working days between two dates. Ask Copilot to create a NETWORKDAYS formula for this calculation.
“Calculate the number of working days between the Start Date and End Date columns. Exclude Saturdays and Sundays and use the NETWORKDAYS formula.”
3. Calculate Project Deadlines
Copilot can calculate the expected completion date by adding working days to the start date.
“Calculate the project deadline by adding 15 working days to the Start Date column. Exclude weekends and holidays listed in the Holidays column.”
4. Calculate the Current Date and Time
Tell Copilot to insert a formula that returns the current date or time.
“Create a formula to display the current date and time in cell A2. Use the appropriate Excel function.”
5. Calculate the Difference Between Two Times
An attendance sheet may contain Clock In and Clock Out columns. Ask Copilot to calculate the total hours worked by each employee and add the result to a new column.
“Calculate the total working hours by subtracting the Clock In time from the Clock Out time. Add the result in a new column named Total Hours. Handle shifts that end after midnight.”
FAQs
1. Which date and time formulas can Copilot create in Excel?
Copilot can suggest formulas such as TODAY, NOW, DATEDIF, NETWORKDAYS, and WORKDAY.
2. Can Copilot calculate the number of days between two dates?
To calculate the number of days between two dates using Copilot, you can enter a prompt to describe the result. For example:
“Calculate the number of days between the Joining Date and End Date columns.”
3. How can I extract the month from a date using Copilot?
Ask Copilot to extract the month from a date column and add it to a new column.
4. Can Copilot exclude weekends and holidays from date calculations?
Copilot can create NETWORKDAYS and WORKDAY formulas to exclude weekends and specified holidays.
5. Can Copilot calculate working hours in Excel?
Copilot can suggest formulas to calculate the difference between clock-in and clock-out times, including overnight shifts.
John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.








