+ Reply to Thread
Results 1 to 21 of 21

is there any alternate of sumif(sumproduct?

  1. #1
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    is there any alternate of sumif(sumproduct?

    Hi Guys!

    I am working on lager data and using this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    because of this my file works too slow is there any alternate of above mentioned formula.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: is there any alternate of sumif(sumproduct?

    I'm not sure why you would want both SUMIFS & SUMPRODUCT since the former largely replaced the latter after Excel 2007+

    However upload the workbook and manually add some typical results.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: is there any alternate of sumif(sumproduct?

    actual i am using name ranged

  4. #4
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: is there any alternate of sumif(sumproduct?

    a sample file is attached formula strat from Row No. 18

    this formula makes my excel files slow and hanging.

    Note: in original file i have
    100 Items
    7 Name Range Categories
    12 Months
    4 Quarters
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,365

    Re: is there any alternate of sumif(sumproduct?

    Try

    =SUMPRODUCT(SUMIFS(D$2:D$17,$B$2:$B$17,$B18,$C$2:$C$17,{"Apple","Orange"}))

    OR

    =SUMPRODUCT(SUMIFS(E$2:E$17,$B$2:$B$17,$B18,$C$2:$C$17,$O$3:$O$4))

    to remove the INDIRECTS

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,365

    Re: is there any alternate of sumif(sumproduct?

    ...Or

    Code each group of items so

    Apples and Oranges are 1, Potato and Tomato are 2 etc then just use standard SUMIFS

    =SUMIFS(D$2:D$17,$B$2:$B$17,$B18,$K$2:$K$17,1)
    Attached Files Attached Files
    Last edited by JohnTopley; 01-20-2017 at 01:57 AM.

  7. #7
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: is there any alternate of sumif(sumproduct?

    in sample file i have only 4 items but in original file i have 75 cities and those are grouped east, west, south and north areas. now i want to sum the north area cities in each month.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,365

    Re: is there any alternate of sumif(sumproduct?

    You only have 7 categories so numbering your 100 products will take 10 minutes of your time.

    Changing the formulae provided will take no more.

    Both SUMPRODUCT and INDIRECT together are going to impact performance: removing both should see considerable improvement.

    Add the cities/regions into SUMIFS (that is what it does best).

  9. #9
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: is there any alternate of sumif(sumproduct?

    ok thank you sir. i think i should go manual (A2+A11+A20) this will take some time but excel will work fast! May be?

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,365

    Re: is there any alternate of sumif(sumproduct?

    You can use a lookup table (VLOOKUP) to allocate a category to each product so they don't have to be manually entered.

    If you posted a file which gives a TRUE representation of your data and reports we may be able to offer other solutions.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: is there any alternate of sumif(sumproduct?

    Quote Originally Posted by JohnTopley View Post
    Try

    =SUMPRODUCT(SUMIFS(D$2:D$17,$B$2:$B$17,$B18,$C$2:$C$17,{"Apple","Orange"}))

    OR

    =SUMPRODUCT(SUMIFS(E$2:E$17,$B$2:$B$17,$B18,$C$2:$C$17,$O$3:$O$4))

    to remove the INDIRECTS
    This works too..
    =SUM(SUMIFS($D$2:$D$17,$C$2:$C$17,{"apple","orange"},$B$2:$B$17,$B18))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: is there any alternate of sumif(sumproduct?

    Deleted my duplicate post - which are really becoming tiresome

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,365

    Re: is there any alternate of sumif(sumproduct?

    @Ford,
    Agree re the forum and its performance.

    Re the thread question: I am sure adding an extra column (or two) for categories would be the most efficient way.

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: is there any alternate of sumif(sumproduct?

    Quote Originally Posted by JohnTopley View Post
    @Ford,
    Re the thread question: I am sure adding an extra column (or two) for categories would be the most efficient way.
    Agreed. Often, helpers can save a lot of hassles and increase performance

  15. #15
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: is there any alternate of sumif(sumproduct?

    here is attached file a sample form my original file formula starts from Row No. 1821

    NameRange/Group are from Row 2 to Row 70
    Attached Files Attached Files

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,365

    Re: is there any alternate of sumif(sumproduct?

    See attached using VLOOKUP tables: See Sheet1 columns J to O (could be named ranges)

    I also suggest you use the format is Sheet2. You can add Quarters AND/OR have the 15/16 data in successive rows

    In Sheet2

    C3 (jan 2015)

    =SUMIFS(Sheet1!$D$2:$D$1820,Sheet1!$B$2:$B$1820,$B3,Sheet1!$G$2:$G$1820,C$1)

    C15 (jan 2016)


    =SUMIFS(Sheet1!$E$2:$E$1820,Sheet1!$B$2:$B$1820,$B15,Sheet1!$G$2:$G$1820,C$1)
    Attached Files Attached Files
    Last edited by JohnTopley; 01-20-2017 at 04:42 AM.

  17. #17
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: is there any alternate of sumif(sumproduct?

    any update?

  18. #18
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,365

    Re: is there any alternate of sumif(sumproduct?

    See post 16

  19. #19
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,365

    Re: is there any alternate of sumif(sumproduct?

    See attached Sheet3:


    In C3

    =INDEX(Sheet1!$D$2:$D$1820,MATCH(1,(C$2=Sheet1!$B$2:$B$1820)*(Sheet1!$C$2:$C$1820=$B3),0))

    Enter with Ctrl+Shift+Enter

    Much easier if data collected in this form.
    Attached Files Attached Files

  20. #20
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: is there any alternate of sumif(sumproduct?

    Quote Originally Posted by FDibbins View Post
    Deleted my duplicate post - which are really becoming tiresome
    Tell the forum owner!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  21. #21
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: is there any alternate of sumif(sumproduct?

    thank u guys you are really.......... genius

+ 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] Alternate rows sumproduct
    By spidolster in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-03-2016, 07:39 PM
  2. Replies: 0
    Last Post: 08-17-2012, 02:02 PM
  3. Using Sumproduct function ( Time consuming - any alternate )
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2012, 04:14 PM
  4. Replies: 2
    Last Post: 12-08-2011, 09:07 AM
  5. SUMIF alternate?
    By dannyb0y in forum Excel General
    Replies: 2
    Last Post: 08-30-2011, 01:44 PM
  6. Replies: 2
    Last Post: 10-25-2010, 03:10 PM
  7. Can SUMIF and COUNTIF be used only with alternate cells?
    By random_viper102 in forum Excel General
    Replies: 3
    Last Post: 11-17-2009, 10:04 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