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 / Update query misses ou...
Power Automate
Unanswered

Update query misses out the numbers starting with apostrophe in excel

(1) ShareShare
ReportReport
Posted on by

Hi All,

 

I have a column 'TestColumn1' to be updated in excel file using sql query. The column type is General and it has few rows which has numeric values and one of the number starts with apostrophe ' as it has 0 in the beginning. while updating i am using following query.

 

%NewVar% = 1234,0567

 

UPDATE [Sheet1$]

SET [TestColumn2]= 'Pass'

WHERE [TestColumn1] IN (%NewVar%)

 

Result is  it is only updated for number 1234.

 

Any hint please?

Categories:
I have the same question (0)
  • sandeepstw Profile Picture
    312 Moderator on at

    Hi @Atharvazd ,

     

    When using SQL queries to update Excel files, ensure that numeric values containing leading zeros are formatted as text by enclosing them in single quotes. Modify your query like this :

     

    %NewVar% = '1234.0567'

    UPDATE [Sheet1$]
    SET [TestColumn2] = 'Pass'
    WHERE [TestColumn1] IN (%NewVar%)

     

    This is will update TestColumn2 based on numeric value matches for TestColumn1. 

     

    Please mark as solution if it helps. 

     

    Thanks,

    Sandeep Mishra

  • rishabhgupta584 Profile Picture
    4 on at

    Hello, I am also having the same issue. Like in Excel I have a column of type 'General' but when I use this query it updates the row by 0 and showing this error message in excel "Number stored as text" convert to number.



    UPDATE [%Sheet%$] 
    SET [%Balance%]=0.00,  ------> Numeric Value 
    [%Monthly%] = 0.00   -------->  Numeric Value
    where [DocumentNo]= '%CurrentItem3['DocumentNo']%'

     

    Any Idea, as you can see here I am using 0.00 which is a Number not a string value.

     

  • sandeepstw Profile Picture
    312 Moderator on at

    HI @rishabhgupta584 ,

     

     

    Ensure your Excel column is correctly recognized as numeric before running the update query.

    Right-click and choose "Format Cells". Select "Number" and set decimal places as needed.

     

    Mark as solution if it helps. 

     

    Thanks,

    Sandeep Mishra

  • rishabhgupta584 Profile Picture
    4 on at

    Thanks Sandeep, for your reply. 
     But I tried that in Excel my format is Number for the whole column. But after I run the update query the values are stored as Text instead of Number.

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 442

#2
Vish WR Profile Picture

Vish WR 328

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard