formula / script to display user name and or email excel online 365

Tom Bonner 11 Reputation points
2021-09-10T18:30:25.71+00:00

I'm looking to share a sheet in Excel Online within my organization that uses a call formula (or script) to get the user name of the person viewing the sheet. I had hoped it was as simple as typing in a cell something like "=User().email", but I understand there does not seem to be such a formula.

So I've been poking around the guidance around scripts, but don't have enough of a programming background to get the syntax.

Is there a way to get the user name and / or email for the person that's logged into sharepoint / office 365, and viewing the sheet (the sharing on the sheet is limited to people within my organization) via a formula in the sheet?

The punchline would be that if I'm Bob Smith, logged in and viewing the shared sheet, the data shown based on a filter formula that includes this user name formula, I'm only seeing the Bob Smith-pertinent data.

Thanks in advance for any help / ideas!

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,532 questions
0 comments No comments
{count} votes