+ Reply to Thread
Results 1 to 5 of 5

Attempting a SUMPRODUCT with a count range

  1. #1
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    154

    Attempting a SUMPRODUCT with a count range

    I'm not sure if that's the best descriptor, but this is basically a follow up to this post.

    The difference is that instead of referencing B1 or C1 or D1 (the Job 1, Job 2, or Job 3 criteria) I'm referencing a range of jobs on tab 'Position' for Job 1, Job 2, Job 3. This was similar to some of my other posts, so I think I have to ditch the countifs that I had been using in favor of a SUMPRODUCT. Unfortunately I don't understand that function as well as I should and when I input what I think would work I get a #VALUE! error.

    =SUMPRODUCT(INDIRECT("'"&$K$3&"'!$E:$E"),"<1")*--(ISNUMBER(MATCH(INDIRECT("'"&$K$3&"'!$C:$C"),Position!$A$2:$A$3,0)))

    Can someone help me? I think if I get the first one (the <1) I can figure out the rest (the tenure ranges 1-2, 3-5, etc in column A on tab 'Data').

    If this can be done in a countif that'd be great, but I don't think it can.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    154

    Re: Attempting a SUMPRODUCT with a count range

    Not much of an update, but I think I might be closer(?).

    =SUMPRODUCT(INDIRECT("'"&$K$3&"'!$E:$E")="<1")*--(ISNUMBER(MATCH(INDIRECT("'"&$K$38&"'!$C:$C"),Position!$A$2:$A$3,0)))

    The above formula doesn't give me a #VALUE! error...but it doesn't give me the proper count (3).

    I'm not sure what I'm missing.

    Edit:

    I've also tried this, but this doesn't work either.
    =COUNTIFS(INDIRECT("'"&$K$3&"'!$C:$C"),{"AAAA","BBBB"},INDIRECT("'"&$K$3&"'!$E:$E"),"<1")
    Last edited by Phlegon_of_Tralles; 06-07-2019 at 03:42 PM.

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Attempting a SUMPRODUCT with a count range

    Hi,

    =SUMPRODUCT(COUNTIFS(INDIRECT("'"&$K$3&"'!E:E"),"<1",INDIRECT("'"&$K$3&"'!C:C"),Position!$A$2:$A$3))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    154

    Re: Attempting a SUMPRODUCT with a count range

    You sir or madam, are a genius.

    Actually this forum is filled with geniuses. I'm amazed.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Attempting a SUMPRODUCT with a count range

    High praise indeed!

    You're very welcome!

    Cheers

+ 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. Replies: 1
    Last Post: 12-17-2015, 11:22 AM
  2. [SOLVED] Attempting to highlight transactions across Vendors/Areas/PO Numbers with SUMPRODUCT
    By DaveBre in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-22-2014, 05:41 AM
  3. [SOLVED] Excel Novice - attempting to use SUMPRODUCT/SUMIF/INDIRECT but cell shows #REF
    By mbasi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-17-2013, 05:44 AM
  4. Replies: 8
    Last Post: 05-14-2012, 02:44 PM
  5. count sumproduct in data range only with condition
    By Armitage2k in forum Excel General
    Replies: 4
    Last Post: 04-19-2012, 11:23 PM
  6. SumProduct Formula Count Entries in a range if another range is = 1
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2011, 02:13 PM
  7. Sumproduct with count days in range
    By Sazza in forum Excel General
    Replies: 1
    Last Post: 02-20-2011, 08:32 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