Multiple IF Statements, w/ calculation and ABS formula

NinaE_11

Board Regular
Joined
Aug 18, 2020
Messages
58
Office Version
  1. 2016
Platform
  1. Windows
Hello!

I'm hoping to find some guidance how to incorporate all of the below attributes into one formula. I have stats for Year1, and Year2 that I divide, truncate to avoid any outliers, and in this case, need to find how to incorporate an absolute va(((lue of a result.

Example earnings estimates:
Year1 Year2
-$0.81 -$0.39
Using these stats to calculate y/y growth, my current formula that also incorporates truncating at 70 / -70 to remove outliers is:
=IF(((Year2/Year1))-1>0.7,0.7, IF((Year2/Year1)-1)<-0.7,-0.7,(Year2/Year1)-1)))*100

However, even though both years are negative, Year2 shows an improvement, so we want to show a positive growth result.
=(-$0.39/-$0.81)-1 = -0.52; which is not ideal and managers want to see a positive number to reflect the 'improvement nature".

How can I incorporate an ABS condition into the above IF formula?

See enclosed scenarios for added depth.

Thank you so much for any insights!
 

Attachments

  • Screenshot 2024-05-09 131802.png
    Screenshot 2024-05-09 131802.png
    86.7 KB · Views: 5

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Is this what you want? I changed the truncation formulas, too, but I'm not sure I understand how you want them truncated.
Excel Formula:
=IF((Year2-Year1)/ABS(Year1)-1>0.7,0.7, IF((Year2-Year1)/ABS(Year1)<-0.7,-0.7,(Year2-Year1)/ABS(Year1))*100)
 
Upvote 0
Is this what you want? I changed the truncation formulas, too, but I'm not sure I understand how you want them truncated.
Excel Formula:
=IF((Year2-Year1)/ABS(Year1)-1>0.7,0.7, IF((Year2-Year1)/ABS(Year1)<-0.7,-0.7,(Year2-Year1)/ABS(Year1))*100)
Thank you! I did end making some additional edits to this formula to get decimal places corrected, etc; but the meat of the question was answered by your addition of the ""ABS(Year1)"" inclusion in the denominator.

Thank you again!
 
Upvote 0
NinaE_11,
Please note that when marking a post as the solution, please mark the original post containing the solution, not your own post acknowledging some other post was the solution.
You would only mark your own post as the solution if you came up with the solution yourself, and you posted the solution you came up with.

Thanks
 
Upvote 0
NinaE_11,
Please note that when marking a post as the solution, please mark the original post containing the solution, not your own post acknowledging some other post was the solution.
You would only mark your own post as the solution if you came up with the solution yourself, and you posted the solution you came up with.

Thanks
Got it. I just didn't want someone Googling this solution and duplicating it exactly, because there was added tweaks to be made. Thanks!
 
Upvote 0
Got it. I just didn't want someone Googling this solution and duplicating it exactly, because there was added tweaks to be made. Thanks!
Then post the exact formula you used (tweaks included), and you can mark that as the solution.
 
Upvote 0
Solution:
Excel Formula:
=IF(((Y2-Y1)/(ABS(Y1)))>0.7,0.7,IF((Y2-Y1)/ABS(Y1)<-0.7,-0.7,(Y2-Y1)/ABS(Y1)))*100
 
Last edited by a moderator:
Upvote 0
Solution

Forum statistics

Threads
1,216,126
Messages
6,129,021
Members
449,480
Latest member
yesitisasport

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