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 to Excel as pl...
Power Automate
Unanswered

Writing to Excel as plain text ?

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

A little help on writing data to Excel formatted as plain text please, whats the syntax after

%DataFomWebPage%

 

Thanks, Mike.

 

 

Screenshot 2021-11-19 210028.png

I have the same question (0)
  • Highboy Profile Picture
    1,183 Super User 2024 Season 1 on at

    I don't know if that's possible, but if not you can do it by powershell.
    This example sets column A to text (Just open the excel document through PAD)
    Replace 'a' with a variable to make it more flexible.

    Highboy_0-1637366323548.png
    To change a single cell use the example below
    Change the Cells(2,1) to something like Cells(%row%,%column%) 

    Highboy_1-1637370088099.png

     

     

  • VJR Profile Picture
    7,635 on at

    Hi @UK_Mike 

     

    You can try setting the text into Clipboard and then from Clipboard to Excel.

    This could clear the formatting.

    In-built actions are available in PAD for Clipboard activities.

     

     

  • Highboy Profile Picture
    1,183 Super User 2024 Season 1 on at

    That will not change the actual format of a cell in Excel.
    Try it with 012345, and you will loose the 0 

  • VJR Profile Picture
    7,635 on at

    Nope, not referring to number formatting, but formatting like font bold, color, borders, etc loose out when copied to clipboard.

    Same works when pasted in notepad.

     

    VJR_0-1637399408430.png

     

    Will wait to hear back from @UK_Mike what type of formatting is the source data in that would like to be removed.

  • UK_Mike Profile Picture
    on at

    Hi Guys,

     

    Many thanks for all the conflicting solutions, just kidding 😂

    Its a football ( soccer to my US friends ) results website.

    Its a daily flow that gets todays Date minus 1, adds the resulted Date to the end of the URL, see below.

    https://www.nowgoal4.com/football/fixture/?type=&f=ft1&date=2021-11-19

     

    I extract only 6 of the columns from the table.

    In Uipath this works flawlessly, writes into Excel as plain text and lets Power query do its magic, God I love Power Query !!!

    Initially I never got round to figuring out how to write as plain text in PAD, so I just used the desktop recorder

    to "select all cells, format as text, write to", been working great for months

    So hence looking for a more robust solution.

     

    Thanks guys 😊

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I liked VJRs solution of setting it to the clipboard text, but if that didn't work, then I would write it to a text file, and then open Excel and open the text file in Excel.

  • UK_Mike Profile Picture
    on at

    Hi Guys,

     

    Clipboard text looked good but when written in Excel it all went into a single cell (A1).

    Wrote to text file, opened it with Excel, all got written to Column A rather than 6 different colums.

    Seperately, In a blank Excel when I open the text file as text/csv, it opens it in Power Query then I can save it as a table , which I do eventually anyway.

    Ive 2 working options, leave the desktop recorder prep the Excel file then write to this OR save the web tables as text files, Power Query to pull it altogether.

     

    Many thanks to all, much appreciated.

     

    Mike

     

     

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