To get a date in an Excel formula, use the TODAY() function for the current date, NOW() for the current date and time, or DATE(year, month, day) to build a specific date. Press Ctrl+; (semicolon) on Windows or Command+; on Mac to drop in a fixed, non-changing date. That is the short answer. The rest of this guide covers which method to choose, how to add or subtract days and months, how to extract parts of a date, and how to fix the problems people run into most often.
What You'll Need
- Microsoft Excel for Windows, Mac, or the Excel web app. The functions below are standard and have been available for years, but menu labels can differ slightly by version, device, and region.
- A worksheet with at least one empty cell to hold your formula.
- Basic comfort with typing a formula that starts with an equals sign and pressing Enter.
Step-by-Step
- Choose your date type first. A dynamic date updates every time the workbook recalculates (for example, a report header showing today's date). A static date stays fixed forever. Dynamic dates use functions; static dates are typed or pasted in.
- Insert the current date with a function. Click an empty cell, type
=TODAY(), and press Enter. Excel displays the current date in the cell's default date format. The cell reference to the right of the formula bar shows the official name, so you can confirm the syntax is right. - Insert the current date and time. Use
=NOW()instead. This returns a full timestamp; if you only want the date portion, wrap it:=TODAY()is usually simpler, or use=INT(NOW())and format the cell as a date. - Insert a static date with the keyboard shortcut. Select a cell and press Ctrl+; on Windows or Command+; on Mac. Excel writes the date as a value, not a formula. Press Ctrl+Shift+; on Windows to insert the current time as a static value. Static dates will not change no matter when the file is opened.
- Build a specific date with DATE. Type
=DATE(2026,12,5)to produce December 5, 2026. The order is always year, month, day regardless of how your region displays dates, which is what makes this the safest way to hard-code a date in a formula. Excel also accepts overflow values:=DATE(2026,13,1)rolls over to January 1, 2027. - Convert text into a real date. If a date arrives as text (common with CSV imports), use
=DATEVALUE("12/5/2026")to turn it into a serial number Excel can calculate with, then apply a date format. For messier text,=DATE(RIGHT(A1,4),MID(A1,4,2),LEFT(A1,2))-style extraction works when the pattern is consistent. - Add or subtract days. Dates are stored as sequential serial numbers, so simple arithmetic works:
=A1+7adds a week,=A1-30subtracts 30 days. Use=TODAY()+14for a due date two weeks from now. - Add or subtract months or years safely. Use
=EDATE(A1,3)for a date three months later and=EDATE(A1,-12)for a year earlier. For the end of a month, combine them:=EOMONTH(A1,0)gives that month's last day, and=EOMONTH(A1,1)gives the next month's last day. These handle short months correctly where simple day arithmetic would spill into the wrong month. - Find the difference between two dates. Use
=B1-A1for the number of days, format the result as General or a number, or use=DATEDIF(A1,B1,"m")for whole months and=DATEDIF(A1,B1,"y")for whole years. Note that DATEDIF is an older function: it still works, but Excel does not suggest it as you type. - Extract parts of a date.
=YEAR(A1),=MONTH(A1), and=DAY(A1)return numbers.=WEEKDAY(A1)returns the day-of-week number, and=TEXT(A1,"dddd")returns the day name as text. Use=TEXT(A1,"mmmm yyyy")to display a month-and-year label in a formula-driven report. - Work out the working-day date. Use
=WORKDAY(TODAY(),10)to get the date 10 business days from now, skipping weekends. Add a holiday range as a third argument if you have one:=WORKDAY(TODAY(),10,Holidays). - Format the result. Select the cell, press Ctrl+1 (Windows) or Command+1 (Mac) to open Format Cells, choose the Number tab, pick Date, and select a style. A formula that looks like a five-digit number almost always just needs date formatting.
Common Mistakes
- Forgetting the empty parentheses.
=TODAYon its own does not work; it must be=TODAY(). - Typing dates in the wrong order for your region. Typed dates follow your local settings, so 03/04/2026 may mean March 4 or April 3.
=DATE()avoids the ambiguity entirely. - Assuming TODAY() is fixed. Any dynamic date changes the next time the file opens or recalculates. If you need a permanent record of when something happened, paste the static date as a value or use the shortcut.
- Leaving dates stored as text. Text dates look right but break sorting, filtering, and arithmetic. If dates line up to the left by default instead of the right, they are probably text.
- Using subtraction for month math.
=A1+30does not always land on the same day next month. UseEDATEandEOMONTH. - Pasting a formula over a static date. If a colleague expects a fixed stamp and you drop
=TODAY()there, the value will silently change on them.
Tips
- Name your holiday list as a range, then reference that name in
WORKDAYandNETWORKDAYSso every date calculation on the sheet stays consistent. - Put one "as of" date in a single cell and reference it everywhere (
=$B$1) instead of spreadingTODAY()through the workbook. It makes reports reproducible and easier to audit. - Use
=TEXT(A1,"yyyy-mm-dd")when building file names, because that format sorts correctly and avoids regional confusion. - To capture a dynamic date as a fixed value, copy the cell and use Paste Special > Values.
- Keep date columns formatted as dates, not text, before you import or export data. It saves most of the cleanup later.
Troubleshooting
The cell shows a five-digit number. That is the date serial number with General formatting. Press Ctrl+1 and apply a Date format; the underlying value was correct all along.
You get #VALUE!. Usually the input is text, or a month/day order the system cannot parse. Check with =ISNUMBER(A1): if it returns FALSE, the cell is text. Use DATEVALUE or clean the string first.
A formula returns a date in the wrong month. Check for hard-coded day arithmetic (+30) and replace it with EDATE. Also confirm your regional date settings, since typed dates follow them.
The date will not update. If calculation is set to Manual, press F9 (Windows) to recalculate, or set it back to Automatic via Formulas > Calculation Options.
Dates imported from a CSV are scrambled. Re-import with the Text Import Wizard or Data > From Text/CSV, and set the column type to Date during import rather than fixing it afterwards.
As a general first check, press Ctrl+Z to undo a bad paste and make sure the workbook is saved before experimenting.
Frequently Asked Questions
What is the difference between TODAY() and NOW()?
TODAY() returns only the current date; NOW() returns the date and time together. Both are dynamic and update on recalculation.
How do I stop TODAY() from changing?
Copy the cell, then use Paste Special > Values to replace the formula with a fixed number, or type the date directly with Ctrl+; on Windows or Command+; on Mac.
Why does DATE month math roll over?
Excel accepts values outside the normal range and adjusts them, so month 13 becomes January of the next year. This is intended behaviour and can be useful when calculating.
How do I calculate someone's age from a birth date?
Use =DATEDIF(A1,TODAY(),"y") where A1 holds the birth date. It returns completed years.
Can I format the date inside a formula?
Yes. =TEXT(TODAY(),"dddd, mmmm d, yyyy") returns the date as formatted text, which is useful in labels and messages but cannot then be used for further date arithmetic.
If that did not work
Confirm the cell is not formatted as Text before you type the formula (Format Cells > Number > General), since Text formatting shows formulas instead of results. If the problem persists, try the same formula in a fresh worksheet to rule out a corrupted file, and check that your Excel version is current.