cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
presenceatm
Regular Visitor

Can't compare a number converted from text because of the whitespace

Dear all,

I'm using PAD. My goal is to convert a text like "3 831" to a number "3831" and then compare it to another number  by using  IF with operator "greater then or equal to".

 

I tried converting by "convert text to number", but the whitespace did not let that happen,

then I tried replacing whitespace by using this: 

presenceatm_1-1660711110262.png

It didn't work as well. Whitespace disappeared, but PA still does not see it as "3831"

presenceatm_2-1660711554977.png

Please help me out! 
Best regards,
Peter

1 ACCEPTED SOLUTION

Accepted Solutions
Rhiassuring
Super User
Super User

Hi there, 

 

I think you share the same issue with this poster, and they have a solution:

 

https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Remove-Spaces-in-String-Text/td-p/1258059

 

Cheers,

 

Rhia

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



View solution in original post

2 REPLIES 2
Rhiassuring
Super User
Super User

Hi there, 

 

I think you share the same issue with this poster, and they have a solution:

 

https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Remove-Spaces-in-String-Text/td-p/1258059

 

Cheers,

 

Rhia

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



Big thanks! Couldnt find it myself 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,415)