+ Reply to Thread
Results 1 to 15 of 15

SUMIFS or SUMPRODUCT Help

  1. #1
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    SUMIFS or SUMPRODUCT Help

    I'd like to count certain criteria on a certain month I've included the data but I'm not sure which equation would work best.

    Cells A3:A6 will be the count criteria
    And I'd like it sort by month

    https://www.excelforum.com/attachmen...1&d=1489613280

    Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: SUMIFS or SUMPRODUCT Help

    Hi -

    Copy and paste this to Cell B3 and then copy across and down:

    =SUMPRODUCT(($A3=$B$9:$B$22)*(MONTH(B$2)=MONTH($A$9:$A$22)))

    Note, you will have to change the description in Cell A3 to Product Investigation (see notes) otherwise it won't match the text in your raw data and you will get all zeroes.

    Hope this helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: SUMIFS or SUMPRODUCT Help

    Sorry -

    I guess I didn't really answer your first questions. You can use SUMIFS or SUMPRODUCT. SUMPRODUCT has a little more computational overhead, so for VERY large spreadsheets you might see some performance degradation. However, SUMPRODUCT can work on closed workbooks, so if you data is in a separate file that isn't open, SUMPRODUCT will still work and SUMIFS won't. It's really up to you. I prefer SUMPRODUCT just because that is the function I learned on and it makes sense to me. SUMIFS gives me fits sometimes because the search criteria often seems to be in a string format which I usually need 3 or 4 tries to get it right.

  4. #4
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    Re: SUMIFS or SUMPRODUCT Help

    It does thanks for your help, tell me where do you get training to learn all these equations?

  5. #5
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: SUMIFS or SUMPRODUCT Help

    Years and years and years of using spreadsheets. I started on LOTUS 1-2-3 in 1984 graphing experimental data for one of my engineering professors. I had to teach myself the software and after a while you get pretty good at it. Also, if you have any proficiency at computer programming (C, Fortran, Basic, etc.) you understand a lot of the concepts behind the functions you're using.

    Mostly though, it's just years of using the software. A short course can help get you going too. You can at least see what's possible with the spreadsheets even if you can't exactly remember how to do it.

  6. #6
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    Re: SUMIFS or SUMPRODUCT Help

    I'm getting ghost number where there shouldn't be any data for months that don't have any data, I'm guessing there may be something wrong? Also I noticed that the graph says there are three-dimensional errors but I could only find two.

    https://www.excelforum.com/attachmen...1&d=1489620482
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: SUMIFS or SUMPRODUCT Help

    Hi -

    I see your data set goes over multple years. My previous formula only looked at month, regardless of the year. So, I revised the formula to look at the exact dates including year as follows:

    =SUMPRODUCT(($G7=$C$24:$C$2002)*(H$6<=($A$24:$A$2002))*(EOMONTH(H$6,0)>=($A$24:$A$2002)))

    I have attached your spreadsheet with this formula. I did not see any graphing errors, but if you can give me more specifics on that, I can take another look.

    Hope this helps.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    Re: SUMIFS or SUMPRODUCT Help

    Looks great thanks for your help

  9. #9
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: SUMIFS or SUMPRODUCT Help

    Great! Glad I could help. Please don't forget to mark this thread as SOLVED per the instructions at the bottom of this post!

  10. #10
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: SUMIFS or SUMPRODUCT Help

    Quote Originally Posted by loginjmor View Post
    =SUMPRODUCT(($G7=$C$24:$C$2002)*(H$6<=($A$24:$A$2002))*(EOMONTH(H$6,0)>=($A$24:$A$2002)))
    Hi,

    One more with COUNTIFS:
    =COUNTIFS($C$24:$C$2002,$G7,$A$24:$A$2002,">="&H$6,$A$24:$A$2002,"<="&EOMONTH(H$6,0))

    Regards,
    Khalid

  11. #11
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    Re: SUMIFS or SUMPRODUCT Help

    I don't see anything that says solved!

  12. #12
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: SUMIFS or SUMPRODUCT Help

    Hi @QAGuy,

    Go to the Thread Tool option at header.

    Regards,

  13. #13
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    Re: SUMIFS or SUMPRODUCT Help

    Thanks it's been marked as solved

  14. #14
    Registered User
    Join Date
    04-14-2016
    Location
    Phoenix
    MS-Off Ver
    2010
    Posts
    41

    Re: SUMIFS or SUMPRODUCT Help

    I have a question how would select the data on separate tab? I was thinking about doing this but it doesn't work

    =SUMPRODUCT(($I4=Sheet2!$H$21:$H$1997)*(J$3<=(Sheet2!$B$21:$B$1997))*(EOMONTH(J$3,0)>=(Sheet2!$B$21:$B$1997)))

  15. #15
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: SUMIFS or SUMPRODUCT Help

    Hi -

    Just the same way as setting up SUMPRODUCT the first time. On the attached revised spreadsheet, I moved the data to Sheet 2. Then I just re-wrote the formula, selecting ranges on the other sheet - Excel takes care of the addressing for you in terms of adding Sheet 2!.....

    Try it. Start a simple SUMPRODUCT formula, and select a little bit of the data on the other tab. You will see Excel helps you out with the range addresses.

    Hope this helps!
    Attached Files Attached Files

+ 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. Sumifs & sumproduct not calculating correctly in worksheet
    By Tieddyekid in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-04-2016, 12:50 AM
  2. [SOLVED] Help with SUMIFS or SUMPRODUCT
    By Dan_Ludwig in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-24-2015, 09:35 AM
  3. sumproduct() with sumifs()?
    By hatzopoulos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2015, 02:25 AM
  4. [SOLVED] SUMPRODUCT with SUMIFS?
    By TPDave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2015, 04:30 AM
  5. [SOLVED] SUMPRODUCT v SUMIFS
    By D_N_L in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-24-2013, 09:48 AM
  6. [SOLVED] SUMIFS to SUMPRODUCT
    By plsm5882 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-31-2013, 05:30 PM
  7. [SOLVED] SUMIFS to SUMPRODUCT
    By JungleJme in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-13-2012, 12:14 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