+ Reply to Thread
Results 1 to 6 of 6

Convert SUMPRODUCT to SUMIFS

  1. #1
    Registered User
    Join Date
    05-28-2014
    Posts
    18

    Convert SUMPRODUCT to SUMIFS

    Have a formula that has been working for me for several years. Recently, I upgraded from Excel for Mac 14.5.3 to Office 365 and my sumproduct formula's are now producing a #value!.

    Maybe a good time to upgrade the formula to SUMIFS. Here is my current formula. Anyone have a good conversion to SUMIFS? Or a solution to the #value! in office 365?

    SUMPRODUCT((INT($A$3:$A1083)=INT($A1083))*(JM$3:JM1083))+SUMPRODUCT((INT($A$3:$A1083)=INT($A1083))*(JN$3:JN1083))+SUMPRODUCT((INT($A$3:$A1083)=INT($A1083))*(JJ$3:JJ1083)))

    Thank you in advance!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Convert SUMPRODUCT to SUMIFS

    All the xxIF functions require ranges as arguments in certain positions, so you can't perform those INT functions, e.g.,

    =SUMIF(INT($A$3:$A1083), INT($A1083), JM$3:JM1083)

    ... won't work.

    I don't use Office365, but am certain that nothing has changed to make that formula not work. I expect you have an errant value in one of those ranges.
    Last edited by shg; 04-03-2017 at 02:59 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Convert SUMPRODUCT to SUMIFS

    Which brings us to why your formulas are giving you an error. The most likely possibility is that somewhere in JM3:JM1083, there is text.

    Try this modification

    SUMPRODUCT(--(INT($A$3:$A1083)=INT($A1083)), (JM$3:JM1083))+SUMPRODUCT(--(INT($A$3:$A1083)=INT($A1083)),(JN$3:JN1083))+SUMPRODUCT(--(INT($A$3:$A1083)=INT($A1083)), (JJ$3:JJ1083)))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Convert SUMPRODUCT to SUMIFS

    Or get rid of the errant values and simplify to

    =SUMPRODUCT((INT($A$3:$A1083) = INT($A1083)) * (JM$3:JM1083 + JN$3:JN1083 + JJ$3:JJ1083))

  5. #5
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: Convert SUMPRODUCT to SUMIFS

    Maybe this works...

    =SUMIFS(JM$3:JM1083,A$3:A1083,">="&INT(A1083),A$3:A1083,"<"&INT(A1083)+1)+SUMIFS(JN$3:JN1083,A$3:A1083,">="&INT(A1083),A$3:A1083,"<"&INT(A1083)+1)+SUMIFS(JJ$3:JJ1083,A$3:A1083,">="&INT(A1083),A$3:A1083,"<"&INT(A1083)+1)

    M.
    Last edited by mlcb; 04-03-2017 at 05:10 PM. Reason: adjust ranges
    Marcelo Branco

  6. #6
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: Convert SUMPRODUCT to SUMIFS

    I think the solution suggested by shg in post # 4 is the best (faster)

    M.

+ 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] SUMIFS or SUMPRODUCT Help
    By QAGuy in forum Excel General
    Replies: 14
    Last Post: 03-17-2017, 02:06 PM
  2. [SOLVED] SUMPRODUCT with SUMIFS?
    By TPDave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2015, 04:30 AM
  3. [SOLVED] Convert SUMIFS formula to SUMPRODUCT
    By timbury1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-08-2014, 01:18 PM
  4. [SOLVED] SUMPRODUCT(SUMIFS) How do I use them?
    By boon-yao.tek in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-20-2013, 05:10 AM
  5. sumifs or sumproduct
    By goodboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2013, 09:53 AM
  6. Sumifs Vs Sumproduct
    By _Lewis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-21-2010, 11:28 AM
  7. Sumproduct/sumifs?
    By MjRmatt in forum Excel General
    Replies: 4
    Last Post: 07-30-2010, 08:09 AM

Tags for this Thread

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