Why Am I getting too many arguments for function

nirvehex

Well-known Member
Joined
Jul 27, 2011
Messages
505
Office Version
  1. 365
Platform
  1. Windows
Hi,

I feel like I've rewritten and modified this formula over and over again, but can't figure out where I'm missing something. I'm getting a "too many arguments for this function" error for the following nested if:

Code:
=IF(OR(F7="Y",AN7<=6),AQ7,IF(AND(O7="N",SEARCH("Open",D7),AQ7>=3),AQ7,IF(AND(O7="Y",SEARCH("Open",D7),AQ7>=2),AQ7,IF(AND(SEARCH("Open",D7),O7="N"),IF(OR(AND(VLOOKUP(A7,'WOs (DSP Only)'!A:B,2,FALSE)>=3,(365/((AN7*AQ7)/VLOOKUP(A7,'WOs (DSP Only)'!A:B,2,FALSE)))>Details!AR7),AND(VLOOKUP(A7,'WOs (DSP Only)'!A:C,3,FALSE)>=3,(365/((AN7*AQ7)/VLOOKUP(A7,'WOs (DSP Only)'!A:C,3,FALSE)))>Details!AR7),AND(VLOOKUP(A7,'WOs (DSP Only)'!A:D,4,FALSE)>=3,(365/((AN7*AQ7)/VLOOKUP(A7,'WOs (DSP Only)'!A:D,4,FALSE)))>Details!AR7),AND(VLOOKUP(A7,'WOs (DSP Only)'!A:E,5,FALSE)>=3,(365/((AN7*AQ7)/VLOOKUP(A7,'WOs (DSP Only)'!A:E,5,FALSE)))>Details!AR7),AND(VLOOKUP(A7,'WOs (DSP Only)'!A:F,6,FALSE)>=3,(365/((AN7*AQ7)/VLOOKUP(A7,'WOs (DSP Only)'!A:F,6,FALSE)))>Details!AR7)),3,if(and(O7="N",SEARCH("Open",D7),VLOOKUP(A7,'WOs (DSP Only)'!A:B,2,FALSE)<2,VLOOKUP(A7,'WOs (DSP Only)'!A:c,3,FALSE)<2,VLOOKUP(A7,'WOs (DSP Only)'!A:d,4,FALSE)<2,VLOOKUP(A7,'WOs (DSP Only)'!A:e,5,FALSE)<2,VLOOKUP(A7,'WOs (DSP Only)'!A:f,6,FALSE)<2,(365/((AN7*AQ7)/VLOOKUP(CONCAT(D7,"-",O7),Calibration!P:S,4,FALSE)))>AR7),2,AQ7,IF(AND(VLOOKUP(A7,'WOs (DSP Only)'!A:B,2,FALSE)>=2,VLOOKUP(A7,'WOs (DSP Only)'!A:B,2,FALSE)<3,ROUNDDOWN(365/((AN7*AQ7)/VLOOKUP(A7,'WOs (DSP Only)'!A:B,2,FALSE)),0)>ROUNDDOWN(AR7,0)),VLOOKUP(A7,'WOs (DSP Only)'!A:B,2,FALSE),IF(AND(VLOOKUP(A7,'WOs (DSP Only)'!A:C,3,FALSE)>=2,VLOOKUP(A7,'WOs (DSP Only)'!A:C,3,FALSE)<3,ROUNDDOWN(365/((AN7*AQ7)/VLOOKUP(A7,'WOs (DSP Only)'!A:C,3,FALSE)),0)>ROUNDDOWN(AR7,0)),VLOOKUP(A7,'WOs (DSP Only)'!A:C,3,FALSE),IF(AND(VLOOKUP(A7,'WOs (DSP Only)'!A:D,4,FALSE)>=2,VLOOKUP(A7,'WOs (DSP Only)'!A:D,4,FALSE)<3,ROUNDDOWN(365/((AN7*AQ7)/VLOOKUP(A7,'WOs (DSP Only)'!A:D,4,FALSE)),0)>ROUNDDOWN(AR7,0)),VLOOKUP(A7,'WOs (DSP Only)'!A:D,4,FALSE),IF(AND(VLOOKUP(A7,'WOs (DSP Only)'!A:E,5,FALSE)>=2,VLOOKUP(A7,'WOs (DSP Only)'!A:E,5,FALSE)<3,ROUNDDOWN(365/((AN7*AQ7)/VLOOKUP(A7,'WOs (DSP Only)'!A:E,5,FALSE)),0)>ROUNDDOWN(AR7,0)),VLOOKUP(A7,'WOs (DSP Only)'!A:E,5,FALSE),IF(AND(VLOOKUP(A7,'WOs (DSP Only)'!A:F,6,FALSE)>=2,VLOOKUP(A7,'WOs (DSP Only)'!A:F,6,FALSE)<3,ROUNDDOWN(365/((AN7*AQ7)/VLOOKUP(A7,'WOs (DSP Only)'!A:F,6,FALSE)),0)>ROUNDDOWN(AR7,0)),VLOOKUP(A7,'WOs (DSP Only)'!A:F,6,FALSE)))))))))))

Thought a second set of eyes might help. Anyone have any ideas where the error is?

Thanks!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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