+ Reply to Thread
Results 1 to 6 of 6

Formula Has Too Few Arguments....

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-30-2011
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    102

    Formula Has Too Few Arguments....

    =IF(OR(Schedule!$B7<VLOOKUP($J7,EmpInfo!$C$3:$V$200,7,FALSE)),((IF($F7="close",(MOD($AE$4-$B7,1))*24,(MOD($F7-$B7,1))*24))>=MOD(VLOOKUP($J7,EmpInfo!$C$3:$V$200,8,FALSE)-Schedule!$B7,1)*24),"",AvailabilityCheck())

    Pretty sure it's a bracketing issue, but my eyes hurt from looking at it.

    I'm not even sure the formula will do what I want, but I at least need to get it to work.

    Wait a few moments on the reply so I don't feel like a complete idiot.

    Thanks!
    Last edited by ZooTV92; 06-27-2011 at 08:14 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,026

    Re: Formula Has Too Few Arguments....

    If I'm reading that correctly, you have 4 arguments in the first IF condition. Since the formula makes little sense to me, I can't say what it should be. Why is the OR there when you only have one test inside it?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    01-30-2011
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: Formula Has Too Few Arguments....

    The two OR conditions are (or should be):

    (Schedule!$B7<VLOOKUP($J7,EmpInfo!$C$3:$V$200,7,FALSE)

    and

    (IF($F7="close",(MOD($AE$4-$B7,1))*24,(MOD($F7-$B7,1))*24))>=MOD(VLOOKUP($J7,EmpInfo!$C$3:$V$200,8,FALSE)-Schedule!$B7,1)*24)

    Depending on the true/false return, the response would be nothing ("") or to call the function AvailabilityCheck

    Thanks for the response.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,026

    Re: Formula Has Too Few Arguments....

    Then you have closed off the OR too soon - at a quick glance:


    =IF(OR(Schedule!$B7<VLOOKUP($J7,EmpInfo!$C$3:$V$200,7,FALSE),((IF($F7="close",(MOD($AE$4-$B7,1))*24,(MOD($F7-$B7,1))*24))>=MOD(VLOOKUP($J7,EmpInfo!$C$3:$V$200,8,FALSE)-Schedule!$B7,1)*24)),"",AvailabilityCheck())

  5. #5
    Forum Contributor
    Join Date
    01-30-2011
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: Formula Has Too Few Arguments....

    That was it...thank you so much for your help!

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,026

    Re: Formula Has Too Few Arguments....

    Glad to help.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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