Excel-7 is a guide to working with dates and time in Microsoft Excel. Here you'll find practical tips, instructions, and illustrations about useful functions.
π Goal: Help you master Excel's date and time functions for everyday useβwhether you're a beginner or advanced user!
- Date Functions
- Current Date and Time
- DATEDIF and Days Calculation
- Calculate Age
- WEEKDAY and Day Names
- NETWORKDAYS and Workdays
- Quarter Calculation
- Screenshots
- Requirements
- Author
To enter a date in Excel, use the "/" or "-" characters. To enter a time, use ":" (colon). You can also enter a date and a time in one cell.
βΉοΈ Note: Polish date format used here: day.month.year
To extract the year of a date, use the YEAR function.
π‘ Tip: Use
MONTHandDAYfunctions to extract month and day.
To add a number of years, months, and/or days, use the DATE function.
If you only need to add days you can do it like this:
To get the current date and time, use the NOW function.
βΉοΈ Note: Use the
TODAYfunction to enter today's date in Excel.
βΉοΈ The result of theNOWfunction updates automatically whenever the sheet is recalculated.
To extract hour from date use the HOUR function.
π‘ Tip: Use the
MINUTEandSECONDfunctions to return minute and second.
To add a number of hours, minutes, and/or seconds, use the TIME function.
The DATEDIF function in Excel calculates the number of days, months, or years between two dates. It has 3 arguments.
βΉοΈ Note:
- Type
"d"for the third argument to get days between two dates"m"for months"y"for years"yd"to ignore years"md"to ignore months and years
You can also use the DAYS function to achieve the same result:
We can use DATEDIF to calculate the age of a person:
Use this formula to calculate the exact age:
The WEEKDAY function in Excel returns a number from 1 (Sunday) to 7 (Saturday) representing the day of the week of a date.
We can use the TEXT function with "dddd" format to display that day:
βΉοΈ Note: "sobota" means Saturday in Polish.
The NETWORKDAYS function in Excel returns the number of workdays between two dates, excluding weekends (Saturday and Sunday).
Formula that returns the quarter for a given date:
βΉοΈ Note: There's no built-in function in Excel to do this.
βΉοΈROUNDUP(x,0)always rounds x up to the nearest integer.
You can find all screenshots in the /Screenshots folder.
- Microsoft Excel (recommended: 2021/365 for modern functions)
- Windows OS
Project and documentation by Kuba27x
Repository: Kuba27x/Excel-7













