+ Reply to Thread
Results 1 to 10 of 10

If formula - too many functions for this argument error

Hybrid View

ashley72788 If formula - too many... 08-03-2017, 05:24 PM
Pete_UK Re: If formula - too many... 08-03-2017, 05:28 PM
ashley72788 Re: If formula - too many... 08-03-2017, 05:29 PM
Pete_UK Re: If formula - too many... 08-03-2017, 05:42 PM
ashley72788 Re: If formula - too many... 08-03-2017, 05:52 PM
Pete_UK Re: If formula - too many... 08-03-2017, 06:12 PM
ashley72788 Re: If formula - too many... 08-03-2017, 05:32 PM
mrshl9898 Re: If formula - too many... 08-03-2017, 05:42 PM
mrshl9898 Re: If formula - too many... 08-03-2017, 06:07 PM
ashley72788 Re: If formula - too many... 08-03-2017, 06:09 PM
  1. #1
    Registered User
    Join Date
    08-06-2015
    Location
    Mesa, Arizona
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    84

    If formula - too many functions for this argument error

    Here is my formula, please help me find the error!

    Formula: copy to clipboard
    =iferror(F:F="", if(and(vlookup(Database!A:F,6,false)<=Delinquency!K:K, vlookup(Delinquency!K:K,Database!A:G,7,false)*Delinquency!S:S>=Delinquency!T:T), "X", ""), if(vlookup(Delinquency!F:F,CHCs!A:F,6,false)="x", if(and(vlookup(Delinquency!B:B,Database!A:F,6,false)<=Delinquency!K:K, vlookup(Delinquency!B:B,Database!A:G,7)*Delinquency!S:S>=Delinquency!T:T),"X",""),""),""),"")


    Thank you!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: If formula - too many functions for this argument error

    The first part doesn't make sense, i.e.:

    F:F=""

    Can you explain what you are trying to achieve?

    Pete

  3. #3
    Registered User
    Join Date
    08-06-2015
    Location
    Mesa, Arizona
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    84

    Re: If formula - too many functions for this argument error

    Meaning if F:F is blank

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: If formula - too many functions for this argument error

    Do you mean if the whole of column F is blank, or just one cell?

    It would need to be within some conditional statement, like:

    =IF(F3="", ...

    Also, I notice that your vlookup functions are not properly formed - the syntax is:

    VLOOKUP(lookup_value, table, position, type)

    but your first one is missing the lookup_value parameter (which is usually a single cell, like K3). VLOOKUP will return a single value (or an error), and so it cannot be compared directly with the column Delinquency!K:K. Your second VLOOKUP is using that column as the lookup_value, so it will fail there also, and then you are trying to multiply that by the column S:S in the Delinquency sheet (another fail), and so it goes on ...

    Please try to explain what your formula is meant to be doing, or, better still, attach a sample workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Note that the Paperclip icon (Attachments button) does not work.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    08-06-2015
    Location
    Mesa, Arizona
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    84

    Re: If formula - too many functions for this argument error

    Hi There,

    Here is an example - the formulas are in still in columns W & X.

    I had to delete some information out for security reasons, but what you need is available

    Thanks so much for helping, I really appreciate it!
    Attached Files Attached Files

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: If formula - too many functions for this argument error

    The formulae doesn't seem to do anything other than return a blank or an #N/A error, but if you want to wrap an IFERROR around it you need to do this:

    =IFERROR(your_existing_formula,"")

    so the formula in W2 would become:

    =IFERROR(IF(F:F="", IF(AND(VLOOKUP(B:B,Database!A:E,5,FALSE)<=Delinquency!K:K, VLOOKUP(Delinquency!K:K,Database!A:G,7,FALSE)*Delinquency!S:S>=Delinquency!T:T), "X",""), IF(VLOOKUP(Delinquency!F:F,CHCs!A:E,5,FALSE)="x", IF(AND(VLOOKUP(Delinquency!B:B,Database!A:E,5,FALSE)<=Delinquency!K:K, VLOOKUP(Delinquency!B:B,Database!A:G,7)*Delinquency!S:S>=Delinquency!T:T),"X",""),"")),"")

    and similarly for the formula in X2. When you copy the formula down, though, you just get blanks as a result.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    08-06-2015
    Location
    Mesa, Arizona
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    84

    Re: If formula - too many functions for this argument error

    This formula worked perfectly, the only thing I tried to change was adding if error to the formula. I don't want the cell to show "N/A", I would like it to be blank.

    FORMULA BELOW WORKS
    Formula: copy to clipboard
    =IF(F:F="", IF(AND(VLOOKUP(B:B,Database!A:E,5,FALSE)<=Delinquency!K:K, VLOOKUP(Delinquency!K:K,Database!A:G,7,FALSE)*Delinquency!S:S>=Delinquency!T:T), "X",""), IF(VLOOKUP(Delinquency!F:F,CHCs!A:E,5,FALSE)="x", IF(AND(VLOOKUP(Delinquency!B:B,Database!A:E,5,FALSE)<=Delinquency!K:K, VLOOKUP(Delinquency!B:B,Database!A:G,7)*Delinquency!S:S>=Delinquency!T:T),"X",""),""))


    THIS ONE DOES NOT
    Formula: copy to clipboard

    =iferror(F:F="", IF(AND(vlookup(Database!A:F,6,false)<=Delinquency!K:K, vlookup(Delinquency!K:K,Database!A:G,7,false)*Delinquency!S:S>=Delinquency!T:T), "X", ""), if(vlookup(Delinquency!F:F,CHCs!A:F,6,false)="x", if(and(vlookup(Delinquency!B:B,Database!A:F,6,false)<=Delinquency!K:K, vlookup(Delinquency!B:B,Database!A:G,7)*Delinquency!S:S>=Delinquency!T:T),"X",""),""),""),"")

  8. #8
    Registered User
    Join Date
    08-28-2015
    Location
    Melbourne, AUS
    MS-Off Ver
    2011
    Posts
    59

    Re: If formula - too many functions for this argument error

    A sample workbook would help.

    The problem with your statement is that IFERROR is formatted =IFERROR(value,value if error)

    You have:

    =iferror(

    Value is

    F:F="",

    Value if error is

    IF(AND(vlookup(Database!A:F,6,false)<=Delinquency!K:K, vlookup(Delinquency!K:K,Database!A:G,7,false)*Delinquency!S:S>=Delinquency!T:T), "X", "")

    then this is after the statement, causing the issue

    ,IF(VLOOKUP(Delinquency!F:F,CHCs!A:F,6,FALSE)="x",IF(AND(VLOOKUP(Delinquency!B:B,Database!A:F,6,FALSE)<=Delinquency!K:K,VLOOKUP(Delinquency!B:B,Database!A:G,7)*Delinquency!S:S>=Delinquency!T:T),"X","")

    If you want an IFERROR = "" to your original, then use

    =IFERROR(IF(F:F="", IF(AND(VLOOKUP(B:B,Database!A:E,5,FALSE)<=Delinquency!K:K, VLOOKUP(Delinquency!K:K,Database!A:G,7,FALSE)*Delinquency!S:S>=Delinquency!T:T), "X",""), IF(VLOOKUP(Delinquency!F:F,CHCs!A:E,5,FALSE)="x", IF(AND(VLOOKUP(Delinquency!B:B,Database!A:E,5,FALSE)<=Delinquency!K:K, VLOOKUP(Delinquency!B:B,Database!A:G,7)*Delinquency!S:S>=Delinquency!T:T),"X",""),"")),"")

  9. #9
    Registered User
    Join Date
    08-28-2015
    Location
    Melbourne, AUS
    MS-Off Ver
    2011
    Posts
    59

    Re: If formula - too many functions for this argument error

    It's hard to tell what is happening here. But referencing the whole column isn't correct.

    Does this work in W2?

    =IFERROR(IF(F2="", IF(AND(VLOOKUP(B2,Database!A:E,5,FALSE)<=K2, VLOOKUP(K2,Database!A:G,7,FALSE)*S2>=T2), "X",""), IF(VLOOKUP(F2,CHCs!A:E,5,FALSE)="x", IF(AND(VLOOKUP(B2,Database!A:E,5,FALSE)<=K2, VLOOKUP(B2,Database!A:G,7)*S2>=T2),"X",""),"")),"")

    And in X2

    =IFERROR(IF(F2="", IF(AND(VLOOKUP(B2,Database!A:F,6,FALSE)<=K2, VLOOKUP(K2,Database!A:G,7,FALSE)*S2>=T2), "X", ""), IF(VLOOKUP(F2,CHCs!A:F,6,FALSE)="x", IF(AND(VLOOKUP(B2,Database!A:F,6,FALSE)<=K2, VLOOKUP(B2,Database!A:G,7)*S2>=T2),"X",""),"")),"")

    It's hard to tell without the Entity numbers... I inserted random ones and found some x values in columns W and X
    Last edited by mrshl9898; 08-03-2017 at 06:10 PM.

  10. #10
    Registered User
    Join Date
    08-06-2015
    Location
    Mesa, Arizona
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    84

    Re: If formula - too many functions for this argument error

    It worked perfectly, you're a genius. Thank you SO much for your help. I wish I had your knowledge.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Run time error '5': Invalid procedure call or argument getting error
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2014, 04:48 AM
  2. Using an IF argument & COUNTIF argument in the same cell formula
    By TommyK25 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-14-2013, 08:52 AM
  3. Replies: 3
    Last Post: 04-28-2010, 05:54 PM
  4. MIN and MAX functions inside IF argument?
    By jim7485 in forum Excel General
    Replies: 2
    Last Post: 09-03-2006, 10:25 PM
  5. Macro Error: Compile error: Named argument not found
    By A.S. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2005, 05:15 PM
  6. Function (array argument, range argument, string argument) vba
    By Witek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2005, 11:07 AM
  7. Updating cells with VBA functions having a Range argument
    By Blair Hall in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2005, 11:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1