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 / Unable to convert Text...
Power Automate
Unanswered

Unable to convert Text to Number as a whole in Excel

(0) ShareShare
ReportReport
Posted on by 4

Hey everybody,

 

I was trying to convert the data that is in text format to numbers and I was only able to do that using a loop which is taking a lot of time for 2000 rows. I'm looking for a solution where I can convert all the values in excel from 'TEXT to NUMBERS'

 

Alfredp_0-1638946239892.png

 

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

    If I read numbers from Excel, it always comes back as numbers, even if the are formatted as Text in excel

    Highboy_3-1638949520528.png

    Highboy_4-1638949532615.png

     

    The error you get is proberly because you have a ' in front of your numbers, to get excel treat is as Text...

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    This is a fun one, and it's not exactly easy, but it's doable.  What we are going to do is add 0 to all of them, and we will do it at the same time.  This is easier done in a macro, but if you don't know Excel VBA, we can do it here.

     

    We are trying to get from this:

    MichaelAnnis_1-1638986835734.png

    To this:

    MichaelAnnis_0-1638986822148.png

    You can convert an entire range to number by adding 0 or multiplying 1 to the entire range.  So, the flow will need to do the following steps:

     

    Write "1" to a cell that you know will never be used; in the flow below, I chose Z1.  Copy that, select your range, right click, Paste Special.  In the Paste Special dialogue box, select "Multiply" and click OK.  This will multiply all the numbers by 1; therefore making them numbers.  Any blanks will show up as "0", so if you want to do away with that, that's a separate conversation.

     

    Here is what the flow looks like:

    MichaelAnnis_2-1638986850891.png

     

    I suggest using your own desktop recorder for those last 5 steps (the UIs).  These UI clicks are a little slow (3-5 seconds each).  If you would like it to go faster, you could navigate excel through send keys.

     

    Best of luck! 

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard