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 / How to add or subtract...
Power Apps
Answered

How to add or subtract between two labels

(0) ShareShare
ReportReport
Posted on by 568

Hello , if I have two text labels that have numbers how do I add or subtract them and put the answer in a third label ?  For instance . If label1 and less then label two then I’d need to subtract. If label 1 is greater then label 2 then ill need to add. 

Ex:  label 1 (10) — label 2 (15)  label 3 should say (-5) 

 

or label 1 says (15) and label 2 says (10) label 3 should say (+5) 

 

Any help would be great!! 🙂 

 

Categories:
I have the same question (0)
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    In label3 use the formula: Value(Label1) - Value(Label2)

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Sahara22,

    Do you want to do calculation based on the number size?

     

    Actually, I think @Jeff_Thorpe provides a correct formula that directly calculate the difference between label and label2, which skip to check the number size of both.

     

    If you insist on write a condition to check the number size firstly, you should try the following formula that you could set it for the Text property of the Label3:

    If(
     Value(Label1.Text) > Value(Label2.Text),
     "+" & Abs(Value(Label1.Text) - Value(Label2.Text)),
     "-" & Abs(Value(Label1.Text) - Value(Label2.Text))
    )
  • Sahara22 Profile Picture
    568 on at

    @v-qiaqi-msft @Jeff_Thorpe  thank you!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard