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 / Power automate exports...
Power Automate
Unanswered

Power automate exports negative values as positive values to excel

(0) ShareShare
ReportReport
Posted on by

I have developed a power automate flow that exports data directly to excel from a website. I noticed that the negative values eg -0.9 appears as 0.9 in my excel file. How do I fix this? During my recording, I made sure to select the - and +.

I have the same question (0)
  • AK88 Profile Picture
    453 on at

    Hi @Nelly ,

     

    Can you please elaborate your concern, kindly explain how you add into excel. 

     

     

    thanks,

    if my answer helps to your query, give a Thumps Up!

  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @Nelly ,

     

    The problem is with excel that when your writing it to the excel the column format is getting it as Number.So we need to change it to general. For change it to general I have provided you the VBscript please use it in desktop with RunVBscript action as shown in below and change the column.

     

    VishnuReddy1997_0-1716445358232.png

     

    VBCode:

    Please copy the below code into VBscript action.

    Option Explicit
    
    Dim xlApp, xlBook, xlSheet
    Set xlApp = CreateObject("Excel.Application")
    xlApp.Visible = True ' Make Excel visible for demonstration purposes
    
    ' Open the Excel file
    Set xlBook = xlApp.Workbooks.Open("C:\Users\OneDrive\Desktop\Power Automate Desktop\Practice\Excel\Positive.xlsx")
    Set xlSheet = xlBook.Worksheets(1) ' Assuming you want to work with the first worksheet
    
    ' Get the range of column B
    Dim columnBRange
    Set columnBRange = xlSheet.Columns("B")
    
    ' Change the format of the column to general
    columnBRange.NumberFormat = "General"
    
    ' Save and close the workbook
    xlBook.Save
    xlBook.Close
    
    ' Quit Excel application
    xlApp.Quit
    
    ' Clean up
    Set xlSheet = Nothing
    Set xlBook = Nothing
    Set xlApp = Nothing

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

     

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
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard