+ Reply to Thread
Results 1 to 11 of 11

too many arguments for this function in IF formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    too many arguments for this function in IF formula

    I am having a problem where when I enter in the below formula I get an error message saying I`ve entered too many arguments for this function.

    =COUNTA('TAB2'!H3:L3,'TAB2'!P3:U3,'TAB2'!Y3:AC3,'TAB2'!AG3:AI3,'TAB2'!AM3:AQ3)/COLUMNS('TAB2'!H3:L3,'TAB2'!P3:U3,'TAB2'!Y3:AC3,'TAB2'!AG3:AI3,'TAB2'!AM3:AQ3)

    Can anyone help me?
    Thank you

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: too many arguments for this function in IF formula

    What is this? COLUMNS

    What are you trying to do?
    HTH
    Regards, Jeff

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: too many arguments for this function in IF formula

    need to know exactly what you are trying to accomplish here...looks like you are trying to count non blank cells in rows, from several worksheets, then divide that by some value calculated from several several rows/worksheets?

  4. #4
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    Re: too many arguments for this function in IF formula

    so i`m trying to work out the % of cells completed in a separate tab...

  5. #5
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: too many arguments for this function in IF formula

    Well, would need a sample of what you have, with what the problem is and what you expect to see...what you put in original post is pretty vague and without some supporting info, I can't figure out what you are looking for..sorry

  6. #6
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    Re: too many arguments for this function in IF formula

    sorry, here is an example. I need to calculate the % of cells completed in the second tab but i only want to take into account the columns that are not pink....does that make sense? and when i mean complete i mean not blank!!!!
    Attached Files Attached Files

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: too many arguments for this function in IF formula

    Quote Originally Posted by ea223 View Post
    I get an error message saying I`ve entered too many arguments for this function.

    =COUNTA('TAB2'!H3:L3,'TAB2'!P3:U3,'TAB2'!Y3:AC3,'TAB2'!AG3:AI3,'TAB2'!AM3:AQ3)/COLUMNS('TAB2'!H3:L3,'TAB2'!P3:U3,'TAB2'!Y3:AC3,'TAB2'!AG3:AI3,'TAB2'!AM3:AQ3)
    The error was caused due to the multiple ranges in single COLUMNS function.
    Formula: copy to clipboard
    COLUMNS('TAB2'!H3:L3,'TAB2'!P3:U3,'TAB2'!Y3:AC3,'TAB2'!AG3:AI3,'TAB2'!AM3:AQ3)


    The above formula should be written as
    Formula: copy to clipboard
    =(COLUMNS('tab2'!H3:L3)+COLUMNS('tab2'!P3:U3)+COLUMNS('tab2'!Y3:AC3)+COLUMNS('tab2'!AG3:AI3)+COLUMNS('tab2'!AM3:AQ3))


    Hope this helps!
    Last edited by :) Sixthsense :); 10-28-2012 at 11:47 PM. Reason: Formula Tag Applied


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  8. #8
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: too many arguments for this function in IF formula

    okay, I loaded your example, have got some drop down lists for each column, but no data or formulas to SEE what you are trying to accomplish, maybe i'm missing something, but i think you'll need to talk to someone else, sorry if you feel I am wasting your time, but i have no idea what i'm dealing with here..

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: too many arguments for this function in IF formula

    it would have been better if you had actually populated you're sample with some data.

    this isnt pretty, but give it a shot...

    =SUM('tab2'!B2:G2,'tab2'!I2:M2,'tab2'!O2:S2,'tab2'!U2:Y2,'tab2'!AA2:AE2,'tab2'!AG2:AK2,'tab2'!AM2:AQ2,'tab2'!AS2:AV2)=COUNTA('tab2'!B2:G2,'tab2'!I2:M2,'tab2'!O2:S2,'tab2'!U2:Y2,'tab2'!AA2:AE2,'tab2'!AG2:AK2,'tab2'!AM2:AQ2,'tab2'!AS2:AV2)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: too many arguments for this function in IF formula

    Copy and paste the below formula in A2 cell of Tab1

    Formula: copy to clipboard
    =COUNTA('tab2'!B2:G2,'tab2'!I2:M2,'tab2'!O2:S2,'tab2'!U2:Y2,'tab2'!AA2:AE2,'tab2'!AG2:AK2,'tab2'!AM2:AQ2,'tab2'!AS2:AV2)/(COLUMNS('tab2'!B2:G2)+COLUMNS('tab2'!I2:M2)+COLUMNS('tab2'!O2:S2)+COLUMNS('tab2'!U2:Y2)+COLUMNS('tab2'!AA2:AE2)+COLUMNS('tab2'!AG2:AK2)+COLUMNS('tab2'!AM2:AQ2)+COLUMNS('tab2'!AS2:AV2))


    Drag the A2 cell formula down.

    Format the Column-A as Percentage.

    Hope this helps!
    Attached Files Attached Files
    Last edited by :) Sixthsense :); 10-29-2012 at 12:26 AM. Reason: Attachment Included

  11. #11
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    Re: too many arguments for this function in IF formula

    perfect thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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