+ Reply to Thread
Results 1 to 6 of 6

SumProduct / CountIf Array Error

Hybrid View

  1. #1
    Registered User
    Join Date
    12-16-2011
    Location
    Columbus
    MS-Off Ver
    Excel 2007
    Posts
    76

    SumProduct / CountIf Array Error

    Can you look at Cell E15 of Tab 2 - why is this formula failing?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: SumProduct / CountIf Array Error

    You have #N/A's in column F on the Data Input sheet.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: SumProduct / CountIf Array Error

    Hi,

    all the arguments must have same size

    =SUMPRODUCT(('Data Input'!$F$2:$F$2995=B15)/COUNTIF('Data Input'!$B$2:$B$2995;'Data Input'!$B$2:$B$2995&""))
    Hope it helps
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    12-16-2011
    Location
    Columbus
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: SumProduct / CountIf Array Error

    Thanks - How can there be decimals in Cells E16 and E17 - how can a partial facility be surveyed?
    The formula is pulling unique facility names?
    Attached Files Attached Files

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: SumProduct / CountIf Array Error

    Try this version

    =SUMPRODUCT(('Data Input'!F$2:F$3000=B15)/COUNTIFS('Data Input'!F$2:F$3000,'Data Input'!F$2:F$3000&"",'Data Input'!B$2:B$3000,'Data Input'!B$2:B$3000&""))
    Audere est facere

  6. #6
    Registered User
    Join Date
    12-16-2011
    Location
    Columbus
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: SumProduct / CountIf Array Error

    perfect!

    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