If formula entered too many arguments

phil133

Active Member
Joined
May 5, 2015
Messages
257
Office Version
  1. 365
Platform
  1. Windows
Hi. In this formula I get too many arguments =if(and(b5<>"",if(mod(row(),2=1,c4>=0.5*$c$4))),i4-i5,if(and(b5<>"",if(mod(row(),2=1,c4<=0.5*$c$4))),$ah$4-(($ah$4/c4)*c5,"")

What I want is if(and(b5<>"",if(mod(row(),2=1,c4>=0.5*$c$4) give me i4-i5
If(and(b5<>"",if(mod(row(),2=1,c4<=0.5*$c$4 give me $ah$4-(($ah$4/c4)*c5
In all other circumstances give me ""

Thanks
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I'm stuck and can't find the error! Does anyone know?

Thank you
 
Upvote 0
Hi. In this formula I get too many arguments =if(and(b5<>"",if(mod(row(),2=1,c4>=0.5*$c$4))),i4-i5,if(and(b5<>"",if(mod(row(),2=1,c4<=0.5*$c$4))),$ah$4-(($ah$4/c4)*c5,"")
Something looks wrong to me in the section I highlighted in red.... you have a MOD function call which looks like its closing parenthesis might be located incorrectly (at a glance, I would have expected it after the number 2).
 
Upvote 0

Forum statistics

Threads
1,215,917
Messages
6,127,703
Members
449,399
Latest member
VEVE4014

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