+ Reply to Thread
Results 1 to 4 of 4

Thread: Sumproduct

  1. #1
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    2007
    Posts
    271

    Lightbulb Sumproduct

    Morning all,

    I have the following sumproduct formula that's providing solid results but I would like to add a 3rd column of criteria. I'v tired with little succes.

    The following formula <=SUMPRODUCT(('IW 38 DUMP for Planning'!$A$1:$A$10000="2A")*('IW 38 DUMP for Planning'!$E1:$E10000={"PAA","RS","RSNR","S","SAM","SAMT","SAO","SAT","SOR","WKS"}))> totals all of the work in plant area "2A", in this case 52 records. I would like it to filter further with values in $H1:$H1000 matching criteria "CONTRACT", "MACH" OR "HTSMET".

    The data is easy to find with pivot tables but I would like to take that manual step out of the reporting being doen from these records.

    Thanks
    Last edited by scaffdog845; 10-26-2009 at 01:22 PM. Reason: Solved

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,129

    Re: Sumproduct issue?

    tRY:

    Code:
    =SUMPRODUCT(('IW 38 DUMP for Planning'!$A$1:$A$10000="2A")*(ISNUMBER(MATCH('IW 38 DUMP for Planning'!$E1:$E10000,{"PAA","RS","RSNR","S","SAM","SAMT","SAO","SAT","SOR","WKS"},0)))*(ISNUMBER(MATCH('IW 38 DUMP for Planning'!$H1:$H10000,{"CONTRACT","MACH","HTSMET"},0))))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    2007
    Posts
    271

    Re: Sumproduct issue?

    Thanks for the reply. It works great. Interesting use of ISNUMBER. I did not realize you could use it to look for text values as well.

  4. #4
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,129

    Re: Sumproduct issue?

    Isnumber() is not looking for text values, it is looking at the result of the MATCH() functions.. which returns numbers (position number) of matches found or #N/A if matches not found... so the check is actually if Matches are found then return position number, and then if the postion number exists (isnumber), then return TRUE
    Last edited by NBVC; 10-26-2009 at 12:54 PM.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0