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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Writing current date a...
Power Automate
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 😊

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    fchopo Profile Picture
    8,003 Moderator on at

    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

  • dwalker97 Profile Picture
    82 on at

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard