+ Reply to Thread
Results 1 to 2 of 2

Too many arguments for this function error

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    NM
    MS-Off Ver
    Excel 2007
    Posts
    1

    Too many arguments for this function error

    Excel 2007 keeps tellign me I entered too many arguments for this formula:

    =IF(ISNUMBER(SEARCH("F",IF(ISNUMBER(SEARCH("SP",mergedText('CV-22 Wkly Checkerboard'!$C$7))),if('Wkly Fly Sched'!$C$4="SP", “SP”, mergedText('CV-22 Wkly Checkerboard'!$C$7), mergedText('CV-22 Wkly Checkerboard'!$C$7))),'Wkly Fly Sched'!$C$4,mergedText('CV-22 Wkly Checkerboard'!$C$7))

    The purpose is to check the checkerboard sheet for one of either two text values, "f" or "SP". If the cell text value starts with an "F" it then reads the values from the wkly fly sched sheet, if flase it uses the values in the checkerboard. If it is a "SP" then it cross checks the fly sched sheet to verify that it contains the text "SP" if so it defualts to "SP" else it reads the values from the checkerboard.

    The mergedText is a user defined function to read the values of merged cells in the checkerboard sheet. I have no control over the way the checkerboard is built, we simply paste that data in from the original workbook, which is why I had to use a mergedtext function.

    ---------- Post added at 08:45 AM ---------- Previous post was at 08:33 AM ----------

    Problem solved. I also had my flaw in my logic flow for the desired outcome.

    =IF(ISNUMBER(SEARCH("F",mergedText('CV-22 Wkly Checkerboard'!C7))),IF('Wkly Fly Sched'!C4="", " ", 'Wkly Fly Sched'!C4),IF(AND(mergedText('CV-22 Wkly Checkerboard'!C7)="SP",'Wkly Fly Sched'!C4<>""),IF('Wkly Fly Sched'!C4="", " ", 'Wkly Fly Sched'!C4),IF(AND('Wkly Fly Sched'!C4=""),mergedText('CV-22 Wkly Checkerboard'!C7),mergedText('CV-22 Wkly Checkerboard'!C7))))
    Last edited by cyberjoe; 08-03-2012 at 11:49 AM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Too many arguments for this function error

    @ cyberjoe

    Based on your last post it seems that you solved your problem on your own but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ 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