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 / Added excel data conta...
Power Automate
Answered

Added excel data contains a space before input

(1) ShareShare
ReportReport
Posted on by

Hello,

 

I have a flow where I extract specific text from an email through a split variable. The text on each line of the email, for example, looks like this, "Origin Destination: New York". I use the ":" as the split point for the variable, as well as the "last" function in order to only retain the text on the right side of ":", so "New York" in this example. When the variable writes into a spreadsheet through the add row into excel function, There is always a space before the imported data. My need is to get rid of that space. I have tried using ': ' adding the space that follows that ":", however that returns the full text instead of just the text on the right side. I have attached screenshots below of the input. Any help would be greatly appreciated

 

macdonal_T_0-1721043671141.pngthis one would return full text

macdonal_T_1-1721043799212.pngThis one would return the text I need, but with a space

 

 

Categories:
I have the same question (0)
  • macdonal_T Profile Picture
    on at

    @SudeepGhatakNZ @Nived_Nambiar @Anil_g @FLMike @SpongYe 

  • Verified answer
    NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @macdonal_T !

     

    You can use the trim() function to remove whitespace characters before and after the text. Finally your expression would be:

     

    trim(last(split(outputs('Split_Text')[19],':')))

     

    Just for reference:

    NathanAlvares24_0-1721044788253.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 581

#3
Haque Profile Picture

Haque 545

Last 30 days Overall leaderboard