+ Reply to Thread
Results 1 to 5 of 5

COUNTIF embedded in a SUMPRODUCT formula

  1. #1
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    COUNTIF embedded in a SUMPRODUCT formula

    Good evening -
    I have a COUNTIF formula embedded in my SUMPRODUCT formula, and all I get is the #VALUE! output. The COUNTIF works on its own, but it won't work embedded. My challenge is to use the SUMPRODUCT where one of the two Arrays is a word (it's text and not a number). The other Array is a number. As I type I'm thinking I need to convert the text to a number, based on the word. I think I'm confusing myself with the syntax and right way to build the formula. Thanks for any help, in advance.

    The full formula (as I have it now):
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: COUNTIF embedded in a SUMPRODUCT formula

    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Re: COUNTIF embedded in a SUMPRODUCT formula

    You're right about needing a sample worksheet, to properly explain my challenge. I created one, and simplified the code so that there weren't references to other sheets in the book. The code is probably easier to follow, with it being simplified. But it still doesn't work. I think the attached sample highlights my challenge. Thank you!

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: COUNTIF embedded in a SUMPRODUCT formula

    Try this formula in D7 copied across and down

    =SUMIFS($I:$I,$H:$H,D$6,$J:$J,$B7)/SUMIFS($I:$I,$H:$H,D$6)
    Audere est facere

  5. #5
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Re: COUNTIF embedded in a SUMPRODUCT formula

    Wow, daddylonglegs - that worked!! I was making it too complicated. Thank you very much for your help. Have a nice day.

+ 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. CountIf or SumProduct Formula Problem
    By reb2u in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2013, 06:27 PM
  2. Formula Help: Countif or Sumproduct
    By 1979excelhelp in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-19-2011, 04:02 PM
  3. SUMPRODUCT formula with COUNTIF not working
    By Trueman_86 in forum Excel General
    Replies: 2
    Last Post: 07-15-2010, 06:58 AM
  4. formula logic (sumproduct,countif)
    By TROBFP in forum Excel General
    Replies: 1
    Last Post: 04-22-2007, 08:48 PM
  5. Which formula to use? countif, sumif, sumproduct
    By zubee in forum Excel General
    Replies: 3
    Last Post: 09-02-2005, 04:05 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