web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : sUmREKTu0ujvY1Zlc6FbUw
Power Automate - Building Flows
Answered

Writing current date as Excel sheet name

Like (0) ShareShare
ReportReport
Posted on 15 Apr 2021 09:01:52 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 😊

 

 

 

 

I have the same question (0)
  • dwalker97 Profile Picture
    82 on 15 Apr 2021 at 10:02:09
    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 Moderator on 15 Apr 2021 at 09:27:31
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2