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 Automate
Answered

Manipulating Excel

(0) ShareShare
ReportReport
Posted on by 69

Scenario: I have a csv file that is produced every day, I need to manipulate the data, and save it as an excel file.
I have it so that it opens excel, opens the right file, and can save the file as an XLS format. 

The issue is that before i can save it, I need to do two things, 

1. Remove Duplicate rows based on the last column (BZ:BZ)

2. Need to change the next to last column (BY:BY) format from date to number (#####)

 

I have tried different aspects of PowerShell, commands, 

Is this not possible or should i just use the PowerShell script to do it.

thanks

 

Guy

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    Record a macro from an xlsm workbook. 

    PAD opens your macro workbook and runs the macro. 

    the macro opens the csv, selects all data, removes duplicates on BZ, formats the date, and saves as xls. 

    good luck. 

  • 90_percent Profile Picture
    69 on at

    Thank you! I hadn't thought of that! 
    I have been trying to use the recorder (first time using it), have been getting pretty interesting results.

    I will switch to the macro and see if I can get it consistent.

    Thanks Again. Sometimes having someone look at an issue from a different angle, Helps Immensely.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    No pun intended on your name.  Literally, 90% of my bots are:

     

    Pull report(s) via command line

    Open macro workbook

    run macro

     

    It’s very effective. 

  • 90_percent Profile Picture
    69 on at

    That is how I am seeing some of these going, I am having to scrub my brain for VBA knowledge 😛

     

    and the 90 Percent is from, i can usually get it 90% of the way there....but then need some help 😛

     

    -Guy

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
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard