Excel Practice Test

โ–ถ

Learning how to format a date in Excel is one of the most useful skills you can develop, whether you are tracking project deadlines, building financial models, or organizing customer records. Dates in Excel are not simply text strings โ€” they are serial numbers that the application can display in dozens of different ways. Understanding the difference between the underlying value and its display format is the foundation of every date-related task, from simple formatting to advanced functions like vlookup excel users rely on for matching records across sheets.

Excel stores every date as a sequential number starting from January 1, 1900, which is serial number 1. So when you type 5/22/2026 into a cell, Excel actually stores 46164 and merely displays it as a date based on the format applied. This dual nature is why a cell can look like a date but behave like a number in calculations. It is also why a single formatting change can transform 46164 into May 22, 2026, or 22-May-26, or even the full text Friday, May 22, 2026.

The most common way to format dates is through the Format Cells dialog, accessed by pressing Ctrl+1 on a selected cell or range. Inside the Number tab, the Date category offers a list of preset formats based on your regional settings, while the Custom category lets you build any layout you can imagine using format codes like dd, mmm, and yyyy. These same codes apply to TEXT functions, conditional formatting rules, and chart axis labels throughout the program.

Beyond cosmetics, proper date formatting prevents real business problems. Mismatched formats between US (MM/DD/YYYY) and European (DD/MM/YYYY) conventions cause silent errors that ripple through pivot tables, lookups, and reports. Importing CSV files from accounting systems often produces text strings that look like dates but cannot be sorted chronologically. Mastering format codes lets you fix these issues quickly instead of retyping hundreds of cells by hand.

This complete guide walks through every method professionals use to format dates: built-in presets, custom format codes, the TEXT function, regional overrides, and conversion tricks for stubborn imported data. We will cover keyboard shortcuts that save hours each week, conditional formatting for deadlines, and troubleshooting tips for the dreaded scenario where Excel refuses to recognize your dates as dates at all. By the end you will handle any date-formatting challenge with confidence.

Whether you are an accountant closing the books, a project manager updating Gantt charts, or a student preparing data for analysis, these techniques apply to every version of Excel from 2016 through Microsoft 365 and Excel for the web. The interface may differ slightly between desktop and online editions, but the underlying serial-number system and format codes are identical across platforms.

Before diving into specific techniques, take a moment to check the regional date setting on your computer through Windows Control Panel or macOS System Settings. Excel inherits the short and long date formats from this system-wide preference, which is why the same workbook can look different on different machines. Once you understand that hierarchy, formatting becomes predictable rather than mysterious.

Excel Date Formatting by the Numbers

๐Ÿ“…
1900
Excel Date Epoch
๐Ÿ”ข
2,958,465
Max Serial Number
โฑ๏ธ
0.5
Equals 12:00 PM
๐ŸŒ
40+
Built-in Date Formats
โŒจ๏ธ
Ctrl+1
Format Cells Shortcut
Try Free Excel Date Format Practice Questions

Five Methods to Format a Date in Excel

๐ŸŽ€

On the Home tab, find the Number group and click the dropdown showing General. Select Short Date or Long Date for quick formatting. This is the fastest method for standard layouts and works on any selected range instantly.

โš™๏ธ

Press Ctrl+1 or right-click and choose Format Cells. Select the Date category to see locale-specific presets, or pick Custom to build your own format using codes like dd-mmm-yyyy for designs not in the preset list.

โŒจ๏ธ

Press Ctrl+Shift+# to apply the default date format (dd-mmm-yy) to selected cells in one keystroke. This shortcut works in every version of Excel and is faster than navigating menus when formatting large ranges repeatedly.

๐Ÿ”ค

Type =TEXT(A1,"mmmm d, yyyy") to convert a date into a formatted text string. This is essential for concatenation with other text, building dynamic report headers, or displaying dates inside chart titles and labels.

โœ๏ธ

In Format Cells > Custom, type any combination of d, m, y, h, and s codes. Example: ddd mmm-dd-yyyy displays Fri May-22-2026. Custom codes preserve the underlying serial number so calculations still work properly.

๐Ÿ”„

For imported data, use Power Query to set column types to Date or DateTime before loading into a worksheet. This handles thousands of rows at once and respects locale settings during the transformation phase reliably.

Custom format codes are the secret language behind every date display in Excel. Once you learn the small set of letters that represent days, months, years, hours, minutes, and seconds, you can build virtually any layout your reports require. The codes are case-sensitive in a few specific places โ€” m means month in date context but minute in time context, so position matters. Mastering these codes also helps when you create a drop down list in excel that filters dates by quarter, week, or fiscal period.

For days, use d for a single-digit day (1-31), dd for two digits with leading zeros (01-31), ddd for the three-letter weekday abbreviation (Mon-Sun), and dddd for the full weekday name (Monday-Sunday). The same logic applies to months: m gives 1-12, mm gives 01-12, mmm gives Jan-Dec, mmmm gives the full month name, and the lesser-known mmmmm gives the single-letter abbreviation J, F, M used in compact dashboards.

Year codes are simpler. Use yy for the last two digits (26) or yyyy for the full four-digit year (2026). Excel does not support yyy or y as standalone codes; those will display literally. Combine these elements with separator characters of your choice โ€” slashes, dashes, periods, spaces, or even text in quotes. For example, dd" of "mmmm" "yyyy produces 22 of May 2026, perfect for formal letter headings.

Time codes operate similarly. Use h or hh for hours, mm for minutes (when placed after h or before s), and ss for seconds. Add AM/PM at the end to switch from 24-hour to 12-hour format. A complete timestamp format like yyyy-mm-dd hh:mm:ss produces 2026-05-22 14:30:00, which is the ISO 8601 standard used by most databases and APIs for unambiguous storage.

Brackets unlock special behaviors. [h]:mm displays elapsed hours beyond 24 โ€” useful for tracking total project time across multiple days. [$-409] forces US English regardless of system locale, while [Red] colors the result when conditional logic is built into the format string. These advanced codes turn ordinary cells into smart displays that adapt to the data they contain.

One frequently overlooked feature is the conditional format code structure, which uses semicolons to define separate displays for positive, negative, zero, and text values. For dates, this is rarely needed, but the syntax [<TODAY()] mmm-d;[>TODAY()] mmm-d;General creates color-coded past versus future date displays without conditional formatting rules. It is a clever shortcut that experienced analysts use to save processing overhead in large workbooks.

Finally, remember that every custom format you create can be saved for reuse. After applying a format, it appears in the Custom list at the bottom of Format Cells for that workbook. To share across workbooks, save the file as a template (.xltx) or copy a formatted cell and use Paste Special > Formats to transfer the format definition to other ranges or files without copying the underlying data.

Microsoft Excel Practice Test Questions

Prepare for the Microsoft Excel exam with our free practice test modules. Each quiz covers key topics to help you pass on your first try.

Microsoft Excel Excel Basic and Advance
Microsoft Excel Exam Questions covering Excel Basic and Advance. Master Microsoft Excel Test concepts for certification prep.
Microsoft Excel Excel Formulas
Free Microsoft Excel Practice Test featuring Excel Formulas. Improve your Microsoft Excel Exam score with mock test prep.
Microsoft Excel Excel Functions
Microsoft Excel Mock Exam on Excel Functions. Microsoft Excel Study Guide questions to pass on your first try.
Microsoft Excel Excel MCQ
Microsoft Excel Test Prep for Excel MCQ. Practice Microsoft Excel Quiz questions and boost your score.
Microsoft Excel Excel
Microsoft Excel Questions and Answers on Excel. Free Microsoft Excel practice for exam readiness.
Microsoft Excel Excel Trivia
Microsoft Excel Mock Test covering Excel Trivia. Online Microsoft Excel Test practice with instant feedback.
Microsoft Excel Advanced Data Analysis Tools
Free Microsoft Excel Quiz on Advanced Data Analysis Tools. Microsoft Excel Exam prep questions with detailed explanations.
Microsoft Excel Advanced Formula and Macro...
Microsoft Excel Practice Questions for Advanced Formula and Macro Creation. Build confidence for your Microsoft Excel certification exam.
Microsoft Excel Advanced Formulas and Macros
Microsoft Excel Test Online for Advanced Formulas and Macros. Free practice with instant results and feedback.
Microsoft Excel Basic and Advance Question...
Microsoft Excel Study Material on Basic and Advance Questions and Answers. Prepare effectively with real exam-style questions.
Microsoft Excel Creating and Managing Charts
Free Microsoft Excel Test covering Creating and Managing Charts. Practice and track your Microsoft Excel exam readiness.
Microsoft Excel Data Visualization with Ch...
Microsoft Excel Exam Questions covering Data Visualization with Charts. Master Microsoft Excel Test concepts for certification prep.
Microsoft Excel Formulas and Functions
Free Microsoft Excel Practice Test featuring Formulas and Functions. Improve your Microsoft Excel Exam score with mock test prep.
Microsoft Excel Formulas and Functions App...
Microsoft Excel Mock Exam on Formulas and Functions Application. Microsoft Excel Study Guide questions to pass on your first try.
Microsoft Excel Formulas Questions and Ans...
Microsoft Excel Test Prep for Formulas Questions and Answers. Practice Microsoft Excel Quiz questions and boost your score.
Microsoft Excel Functions Questions and An...
Microsoft Excel Questions and Answers on Functions Questions and Answers. Free Microsoft Excel practice for exam readiness.
Microsoft Excel Managing Data Cells and Ra...
Microsoft Excel Mock Test covering Managing Data Cells and Ranges. Online Microsoft Excel Test practice with instant feedback.
Microsoft Excel Managing Tables and Data
Free Microsoft Excel Quiz on Managing Tables and Data. Microsoft Excel Exam prep questions with detailed explanations.
Microsoft Excel Managing Tables and Table ...
Microsoft Excel Practice Questions for Managing Tables and Table Data. Build confidence for your Microsoft Excel certification exam.
Microsoft Excel Managing Worksheets and Wo...
Microsoft Excel Test Online for Managing Worksheets and Workbooks. Free practice with instant results and feedback.
Microsoft Excel MCQ Questions and Answers
Microsoft Excel Study Material on MCQ Questions and Answers. Prepare effectively with real exam-style questions.
Microsoft Excel Questions and Answers
Free Microsoft Excel Test covering Questions and Answers. Practice and track your Microsoft Excel exam readiness.
Microsoft Excel Trivia Questions and Answers
Microsoft Excel Exam Questions covering Trivia Questions and Answers. Master Microsoft Excel Test concepts for certification prep.
Microsoft Excel Workbook and Worksheet Man...
Free Microsoft Excel Practice Test featuring Workbook and Worksheet Management. Improve your Microsoft Excel Exam score with mock test prep.

TEXT Function Examples โ€” Like vlookup excel, Once You Learn It You Use It Daily

๐Ÿ“‹ Basic Conversion

The TEXT function converts a date serial number into a formatted text string. The syntax is =TEXT(value, format_code) where value is the cell containing your date and format_code is any custom format wrapped in double quotes. Example: =TEXT(A1,"mm/dd/yyyy") returns 05/22/2026 as text, not as a date value.

This is invaluable when concatenating dates into sentences. ="Report generated on "&TEXT(TODAY(),"mmmm d, yyyy") produces Report generated on May 22, 2026. Without TEXT, the formula would return the raw serial number like 46164, breaking your readable output. Use TEXT whenever you mix dates with regular text in formulas or chart titles.

๐Ÿ“‹ Day & Month Names

To extract just the weekday name from a date, use =TEXT(A1,"dddd") which returns Friday for May 22, 2026. For the three-letter abbreviation use "ddd" returning Fri. This is perfect for scheduling spreadsheets where you want both the date number and a human-readable day side by side without manually typing names.

Similarly, =TEXT(A1,"mmmm") returns the full month name like May, while "mmm" returns May (three letters where applicable). Combine these in a single cell: =TEXT(A1,"dddd, mmmm d, yyyy") produces Friday, May 22, 2026 โ€” ideal for formal invoices, contract dates, and executive dashboards.

๐Ÿ“‹ Fiscal & Quarter

Excel has no built-in fiscal year code, but you can build one. ="Q"&ROUNDUP(MONTH(A1)/3,0)&" "&YEAR(A1) returns Q2 2026 for May dates. For fiscal years starting in July, adjust: ="FY"&IF(MONTH(A1)>=7,YEAR(A1)+1,YEAR(A1)) produces FY2026 for any date in July 2025 through June 2026.

Combine these with TEXT for compact period labels. =TEXT(A1,"mmm-yy")&" ("&"Q"&ROUNDUP(MONTH(A1)/3,0)&")" produces May-26 (Q2), perfect for pivot table grouping or rolling 12-month dashboards. These patterns are essential in financial reporting where the calendar year does not match the business cycle.

Custom Date Formats vs Built-in Presets: Which Should You Use?

Pros

  • Custom formats give pixel-perfect control over every character displayed in the cell
  • Format codes preserve the underlying serial number so calculations remain accurate
  • Custom formats can be combined with text strings in quotes for branded report layouts
  • Once created, formats are saved in the workbook for instant reuse in other cells
  • Conditional color codes like [Red] and [Blue] add visual logic without extra rules
  • International date formats like ISO 8601 (yyyy-mm-dd) are easy to define
  • Bracket codes [h] enable elapsed-time tracking beyond 24-hour boundaries

Cons

  • Custom codes require memorizing letter meanings that differ for date versus time contexts
  • The lowercase m means month or minute depending on adjacent codes โ€” easy to confuse
  • Format codes do not change the underlying value, only its display, causing import surprises
  • Sharing workbooks across regions can produce unexpected results without locale tags
  • Custom formats applied to text strings will not work โ€” value must be a real date serial number
  • Some legacy systems and CSV exports strip custom formats, reverting to raw serial numbers

Complete Date Formatting Checklist for Clean Spreadsheets

Verify your Windows or macOS regional date setting matches your intended workbook locale
Type a date in any cell and check the formula bar โ€” if right-aligned, Excel recognizes it as a date
Use Ctrl+1 to open Format Cells and review existing custom formats before creating duplicates
Apply consistent date formats across all related columns in a table for clean visual alignment
Use ISO format (yyyy-mm-dd) for any column that will be sorted, filtered, or used in lookups
Wrap date displays with the TEXT function when concatenating into report titles or summaries
Test custom formats with edge cases like January 1, single-digit days, and leap-year February 29
Convert imported text-dates using DATEVALUE or Text-to-Columns before applying date formats
Document any unusual custom format codes in a hidden notes column for future maintainers
Save complex format codes as a template (.xltx) so colleagues inherit the same display rules
Always store dates as serial numbers, never as text strings

The single biggest cause of broken date filters, sorts, and lookups is dates stored as text. If your dates are left-aligned in cells without you having changed alignment, they are text. Use =DATEVALUE(A1) or Data > Text to Columns with the date format option to convert them to true date serial numbers before applying any format.

Regional and system settings determine how Excel interprets and displays dates by default, and understanding this layer prevents some of the most frustrating bugs in shared workbooks. When you type 5/22/2026 in the United States, Excel sees May 22, 2026. The same entry in the United Kingdom is interpreted as the 5th of the 22nd month โ€” which does not exist โ€” and Excel either rejects it or stores it as text. This is the same kind of subtle issue that trips up users when they merge cells in excel without realizing the impact on downstream formulas.

The Windows Control Panel > Region settings control the default short date (often M/d/yyyy in the US) and long date (dddd, MMMM d, yyyy) that Excel inherits. macOS controls these through System Settings > General > Language & Region. Changing these system settings affects every Excel workbook you open, not just new files. This is why the same workbook can look different on two computers in the same office if their regional settings differ.

Within Excel itself, you can override the system locale for specific cells using the [$-locale] prefix in custom format codes. For example, [$-409]mmmm d, yyyy forces US English regardless of system settings, while [$-809]mmmm d, yyyy uses UK English. The four-digit code is a Microsoft Locale ID โ€” 409 for US, 809 for UK, 40C for French, 407 for German, and so on. This is essential for multinational reports.

Excel for the web behaves slightly differently. It uses your Microsoft account region setting rather than the device locale, which can create surprises if you sign in from a travel laptop in a different country. Always verify the regional display by typing a known date and checking how Excel formats it before bulk-editing thousands of records. A two-minute sanity check saves hours of cleanup work later.

The 1900 versus 1904 date system is another regional quirk worth knowing. By default, Windows Excel uses the 1900 system (serial 1 = January 1, 1900), while older Mac Excel used 1904 (serial 1 = January 2, 1904). You can switch by going to File > Options > Advanced > Use 1904 date system. Mixing workbooks with different systems will shift dates by exactly four years and one day, so always confirm before consolidating files from different sources.

For databases and integrations, ISO 8601 (yyyy-mm-dd) is the universal standard. It is unambiguous, sorts correctly as text, and is recognized by every modern system from SQL Server to JavaScript. When designing spreadsheets that will be imported into other tools, format your date columns as yyyy-mm-dd to avoid round-trip conversion errors. This single habit eliminates a huge category of data-integrity bugs.

Finally, remember that locale settings affect more than just dates. The decimal separator, thousands separator, list separator (used in formulas), and currency symbol all change with regional settings. If you receive a workbook from a European colleague where formulas use semicolons instead of commas, this is because their list separator is different. Excel handles the conversion automatically when opening files, but custom format strings shared as plain text may need manual adjustment.

When dates refuse to behave correctly, troubleshooting follows a predictable path. The first diagnostic is alignment: numeric values, including dates, right-align by default in Excel. If your dates left-align, they are text strings disguised as dates. The fix depends on the source โ€” sometimes a simple =DATEVALUE(A1) wrapper works, other times you need Text-to-Columns or Power Query. Once you fix the underlying type, formatting becomes straightforward, just like learning how to freeze a row in excel transforms how you navigate large datasets.

The fastest universal fix for text-dates is Data > Text to Columns. Select the column, click Text to Columns, choose Delimited, click Next twice, and on step 3 select Date with the appropriate format (MDY for US, DMY for European). Click Finish and Excel converts every cell in one operation. This method respects regional settings and handles edge cases like single-digit months without complaint.

If Text to Columns fails โ€” common when dates contain time components or unusual separators โ€” use a helper column with =DATEVALUE(A1) or =VALUE(A1). For dates with time, =DATEVALUE(LEFT(A1,10))+TIMEVALUE(RIGHT(A1,8)) splits and recombines the parts. Once the helper column contains real date serial numbers, paste-values over the original column and delete the helper to keep your sheet clean.

Excel sometimes auto-converts entries you did not want as dates. Typing 1-5 to mean a range or part number produces January 5 instead. Prevent this by formatting cells as Text before entry, or by prefixing entries with a single apostrophe ('1-5). For bulk imports, set the column format to Text in the Text Import Wizard before clicking Finish, which preserves the original strings without conversion.

Pivot tables introduce their own date-handling quirks. Excel automatically groups dates into Years, Quarters, and Months when you drag a date field into a pivot. This is helpful for analysis but confusing if you want to see individual dates. Right-click any date in the pivot, choose Group, and uncheck the grouping levels you do not want. To prevent automatic grouping altogether, go to File > Options > Data and disable Auto-detect grouping for pivot tables.

Conditional formatting on dates uses the same format codes plus date-specific rules. Highlight cells > Date Occurring lets you flag Today, Yesterday, Last 7 Days, This Month, and Next Month without writing formulas. For custom rules, use formulas like =A2<TODAY() to highlight overdue items, or =A2-TODAY()<=7 for upcoming deadlines. Combine with icon sets for traffic-light dashboards that update automatically each day.</p>

Finally, when sharing workbooks externally, lock down the date formats and validate inputs. Use Data Validation > Date to restrict entries to a specific range, and consider protecting the worksheet so users cannot accidentally change format codes. For mission-critical reports, build a hidden audit column with =ISNUMBER(A2) on each date cell to flag any text-date contamination before it propagates into your formulas and downstream calculations.

Practice Excel Formula Questions Including Date Functions

Practical tips separate intermediate users from true Excel power users when it comes to date handling. The first habit worth building is using keyboard shortcuts for current date and time: Ctrl+; inserts today's static date and Ctrl+Shift+; inserts the current time. These produce hard-coded values that do not change. For dynamic values that update each time the workbook opens, use =TODAY() or =NOW() formulas โ€” the distinction matters enormously when auditing transaction logs versus building live dashboards.

For consistent reporting, build a named cell called ReportDate containing =TODAY() and reference it throughout your workbook with =ReportDate. When you need to freeze the report as of a specific date, simply paste-values over the ReportDate cell. Every formula referencing it instantly snapshots to that date. This pattern eliminates dozens of manual updates when generating month-end packages or compliance reports for stakeholders.

Date arithmetic in Excel is wonderfully simple because dates are just numbers. =A1+30 adds 30 days, =A1-B1 returns the number of days between two dates, and =EOMONTH(A1,0) returns the last day of the current month. EDATE, NETWORKDAYS, WORKDAY, and DATEDIF cover almost every business-date scenario from loan amortization to vacation tracking. These functions respect leap years and weekends automatically โ€” you do not need to write custom logic for those edge cases.

When building dashboards, use TEXT inside chart titles to create dynamic headers. Set the chart title to a cell reference, then build that cell with a formula like ="Sales Performance: "&TEXT(MIN(DateRange),"mmm yyyy")&" to "&TEXT(MAX(DateRange),"mmm yyyy"). The chart title updates automatically as your data range expands, producing professional outputs without manual intervention each month or quarter when refreshing reports for management review meetings.

Power Query offers the most robust date transformations for repeating import workflows. Once you record the steps to convert a date column from text to a proper Date type with the correct locale, the same steps run automatically each time you refresh. This is far more reliable than manual formula-based conversions because Power Query catches errors and lets you preview the result before loading into your worksheet, saving substantial cleanup time on recurring reports.

For international teams, adopt ISO 8601 (yyyy-mm-dd) as your default storage format and use display formatting only at the report layer. This convention eliminates ambiguity between 5/6/2026 meaning May 6 or June 5 depending on locale. The underlying data stays consistent across regions, while custom format codes adapt the display for each audience. This separation of storage and presentation is a fundamental principle in clean spreadsheet design.

Finally, document your date-formatting decisions in a hidden README sheet within every shared workbook. List the locale, format codes, date-input rules, and any custom validation logic. When you or a colleague returns to the file six months later, this documentation prevents the painful process of reverse-engineering format choices. The investment of fifteen minutes during initial setup saves hours of confusion and prevents inadvertent format changes from breaking downstream calculations.

Excel Questions and Answers

How do I change the date format in Excel?

Select the cells containing dates, press Ctrl+1 to open Format Cells, choose the Date category for built-in presets, or Custom to type your own format code. Click OK to apply. The underlying serial number stays the same โ€” only the visible display changes. This works for single cells, ranges, entire columns, or the whole worksheet.

Why is Excel showing my date as a number like 46164?

Excel stores dates as serial numbers counting days from January 1, 1900. When a cell shows the raw number, it means the cell format is set to General or Number instead of Date. Select the cell, press Ctrl+1, and choose any Date format from the Number tab to display the date correctly. The number itself is correct โ€” only the format needs adjusting.

How do I convert text to a date in Excel?

Use =DATEVALUE(A1) in a helper column to convert a text-formatted date to a serial number, then format the result as a date. Alternatively, select the column, choose Data > Text to Columns, click Next twice, select Date with the correct order (MDY or DMY), and click Finish. Both methods work for thousands of cells at once with minimal effort.

What is the difference between TODAY and NOW in Excel?

TODAY() returns the current date with no time component (always midnight). NOW() returns both the current date and time with seconds precision. Both update every time the workbook recalculates, opens, or any cell changes. For static dates that do not update, press Ctrl+; for today's date or Ctrl+Shift+; for the current time as a hard-coded value.

How do I format a date as Month Day, Year?

Select the cells, press Ctrl+1, go to the Custom category, and type mmmm d, yyyy in the Type field. This produces displays like May 22, 2026. For abbreviated months use mmm d, yyyy producing May 22, 2026. To include the weekday, use dddd, mmmm d, yyyy for Friday, May 22, 2026 โ€” perfect for formal documents.

Why does Excel keep changing my dates to a different format?

This usually happens because your Windows or macOS regional settings differ from the workbook's original creator. Excel inherits the short and long date defaults from system settings. To override, apply an explicit custom format with a locale prefix like [$-409]mm/dd/yyyy for US English. This forces consistent display regardless of the viewer's regional preferences.

How can I extract just the year, month, or day from a date?

Use =YEAR(A1) to return just the year (2026), =MONTH(A1) for the month number (1-12), or =DAY(A1) for the day of month (1-31). For the weekday name use =TEXT(A1,"dddd") returning Friday. These functions are essential for grouping, filtering, and conditional formulas that depend on date components rather than the full date.

How do I calculate the number of days between two dates?

Simply subtract the earlier date from the later date: =B1-A1 returns the number of days. For workdays only, use =NETWORKDAYS(A1,B1) which excludes weekends, or =NETWORKDAYS.INTL with custom weekend definitions. For years and months use =DATEDIF(A1,B1,"Y") for full years or "M" for full months. DATEDIF is a hidden legacy function but still fully supported in modern Excel versions.

What is ISO 8601 and why should I use it in Excel?

ISO 8601 is the international date format yyyy-mm-dd (e.g., 2026-05-22). It is unambiguous across all locales, sorts correctly as text, and is recognized by databases, programming languages, and APIs. Using ISO format for storage prevents the 5/6/2026 ambiguity between US (May 6) and European (June 5) interpretations. Apply display formatting at the report layer while keeping ISO storage underneath.

How do I make Excel stop auto-converting numbers to dates?

Before entering data, select the cells and format them as Text via Ctrl+1 > Text category. Alternatively, prefix entries with a single apostrophe like '1-5 to force text storage. For bulk imports, use the Text Import Wizard or Power Query and set column types to Text explicitly. Once converted to a date, the original number sequence cannot be recovered without re-entering the data.
โ–ถ Start Quiz