Add the Current User Name to an Excel Cell Without VBA
Question details
The user wants to populate an Excel cell with the current user's name without using 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.
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.
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.
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.
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.
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.

Capture the user identity with Microsoft Forms and Power Automate
Use this option when a shared process requires a more controlled identity record than manual worksheet entry.
Pass a known user name to an Office Script through automation
Use this option when your organization already runs Office Scripts and needs an automated workbook update without VBA.
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.

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.




