+ Reply to Thread
Results 1 to 15 of 15

Sumproduct with multiple criteria using non numerical values

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Sumproduct with multiple criteria using non numerical values

    I am attempting to count from a spreadsheet the reference number of a customer (numbers and text) based on two criteria.

    1, If column G= Requested
    2, Column I = Meeting

    Count Row E

    I thought a sumproduct was best and have started using it for the first time, I thought this should work but I keep getting a #NUM! error.

    Can anyone suggest a way to makeit work?
    I have tried with numbers and it works but the non numeric aspect is kicking my behind, any help is always appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Sumproduct with multiple criteria using non numerical values

    Forgot to say, I am summing on "Stats" tab and data is in "testimony extract report" tab

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Sumproduct with multiple criteria using non numerical values

    Have you tried to limit the range for instance G:G to G1:G1000?
    Quang PT

  4. #4
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Sumproduct with multiple criteria using non numerical values

    I just did and now I get a 0 but I know there are over 200 rows that meet this criteria?

    Please Login or Register  to view this content.

  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: Sumproduct with multiple criteria using non numerical values

    Hi,

    Are you sure that the rows that you believe meet these criteria actually do? There are no extra spaces in either the search strings in Stats!A2 or Stats!B1 or the ranges being searched, for example?

    Regards
    Click * below if this answer helped

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

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sumproduct with multiple criteria using non numerical values

    that should work providing you are going to sum values in col E(note the reason it gave value error is that pre excel 2007 sumproduct doesn't accept whole range references)
    if you just want to count number of rows wher the 2 criteria are met
    =SUMPRODUCT(('testimony Extract Report'!G2:G1000=Stats!B1)*('testimony Extract Report'!I2:I1000=Stats!A2))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Sumproduct with multiple criteria using non numerical values

    Stats A2 & B1 are copy pastes of the values in extract report and the extract report is a direct pull from sharepoint and is trimmed at source, so no additional spaces pre/post text

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sumproduct with multiple criteria using non numerical values

    whats in column e?

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

    Re: Sumproduct with multiple criteria using non numerical values

    I think we may need to see an actual workbook to see where the issue lies.

    Obviously replace any confidential/sensitive information with dummy data if necessary.

    Regards

  10. #10
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Sumproduct with multiple criteria using non numerical values

    Column E is the unique case reference number (i.e. "CZ64FGB), I have tried it without column E and it works however the case may have multiple parts so some values in column E might be duplicated so if you can work out how to count by Column E unique values it would be very handy to know?

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Sumproduct with multiple criteria using non numerical values

    SUMPRODUCT cannot count unique value. Seem it be a unique value counting with multi-criteria.

  12. #12
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Sumproduct with multiple criteria using non numerical values

    Here is a sample book
    Attached Files Attached Files

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

    Re: Sumproduct with multiple criteria using non numerical values

    Just to be clear: you want a total count of unique column E entries whose corresponding entries in the G and I columns also satisfy the criteria you outline?

    Regards

  14. #14
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Sumproduct with multiple criteria using non numerical values

    Correct-a-mundo

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

    Re: Sumproduct with multiple criteria using non numerical values

    Then you'll need something like this array formula**:

    =SUM(IF(FREQUENCY(IF('testimony Extract Report'!G2:G1000=Stats!B1,IF('testimony Extract Report'!I2:I1000=Stats!A2,MATCH('testimony Extract Report'!E2:E1000,'testimony Extract Report'!E2:E1000,0))),MATCH('testimony Extract Report'!E2:E1000,'testimony Extract Report'!E2:E1000,0)),1))

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

+ 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. ignoring non-numerical values in sumproduct and transpose
    By truedogz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2014, 02:27 AM
  2. SUMPRODUCT using numerical criteria
    By fabrecass in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2013, 07:54 AM
  3. Multiple Criteria - Vlookup for numerical values
    By n_nagesh in forum Excel General
    Replies: 10
    Last Post: 08-28-2009, 08:09 AM
  4. SUMPRODUCT with multiple values for criteria?
    By tangcla in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2009, 05:27 AM
  5. SUMIF with multiple criteria, text and numerical
    By Radman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2008, 12:23 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