Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Writing current date as Excel sheet name

(0) ShareShare
ReportReport
Posted on by 82

I am trying to create an Excel worksheet and write the current date as the sheet name. 

 

I am using the formula to get today's date:  formatDateTime(utcNow(), 'yyyy-MM-ddThh:mm:ss'), in a Compose, and then writing the output to a variable 'Date'.

 

I then use a create worksheet and use the 'Date' variable as the Name selection for the worksheet.

 

I am getting the following error though -

 

dwalker97_0-1618477215749.png

 

Can anybody help me with this? Thanks 😊

 

 

 

 

  • dwalker97 Profile Picture
    82 on at
    Re: Writing current date as Excel sheet name

    That works perfect, thank you! I knew it would be something minor. 😅

  • Verified answer
    fchopo Profile Picture
    7,972 Super User 2025 Season 1 on at
    Re: Writing current date as Excel sheet name

    Hi @dwalker97 

    An Excel's sheet name can't contain special characters like: /, \, *, : , [], : Worksheets: Naming Conventions – The Excel Codex

    In your case, you have the ":" character, so your flow is going to fail. Can you replace ":" by "_", for example?

    Hope it helps!

    Ferran

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1