Trying to label data as Gainer or Decliner

RyanEvert

New Member
Joined
Feb 10, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Using last years actuals for January and February and using this years January results +February forecast.

If the customer's year-over-year variance is positive they are label as a gainer, if their year-over-year variance is negative then they are labeled a decliner.

This is the formula I was trying to use and kept getting an error
=(if(sum(B2:C2>sum(D2,E2),"Decliner"))),(if((sum(B2:C2<sum(D2,E2),"Gainer"))),(if((sum(B2:C2=sum(D2,E2),"Gainer")))))
 

Attachments

  • Excel Help.jpg
    Excel Help.jpg
    61.6 KB · Views: 6

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi and welcome to MrExcel
This is the formula I was trying to use and kept getting an error
=(if(sum(B2:C2>sum(D2,E2),"Decliner"))),(if((sum(B2:C2<sum(D2,E2),"Gainer"))),(if((sum(B2:C2=sum(D2,E2),"Gainer")))))
Considering the example of your formula.

Try:

Excel Formula:
=IF(SUM(B2:C2)<=SUM(D2:E2),"Gainer","Decliner")

Example:

Dante Amor
ABCDEF
1
210090120110Gainer
Hoja1
Cell Formulas
RangeFormula
F2F2=IF(SUM(B2:C2)<=SUM(D2:E2),"Gainer","Decliner")



Or simply:

Dante Amor
ABCDEF
1
210090120110Gainer
Hoja1
Cell Formulas
RangeFormula
F2F2=IF(B2+C2<=D2+E2,"Gainer","Decliner")
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top