Error on formula (compound percentage)

tonydorock

New Member
Joined
Apr 18, 2019
Messages
1
Hi, new on the forum, would appreciate some help, I've spent 7 hours trying to figure this out :oops:

I'm trying to insert a formula in excel for Mac 2011& 2016

The formula is:

=IF(I2="",IF(F3>0,F3,""),IF(F3>0,(F3+1)*(I2+1)-1,""))

Keeps giving me an error.

I'm tryint to reconstruct the same spreadsheet as this video: https://youtu.be/tm--bG_P9pY

Thanks, regards
:biggrin:
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hello,

You have to built your logic correctly ...

IF(I2="",IF(F3>0,F3,""),IF(F3>0,(F3+1)*(I2+1)-1,""))

You cannot have twice the same condition ...:wink:
 
Upvote 0
There is no error with the syntax of this formula.
So what do you mean by "Keeps giving me an error."

You're getting unexpected output?
Or something else?
 
Upvote 0
Hello,

You have to built your logic correctly ...

IF(I2="",IF(F3>0,F3,""),IF(F3>0,(F3+1)*(I2+1)-1,""))

You cannot have twice the same condition ...:wink:

I think you're incorrect.

IF(I2="",
IF(F3>0,F3,""), <== this gets executed if I2 is blank, return the value in F3 if its > 0 otherwise return blank
IF(F3>0,(F3+1)*(I2+1)-1,"")) <== this gets eexcuted if I2 is not blank, again return a calculation if F3 is > 0 otherwise return blank

So its perfectly fine to have IF(F3>0 twice in the same formula.
 
Last edited:
Upvote 0
I think you're incorrect.

IF(I2="",
IF(F3>0,F3,""), <== this gets executed if I2 is blank, return the value in F3 if its > 0 otherwise return blank
IF(F3>0,(F3+1)*(I2+1)-1,"")) <== this gets eexcuted if I2 is not blank, again return a calculation if F3 is > 0 otherwise return blank

So its perfectly fine to have IF(F3>0 twice in the same formula.

What about using AND ... to avoid confusion ...???
 
Upvote 0

Forum statistics

Threads
1,215,062
Messages
6,122,925
Members
449,094
Latest member
teemeren

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