INFO Function: Retrieve Excel Environment & System Information

INFO Function IN EXCEL Tutorial Page Feature Image
Learn how to use Excel’s INFO function to get the operating system, Excel version, calculation mode, open worksheet count, and default directory. Covers all 7 type_text values with practical examples.

Every time you open Excel, it is running inside a specific environment — a particular operating system, a specific Excel version, and a calculation mode that is either automatic or manual. Normally, you can only find these details through menus or settings panels. The INFO function exposes them directly in a formula. It returns environment details as plain text, making them available for conditional logic, version-checking, and workbook documentation — all without leaving the worksheet.

INFO is a companion to the CELL function. CELL reports information about individual cells. INFO, by contrast, reports information about the Excel application and session itself. Together, they provide a complete picture of both the data environment and the system it runs on.

Availability: INFO works in Excel 2003 and all later versions, including Microsoft 365, Excel 2024, 2021, 2019, and 2016. It is not available in Excel for the web (Excel Online) — it returns a #VALUE! error in browser-based sessions.

What Is the INFO Syntax?

INFO takes a single argument — a text string specifying which type of information to return.

=INFO(type_text)
ArgumentRequired?What it does
type_textRequiredA text string enclosed in double quotes that specifies which environment detail to return. Must be one of seven predefined values. The argument is not case-sensitive, so "RELEASE" and "release" both work.
INFO is volatile — it recalculates on every change: Like CELL, NOW(), and TODAY(), INFO recalculates every time any cell in the workbook changes. Use it sparingly in large workbooks, and consider locking results as static values once they are no longer needed. Additionally, note that some INFO values (such as "osversion") only update when Excel restarts — pressing F9 is not always enough.

What Are the Seven INFO type_text Values?

INFO supports exactly seven type_text values. Three deprecated memory values — "memavail", "memused", and "totmem" — were removed in Excel 2007 and now return #N/A. The seven current values are listed below.

type_text valueWhat it returnsExample result
"directory"The path of the current default directory. This is the folder Excel uses when you open or save a file without specifying a location.C:\Users\Name\Documents\
"numfile"The number of active worksheets across all currently open workbooks. Counts sheets, not workbooks.5
"origin"The cell address of the top-left visible cell in the active window, in A1-style notation prefixed with a dollar sign.$A:$A$1
"osversion"The operating system version as a text string. On Windows this includes the build number. On Mac it includes the macOS version.Windows (32-bit) NT 10.00
"recalc"The current recalculation mode — either "Automatic" or "Manual". Useful for confirming a workbook's calculation state.Automatic
"release"The Excel version number as a text string. All versions from Excel 2016 through Microsoft 365 return "16.0". Earlier versions return lower numbers.16.0
"system"The operating system name — "pcdos" for Windows or "mac" for Mac. Short and reliable for OS branching.pcdos

Example 1: Detect the Operating System

The "system" type_text returns "pcdos" on Windows and "mac" on Mac. This two-value response is the simplest way to branch logic by platform. For instance, the line-break character differs between older Mac and Windows Excel versions. Similarly, file-path separators differ — Windows uses backslash, Mac uses forward slash.

1
Detect Windows vs Mac and branch formula logic accordingly
Formula
Windows result
Mac result
=INFO("system")
pcdos
mac
=INFO("osversion")
Windows (32-bit) NT 10.00
macOS 14.4.1
Detect the platform — returns "pcdos" or "mac": Use this as the first step in any cross-platform formula. =INFO("system") Branch logic by platform — show a different label depending on OS: Useful for workbooks shared between Windows and Mac users. =IF(=INFO("system")="pcdos", "Windows", "Mac") Use the correct line-break character for each OS. On Windows, CHAR(10) creates a line break. On older Mac Excel, CHAR(13) was needed. Modern Mac Excel (2016+) also accepts CHAR(10) — so this branching is mainly for legacy files. =IF(=INFO("system")="pcdos", CHAR(10), CHAR(13)) Use the correct path separator when building dynamic file paths: =IF(=INFO("system")="pcdos", "\", "/")
"system" is the most reliable platform check. "osversion" gives more detail but the exact string varies by build — for example, "Windows (32-bit) NT 10.00" vs "Windows (64-bit) NT 10.00". Use "system" for simple Windows/Mac branching, and "osversion" only when the detailed version string is specifically needed.

Example 2: Check the Excel Release Version

The "release" type_text returns the Excel version number as a string. Importantly, all versions from Excel 2016 through Microsoft 365 return "16.0" — so this value does not distinguish between them. However, it does clearly separate Excel 2016+ from older versions like Excel 2013 ("15.0") or Excel 2010 ("14.0"). This makes it useful for compatibility guards.

2
Check the Excel version and display a compatibility warning if it is too old
Excel version
INFO("release") returns
Notes
Excel 2010
14.0
Legacy — many modern functions missing
Excel 2013
15.0
FORMULATEXT available, MAXIFS not
Excel 2016–365
16.0
All modern functions available
Get the raw Excel version number: =INFO("release") → "16.0" for Excel 2016 through Microsoft 365 → "15.0" for Excel 2013 → "14.0" for Excel 2010 Convert version number to a numeric value for comparison: VALUE() converts "16.0" to the number 16 for numeric comparison. =VALUE(=INFO("release")) Display a compatibility warning if the version is older than 16: Useful for workbooks that use MAXIFS, XLOOKUP, or other 2019+ functions. =IF(VALUE(=INFO("release"))<16, "⚠ Excel 2013 or earlier — some functions may not work", "✓ Excel version is compatible") Show a full human-readable version label: Handles the most common version numbers. =SWITCH(=INFO("release"), "16.0", "Excel 2016 / 2019 / 2021 / 365", "15.0", "Excel 2013", "14.0", "Excel 2010", "Unknown version")

Why "release" Cannot Distinguish Modern Excel Versions

Excel 2016, 2019, 2021, and 365 all return "16.0": INFO("release") cannot distinguish between these versions. To detect Microsoft 365 specifically — for example, to check for XLOOKUP or HSTACK support — use IFERROR around those functions rather than relying on INFO. If IFERROR returns a fallback, the function is not available in the current version.

Example 3: Count Open Worksheets Across All Workbooks

The "numfile" type_text returns the total number of active worksheets across all open workbooks — not the number of workbooks. If you have two workbooks open, one with three sheets and one with five, "numfile" returns 8. This is useful for resource monitoring, for workbooks that need to know their context, and for sanity checks in automated reporting workflows.

3
Count total open worksheets and flag when too many are open
Return the total number of worksheets across all open workbooks: This is a count of sheets, not workbooks. =INFO("numfile") → 8 if you have two workbooks open (3 sheets + 5 sheets) Flag if more than 20 worksheets are open — performance warning: Large numbers of open sheets can slow down volatile functions like INFO itself. =IF(=INFO("numfile")>20, "⚠ Many sheets open — performance may be affected", "Sheet count is normal") Show the count in a dashboard label: Concatenate with text for a self-updating status line. "Open worksheets: " & =INFO("numfile") → "Open worksheets: 8" Note — INFO("numfile") counts hidden and very hidden sheets too. It also counts sheets in all open workbooks, including add-ins that open workbooks silently. As a result, the count may be higher than expected in some environments.
If you only want to count sheets in the current workbook, use SHEETS() instead — available in Excel 2013 and later. INFO("numfile") always counts sheets across all open workbooks combined.

Example 4: Check the Calculation Mode

The "recalc" type_text returns "Automatic" or "Manual" depending on the workbook's current calculation setting. A workbook in manual mode does not update formula results until you press F9. Consequently, a result that looks correct may actually be stale. Displaying the recalculation mode as a workbook warning saves users from acting on outdated data.

4
Display a recalculation mode warning — flag manual mode to prevent stale results
Formula
Automatic mode result
Manual mode result
=INFO("recalc")
Automatic
Manual
Return the current recalculation mode — "Automatic" or "Manual": Note the capital first letter — the string is case-sensitive when comparing. =INFO("recalc") Display a warning banner when calculation is set to Manual: Place this in a prominent cell at the top of a shared dashboard. =IF(=INFO("recalc")="Manual", "⚠ Manual calculation mode — press F9 to refresh results", "✓ Automatic — formulas update in real time") Use in conditional formatting to colour a status cell red in manual mode: Set the conditional format rule to highlight when INFO("recalc")="Manual". =INFO("recalc")="Manual" Count: is recalculation automatic? TRUE = 1, FALSE = 0: Useful in dashboard scoring formulas. =N(=INFO("recalc")="Automatic") → 1 if Automatic, 0 if Manual

Example 5: Get the Default Directory Path

The "directory" type_text returns the path of the current default directory — the folder Excel uses when opening or saving a file without a specific location. This is useful for building dynamic file-path references that depend on where Excel is configured to work. Furthermore, it provides useful context in workbooks that are part of a structured folder system shared across a team.

5
Display the default working directory and build a dynamic file path label
Return the current default directory path: This is the folder shown in Excel's File > Open dialog by default. =INFO("directory") → C:\Users\Name\Documents\ (includes trailing backslash on Windows) Build a dynamic file path from the default directory. Useful for linking to sibling files in the same folder. =INFO("directory") & "DataFile.xlsx" → C:\Users\Name\Documents\DataFile.xlsx Check whether the working directory is a network path (starts with \\): ISNUMBER(SEARCH("\\",path)) returns TRUE for UNC network paths. =IF( ISNUMBER(SEARCH("\\", =INFO("directory"))), "Network path", "Local path") Note — INFO("directory") and CELL("filename") give different path info: INFO("directory") is the default working folder (from Excel settings). CELL("filename") is the path of the currently active workbook file. They may differ if the workbook was opened from a different location.
Use CELL("filename") for the workbook's actual saved path: INFO("directory") tells you where Excel looks by default — not necessarily where this specific file is saved. To get the file's own path, use =CELL("filename", A1) and extract the folder portion with TEXTBEFORE or SUBSTITUTE.

Example 6: Build an Environment Summary Panel

Combining all seven INFO type_text values produces a self-contained environment summary. This is useful for shared workbooks, audit trails, and help desks — anyone who opens the file can immediately see the system context without navigating menus. Additionally, pairing INFO with the CELL function adds cell-level context to the system-level picture.

What to Include in an Environment Panel

Place each INFO formula in a dedicated row of a summary section. Add a label in the adjacent column, and optionally wrap each value in a coloured cell using conditional formatting. Consequently, anyone reviewing the workbook has the environment details at a glance without any manual data entry.

6
Full environment summary — all seven INFO values plus CELL file path in one panel
Label (Column A)
Formula (Column B)
Example output
Operating system
=INFO("system")
pcdos
OS version
=INFO("osversion")
Windows (32-bit) NT 10.00
Excel version
=INFO("release")
16.0
Calculation mode
=INFO("recalc")
Automatic
Open worksheets
=INFO("numfile")
8
Default directory
=INFO("directory")
C:\Users\Name\Documents\
This file's path
=CELL("filename",A1)
C:\Reports\[Budget.xlsx]Q1
Place in a named "System Info" section or a dedicated Audit sheet. Add a timestamp to record when the file was last opened or checked. "Last opened: " & TEXT(NOW(), "dd-mmm-yyyy hh:mm") → "Last opened: 07-Apr-2026 09:15" Compatibility check — single-cell status line for a dashboard: Combines version, mode, and sheet count into one readable label. "Excel v" & =INFO("release") & " | Calc: " & =INFO("recalc") & " | Sheets open: " & =INFO("numfile") → "Excel v16.0 | Calc: Automatic | Sheets open: 8"

How to Fix Common INFO Function Issues

#VALUE! error

The type_text argument is not one of the seven supported values, or the formula is being used in Excel for the web. INFO is not supported in browser-based Excel sessions and returns #VALUE! there. Additionally, the deprecated memory values ("memavail", "memused", "totmem") now return #N/A — not #VALUE! — so check which error type appears to diagnose the cause.

INFO("osversion") does not update after a system change

Some INFO values — particularly "osversion" — are captured when Excel starts and do not update during the session, even after pressing F9. To get a current reading, close and reopen Excel. For most practical purposes, this limitation does not matter since the OS version rarely changes mid-session.

INFO("release") returns "16.0" for every modern Excel version

Microsoft has returned "16.0" for all versions from Excel 2016 through Microsoft 365. Consequently, INFO("release") cannot distinguish between them. For feature-detection — for example, checking whether XLOOKUP is available — use IFERROR around the target function instead. If IFERROR returns the fallback value, the function is absent from the current version.

INFO is not available in Excel for the web: Any workbook that uses INFO and is opened in a browser via Excel Online will show #VALUE! errors for all INFO formulas. Wrap in IFERROR if the workbook may be used in both desktop and web contexts: =IFERROR(INFO("system"), "Excel Online").

Frequently Asked Questions

  • What does the INFO function do in Excel?+
    INFO returns information about the current Excel environment as a text string. It accepts one of seven type_text values and reports details such as the operating system ("system"), the Excel version ("release"), the recalculation mode ("recalc"), the number of open worksheets ("numfile"), the default directory ("directory"), the OS version ("osversion"), and the top-left visible cell ("origin"). These details are useful for version-checking, cross-platform compatibility, and workbook documentation.
  • How do I check the Excel version using INFO?+
    Use =INFO("release") to get the version number as a text string. Excel 2010 returns "14.0", Excel 2013 returns "15.0", and Excel 2016 through Microsoft 365 all return "16.0". To compare it numerically, wrap in VALUE(): =VALUE(INFO("release")) returns a number you can use in greater-than or less-than comparisons. Note that "16.0" cannot distinguish between Excel 2016, 2019, 2021, and 365 — use feature-detection with IFERROR for that purpose.
  • What is the difference between INFO and CELL?+
    INFO reports information about the Excel application and session — the operating system, version, calculation mode, and so on. CELL, by contrast, reports information about a specific cell — its address, format code, data type, or the filename of the workbook it lives in. They complement each other: INFO provides system context, while CELL provides cell-level context. Both are volatile functions and recalculate on every worksheet change.

More Questions About the INFO Function

  • Why does INFO return #VALUE! in Excel Online?+
    INFO is not supported in browser-based Excel sessions. Microsoft's documentation explicitly states that the function is unavailable in Excel Web App. Any workbook containing INFO formulas will show #VALUE! errors when opened in a browser. Wrap in IFERROR to handle this gracefully: =IFERROR(INFO("system"), "Excel Online — INFO not supported"). This prevents the error from disrupting reports viewed in both desktop and web contexts.
  • How do I detect whether Excel is running on Windows or Mac?+
    Use =INFO("system"), which returns "pcdos" for Windows and "mac" for Mac. This is the most reliable approach for a simple platform check. For a more readable label, wrap in IF: =IF(INFO("system")="pcdos","Windows","Mac"). Alternatively, INFO("osversion") returns a more detailed string, but its exact format varies by OS build — making it less suitable for simple branching logic than "system".
  • Which Excel versions support INFO?+
    INFO has been available since Excel 2003 and works in all desktop versions through Microsoft 365. It is also available on Excel for iPad, iPhone, and Android. However, it is not available in Excel for the web (Excel Online), where it returns #VALUE!. Additionally, the deprecated memory type_text values ("memavail", "memused", "totmem") were removed in Excel 2007 and now return #N/A in all current versions.