+ Reply to Thread
Results 1 to 4 of 4

Sumproduct condition as range

  1. #1
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Sumproduct condition as range

    I'm trying to make a sumproduct formula that would count several different types of text that is in the CG-type column. I have it working when it looks at only the cells that are in cell P23, but I would to change that to a range of cells or array like P23:P27. Any ideas to make that work.

    Please Login or Register  to view this content.
    I hope that makes sense. Just let me know if not.

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

    Re: Sumproduct condition as range

    You can use MATCH to match against a range of cells like this:

    SUMPRODUCT(--(TEXT(DataTbl[Date],"mmm")=J12),--(YEAR(DataTbl[Date])=J11),--(DataTbl[Group]=H15),--ISNUMBER(MATCH(DataTbl[CG-type],P23:P27,0)))
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Sumproduct condition as range

    Perfect. Thank you so much! That works perfectly for counting. Now, I just modified the formula to sum the voucher counts.

    Please Login or Register  to view this content.
    Can you tell me how to modify that so it works.

    **I marked this thread as solved to soon before editing my reply**
    Last edited by Delta729; 10-21-2017 at 02:41 PM.

  4. #4
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Sumproduct condition as range

    Never mind, I got it. Thanks for your help.

    Please Login or Register  to view this content.

+ 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] dynamic range specification (based on column header) in sumproduct multiple condition
    By anand_erin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-28-2012, 10:16 PM
  3. Replies: 1
    Last Post: 05-19-2012, 02:54 AM
  4. count sumproduct in data range only with condition
    By Armitage2k in forum Excel General
    Replies: 4
    Last Post: 04-19-2012, 11:23 PM
  5. sumproduct with condition
    By fabdav in forum Excel General
    Replies: 2
    Last Post: 01-18-2012, 06:35 PM
  6. Range=Range as condition in Sumproduct
    By osmdian in forum Excel General
    Replies: 1
    Last Post: 08-26-2008, 10:06 AM
  7. sumproduct with condition
    By r4hm4t in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2006, 02:08 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