+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT 5 criteria

  1. #1
    Registered User
    Join Date
    04-22-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    59

    SUMPRODUCT 5 criteria

    I have a summary table based on a multiple criteria SUMPRODUCT formula.

    =IF(ISNUMBER(C6),SUMPRODUCT((AMOUNT>=(B6))*(AMOUNT<=(C6))*(CITY=($E$5))),"0")

    The names of the Named ranges (single columns in master sheet) have been renamed to something rather more descriptive than appears in the sheet itself. (DAYS_OLD is also a named range of a column on the master sheet to clarify what follows)

    I have been asked whether it is possible to add an extra layer of counting based on "Days old" column in the master sheet or more precisely between x days old and y days. For example if the amount band was between £1000 to £10000 and the office involved is our London branch then..

    Amount low £1000 Amount High£10000, City=London, "Days old" between 10 & 30
    Amount low £1000 Amount High£10000, City=London, "Days old" =between 30 & 50 and so on...

    The cell references have been removed in favour of the actual amounts to try and make it more transparent.

    I thought if I followed the format of the existing SUMPRODUCT part it might work and ended up with this:

    =IF(ISNUMBER(C6),SUMPRODUCT((AMOUNT>=1000)*(AMOUNT<=10000)*(CITY=($E$5)*SUMPRODUCT(DAYS_OLD>=10)*SUMPRODUCT(DAYS_OLD<=30)),"0")

    I get a value error. I suspect either my asterisk or brackets are in the wrong order?

    All suggestions welcome
    Last edited by coasterman; 08-09-2013 at 02:53 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: SUMPRODUCT 5 criteria

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You had some weird parentheses thrown in and was invoking the SUMPRODUCT() function when you didn't need to.
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Registered User
    Join Date
    04-22-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: SUMPRODUCT 5 criteria

    That certainly looks cleaner. I don't have access to the sheet until I get to to work but will post back once I can try it out. Thanks for the guidance.

  4. #4
    Registered User
    Join Date
    04-22-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: SUMPRODUCT 5 criteria

    Worked perfectly, as I'm sure you knew it would.

    Many thanks

+ 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: 6
    Last Post: 08-04-2013, 11:53 AM
  2. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  3. Replies: 2
    Last Post: 05-25-2010, 06:55 PM
  4. SUMPRODUCT with 3 criteria
    By elad in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2008, 05:05 PM
  5. Sumproduct with 5 criteria
    By jeffg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2007, 10:45 AM

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