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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Responses from form to...
Power Automate
Answered

Responses from form to different excels every day

(0) ShareShare
ReportReport
Posted on by 81

Hi 

 

I made a form to order food every day. I managed to create an automatic flow that saves the responses from the form to an excel.

Colleagues can choose the delivery date for their lunch and there are 6 different delivery locations. I want to create a scheduled flow that generates 6 different excel worksheets based on the 6 locations and it contains the responses from the flow, but only the responses that chose delivery date 'today'. Afterwards the excel with the 6 sheets needs to be sent by mail.

 

Can someone please help me how to set up this scheduled flow in power automate?

 

Thanks!

Categories:
  • Sarah_cool Profile Picture
    81 on at

    This is what I have at the moment:

    Sarah_cool_0-1651336331773.pngSarah_cool_1-1651336360058.png

    I always get this message testing it:

    Sarah_cool_2-1651336388883.png

     

  • Verified answer
    Rhiassuring Profile Picture
    8,692 Moderator on at

    Hi there, 

    The first problem is going to be that Excel is a huge jerk and doesn't actually have dates; it has serial numbers. So filtering to utcNow() is going to be like comparing 44701 to a formatted utc date, which it won't be able to do. 

     

    Try this instead: 

     

    div(sub(ticks(utcNow()),ticks(formatDateTime('1899-12-30'))),864000000000)

     

     If you wonder what all the parts of this formula mean,  please visit @tom_riha's blog here. 


    Let me know once you have that part working, and we'll move onto the next.

    R

  • Verified answer
    RobElliott Profile Picture
    10,545 Super User 2026 Season 2 on at

    In addition to the good advice re dates that @Rhiassuring gave you I would always prefer to save the form responses into a SharePoint list where you don't have the same hassle with dates.

     

    Once that's sorted out you will be able to use a Switch control which is a type of condition which will just look at what the answer was to the delivery location, then in each "case" you would add the relevant spreadsheet - in case the delivery location is OfficeA then add a row to spreadsheet ; in case the delivery location is OfficeB then add a row to spreadsheetB and so on. You can have up to 27 cases in each Switch.

     

    Rob
    Los Gallardos

  • Sarah_cool Profile Picture
    81 on at

    Thanks, I changed the filter to what you suggested.

    Sarah_cool_0-1651398100207.png

    Now the next problem.. I cannot open the excel file I created.

    Sarah_cool_1-1651398147679.png

     

     

  • Sarah_cool Profile Picture
    81 on at

    Thanks! I'll try that too 🙂

  • Rhiassuring Profile Picture
    8,692 Moderator on at

    Hi @Sarah_cool , 

     

    Where it says "File Content" in the Create File field, you need to add dynamic content called "File Content" - which, based on your flow right now, you won't have access to (because the Excel action "list rows in a table" is only giving you just that - it doesn't dive into the file's properties.)

    If you will be doing this a lot, I'd recommend creating a template Excel file, and then your first action will be to "Get File" from that xlsx, because then you can use that file's "File Content" to create the next one. 


    All files are created from two things in Power Automate ... a file name, and the file content. (Remember this if you ever need to get attachments, too - they are also names & content! This messed me up a lot when I first started - if I recall, I got angry about it 🙂 ) 

    I agree with what @RobElliott said about the switch condition for your next steps. I would add that I like to set variables in those switches, and then have a single action on the outside that is populated by them... but that will depend on what your 6 sheets look like.

     

  • Sarah_cool Profile Picture
    81 on at

    Thanks so much for your help!

     

    So now I have this:

    Sarah_cool_0-1651502527541.pngSarah_cool_1-1651502545795.pngSarah_cool_2-1651502562604.pngSarah_cool_3-1651502581472.png

     

    result: a sort of copy from my excel with the responses, but named as the date of today and with already 1 extra sheet, but without content on that sheet. How do I create content in the sheet (filtered on the delivery location of that sheet off course)?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard