Function Problems

Add the Current User Name to an Excel Cell Without VBA

Huda QurayshiHuda Qurayshi Nov 12, 2026 869 views

Question details

The user wants to populate an Excel cell with the current user's name without using VBA.

Add the Current User Name to an Excel Cell Without VBA
Product
Microsoft Excel
Device & OS
not provided
Scenario
A workbook needs to record the person using or submitting information in a worksheet, including shared workbook scenarios.
Observed behavior
Standard Excel worksheet formulas do not reliably expose the signed-in Microsoft 365 account name or local Windows user name.
Before you start

Decide whether the name can be entered by the user or must be verified automatically. For shared files, do not use the workbook path as an identity source because OneDrive and SharePoint locations can be common to multiple users.

Solution 1Recommended

Use a dedicated manual name-entry cell

Use this reliable option when each person can enter or select their own name before completing the worksheet.

Excel does not provide a dependable worksheet formula that returns the current Microsoft 365 account name or Windows user name. A clearly labeled input cell is the simplest no-code method.

1
Create a user-name field

Select a cell near the top of the worksheet, such as B2, and enter a label such as "Prepared by" or "User name" in A2.

2
Enter or select the name

Have the user type their name in B2. To standardize entries, select B2 and use Data > Data Validation > List to create a drop-down list of approved names.

3
Reference the entry where needed

Use a formula such as =B2 in other cells that need to display the entered user name, or reference $B$2 in templates and report formulas.

Use a dedicated manual name-entry cell
Formula limitation: Functions such as USERNAME are not standard Excel worksheet functions. Workbook formulas cannot reliably identify the active Microsoft 365 or Windows user.
Free Microsoft Office alternative

Work with Excel-Compatible Spreadsheets in WPS Office

If you need a free, lightweight office suite for creating and editing spreadsheets, WPS Office provides a familiar spreadsheet interface and supports seamless work with common Microsoft Office files. It does not change Excel's limitation around automatically retrieving the active account name through a worksheet formula, but it can help you continue working with compatible spreadsheet templates and manual name-entry fields.

Free and lightweight spreadsheet editing for everyday workbook tasks.Supports Microsoft Excel XLSX, XLS, and CSV file formats.Familiar spreadsheet tools for cells, formulas, tables, and data validation lists.Open and continue using templates that include a dedicated user-name input cell.
microsoft office alternative - wps office

Frequently Asked Questions

Can an Excel formula return the signed-in Microsoft 365 user name?

No. Standard worksheet formulas do not reliably return the signed-in Microsoft 365 account name. Use a manual input cell or an identity-aware workflow such as Microsoft Forms and Power Automate.

Can I use the Windows username in an Excel cell without VBA?

Not reliably through a normal worksheet formula. Excel formulas do not expose the local Windows username as a standard supported function.

Why should I not use CELL or workbook path information to identify a user?

Workbook path information identifies where a file is stored, not who is using it. In OneDrive or SharePoint, many users can access the same shared path.

How can I make users select their names instead of typing them?

Create a list of approved names, select the name-entry cell, then choose Data > Data Validation > List and select the range containing the names.

Can Power Automate write a user name into an Excel workbook?

Yes. Store the workbook in OneDrive or SharePoint, format the destination range as an Excel table, and use Excel Online (Business) > Add a row into a table in a Power Automate flow.