+ Reply to Thread
Results 1 to 8 of 8

Sumproducts or sumifs to enhance the results

  1. #1
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    390

    Sumproducts or sumifs to enhance the results

    Date SB KTY KBT CD DDTY FDR
    01-10-2015 25 36 20 34 37 32
    30-09-2015 33 44 20 26 29 32
    05-11-2015 41 52 20 18 21 32
    31-12-2015 49 60 20 10 13 32
    31-10-2015 57 68 20 2 5 32
    05-03-2014 65 76 20 -6 -3 32

    Answer How I can get these results
    Date 31-12-2015
    Total
    69 SB KBT
    105 FDR DDTY KTY
    10 CD


    I used Forumula
    49
    0
    0
    '=SUMPRODUCT((A3:A8=B11)*(B2:G2=B13:G13)*(B3:G8))

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Sumproducts or sumifs to enhance the results

    Try only in your formula changes

    For first condition SB KBT =SUMPRODUCT((A2:A8=B11)*(B1:G1=B12)*(B2:G8))+SUMPRODUCT((A2:A8=B11)*(B1:G1=D12)*(B2:G8)) or =SUMIFS(INDEX(B2:G7,,MATCH(B12,B1:G1,0)),A2:A7,B11)+SUMIFS(INDEX(B2:G7,,MATCH(D12,B1:G1,0)),A2:A7,B11)

    For Second Condition =SUMPRODUCT((A2:A8=B11)*(B1:G1=C12)*(B2:G8))+SUMPRODUCT((A2:A8=B11)*(B1:G1=F12)*(B2:G8))+SUMPRODUCT((A2:A8=B11)*(B1:G1=G12)*(B2:G8)) or =SUMIFS(INDEX(B2:G7,,MATCH(C12,B1:G1,0)),A2:A7,B11)+SUMIFS(INDEX(B2:G7,,MATCH(F12,B1:G1,0)),A2:A7,B11)+SUMIFS(INDEX(B2:G7,,MATCH(G12,B1:G1,0)),A2:A7,B11)

    For Third Condition =SUMPRODUCT((A2:A8=B11)*(B1:G1=E12)*(B2:G8)) or =SUMIFS(INDEX(B2:G7,,MATCH(E12,B1:G1,0)),A2:A7,B11)

    Recommended way

    Assuming your data start with A1 to G7 and your first criteria which date is in B11 cell and second criteria which is {"SB","KTY","KBT","CD","DDTY","FDR"} in B12:G12

    Try



    B13=SUMPRODUCT(($A$2:$A$7=$B$11)*($B$1:$G$1=B$12)*($B$2:$G$7)) and drag towards the cell

    make helper column naming SB+KBT in I12, KTY+DDTY+FDR in J12 & CD in K12 cell

    Add the particular cells as you want.

    Check the attached file,
    Attached Files Attached Files
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    390

    Re: Sumproducts or sumifs to enhance the results

    Thanks for reply
    but this is dummy data
    Your solutions won't solve the issue bcoz I have 179 header columns so as per your solution it will not permissible due to excel limitations
    Please urgent help required .........


    Thanks in advance

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Sumproducts or sumifs to enhance the results

    can you provide your workbook here??

  5. #5
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    390

    Re: Sumproducts or sumifs to enhance the results

    I have attached few data for your perusal.
    in Book 1 Sample Sheet

    Please check this
    Attached Files Attached Files

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Sumproducts or sumifs to enhance the results

    It is the same file what i have uploaded in post#2

  7. #7
    Registered User
    Join Date
    01-03-2012
    Location
    Baghdad, Iraq
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Sumproducts or sumifs to enhance the results

    Use this function
    =SUMPRODUCT((A2:A7=A5)*(B2:G7)*((B1:G1="FDR")+(B1:G1="DDTY")+(B1:G1="KTY")))
    change this part as requared
    ((B1:G1="FDR")+(B1:G1="DDTY")+(B1:G1="KTY"))

  8. #8
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    390

    Re: Sumproducts or sumifs to enhance the results

    I have used this & its worked

    A11 =SUMPRODUCT(($A$2:$A$7=$B$9)*(($B$1:$G$1=B11)+($B$1:$G$1=C11)+($B$1:$G$1=D11)),$B$2:$G$7) copy down

+ 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. [SOLVED] how to split date results with SUMIFS
    By graphicjunkie in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 10-03-2015, 04:18 PM
  2. Sumifs returning inconsistent results
    By WilliamWelch in forum Excel General
    Replies: 9
    Last Post: 03-26-2015, 05:08 PM
  3. Inaccurate results of SUMIFS and SUM function
    By Ganesh7299 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2013, 11:13 AM
  4. Filtering data from the results of a sumifs formula
    By marks_28 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2013, 11:55 AM
  5. [SOLVED] Combining correlation results and SumIFs
    By ilikeexcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2012, 10:02 AM
  6. Replies: 3
    Last Post: 05-26-2012, 08:02 AM
  7. Results of 'Enhance VB Project Security' post
    By ern2ern in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2007, 09: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