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 Apps / Sum From numbers enter...
Power Apps
Answered

Sum From numbers entered as text in a text field

(0) ShareShare
ReportReport
Posted on by 28

Hello All,
i have a textbox where user needs to enter values separated by ";", these values need to be added and check if sum equals to 10 or not.
could you please help me out...  

Categories:
  • Verified answer
    Laxmikant_Alle Profile Picture
    79 on at

    Hello @sai2001 ,

     

    You can use the following code to add Numbers from TextInput and find whether it is equal to 10 or not.

     

    Set(Nos,Split(TextInput3.Text,";"));
    ClearCollect(Temp,{Total:0});
    ForAll(Nos As n,Collect(Temp,{Total:Last(Temp).Total+Value(n.Result)}));
    If(Last(Temp).Total=10,Set(FinalResult,true);,Set(FinalResult,false););

     

    Use this code in OnSelect of a button and replace your TextInput control name.

    The FinalResult will have your answer.

     

    I hope this will help.

    if you found this useful give a thumbs up.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard