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 / PAD - Append daily dat...
Power Automate
Unanswered

PAD - Append daily data to Excel

(0) ShareShare
ReportReport
Posted on by 64

Hello, 

I have a spreadsheet that contains a list of employee information below, as shown in the example below. How do I append daily data to the list of employees where I want a status count every day? A new column would be added every day in excel for all the employees. I have a total of 10 employees I need to get daily information for. 

Employee Name3/6/2023 Count3/7/2023
Jane Doe10
John Smith20

 

I have the same question (0)
  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at

    Hi @MCubedMama ,

     

    Please find the below solution.

     

    Append 1.pngAppend 2.png

     

    Code: 

    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''C:\\Users\\vr79540\\OneDrive - Cyient Ltd\\Desktop\\Power Automate Desktop\\Practice\\Vehicle Reg\\Input.xlsx''' Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadAllCells Instance: ExcelInstance ReadAsText: False FirstLineIsHeader: True RangeValue=> ExcelData
    Excel.GetFirstFreeColumnRow Instance: ExcelInstance FirstFreeColumn=> FirstFreeColumn FirstFreeRow=> FirstFreeRow
    DateTime.GetCurrentDateTime.Local DateTimeFormat: DateTime.DateTimeFormat.DateOnly CurrentDateTime=> CurrentDateTime
    Text.ConvertDateTimeToText.FromCustomDateTime DateTime: CurrentDateTime CustomFormat: $'''dd-MMM-yyyy''' Result=> CurrentDateTime
    SET RowCount TO 2
    SET Counter TO 1
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: CurrentDateTime Column: FirstFreeColumn Row: 1
    LOOP FOREACH CurrentItem IN ExcelData
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: Counter Column: FirstFreeColumn Row: RowCount
    Variables.IncreaseVariable Value: RowCount IncrementValue: 1
    Variables.IncreaseVariable Value: Counter IncrementValue: 1
    END
    Excel.ResizeColumnsOrRows.AutofitAllColumns Instance: ExcelInstance
    Excel.CloseExcel.CloseAndSave Instance: ExcelInstance

     

    Note: if it worked mark it as a solution

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard