web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Extract Dollar Amount from String, but skip first fullstop

(0) ShareShare
ReportReport
Posted on by

I have the following snippit from a GMAIL get email activity

 

"This month your services come to $94.07. This amount is due on 21 Sep 2021. Spark logo Account # 123456789 $94.07 to pay by 21 Sep 2021 $94.07 to pay by 21 Sep 2021 Pay Online If you have a direct"

 

I would like to extract the $ amount of the bill. 

I followed some online tutorials, but getting stuck at skipping the first fullstop in the middle of the dollar amount. 

Any ideas please?

I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at
    Re: Extract Dollar Amount from String, but skip first fullstop

    Hi @LukePWilkins :
    Do you want to get the amount in this string

     

    This month your services come to $94.07. This amount is due on 21 Sep 2021. Spark logo Account # 123456789 $94.07 to pay by 21 Sep 2021 $94.07 to pay by 21 Sep 2021 Pay Online If you have a direct

     

    If so,I've made a test for your reference:

    vbofengmsft_0-1630909654673.png

    Result:

    vbofengmsft_1-1630909678644.png

    In addition, Plumsail Documents is a fee-based third-party service but you can apply for a one-month free license.

    Best Regards,

    bof

     

  • v-bofeng-msft Profile Picture
    on at
    Re: Extract Dollar Amount from String, but skip first fullstop

    Hi @LukePWilkins :
    Do you want to get the amount in this string

    This month your services come to $94.07. This amount is due on 21 Sep 2021. Spark logo Account # 123456789 $94.07 to pay by 21 Sep 2021 $94.07 to pay by 21 Sep 2021 Pay Online If you have a direct

    If so,I've made a test for your reference:

    vbofengmsft_0-1630909654673.png

    Result:

    vbofengmsft_1-1630909678644.png

    In addition, Plumsail Documents is a fee-based third-party service but you can apply for a one-month free license.

    Best Regards,

    bof

     

  • LW-28112008-0 Profile Picture
    on at
    Re: Extract Dollar Amount from String, but skip first fullstop

    Thank you for the tip, I see that would work well. 

    I was hoping for a process that used the native functionality of MS Flow, rather than tap into a 3rd party API.

     

    Cheers for posting, it will help other people in the community

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Extract Dollar Amount from String, but skip first fullstop

    Hi @LukePWilkins :

    Please try:

    vbofengmsft_0-1630982103543.png

    The formula:

     

    concat('$',
    if(
    endsWith(split(split(outputs('Compose'),'$')[1],' ')[0],'.'),
    take(split(split(outputs('Compose'),'$')[1],' ')[0],sub(length(split(split(outputs('Compose'),'$')[1],' ')[0]),1)),
    split(split(outputs('Compose'),'$')[1],' ')[0]
    )
    )

    Result:

    vbofengmsft_1-1630982165880.png

     

     

    Best Regards,

    Bof

     

  • LW-28112008-0 Profile Picture
    on at
    Re: Extract Dollar Amount from String, but skip first fullstop

    hey there @v-bofeng-msft , that is awesome! How do you learn this stuff? To come up with that formula.

    Thanks for the help, that is ace.

  • v-bofeng-msft Profile Picture
    on at
    Re: Extract Dollar Amount from String, but skip first fullstop

    Hi @LukePWilkins :

    Hope this link helps:

    Reference guide to using functions in expressions for Azure Logic Apps and Power Automate 

    Best Regards,
    Bof

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 650 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 341 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard