+ Reply to Thread
Results 1 to 7 of 7

How can i convert sumifs to sumproduct

  1. #1
    Registered User
    Join Date
    04-18-2019
    Location
    Istanbul/Turkey
    MS-Off Ver
    Excel 2013
    Posts
    4

    Question How can i convert sumifs to sumproduct

    I started to company as intern engineer.I created to table with SUMIFS and VLOOKUP which is use 15 different source excel file.My problem is SUMIFS function is not working when source files close I got a VALUE! error when I open 15 source files its okay so how can I convert that function to SUMPRODUCT or how can I add source file in to that with macro ?

    Example function of master file;

    =SUMIFS('\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$E:$E;'\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$A:$A;'\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$A$6;'\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$C:$C;'\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$C$247)

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: How can i convert sumifs to sumproduct

    this is my best guess based on what you wrote above, '=sumproduct(('\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$A:$A='\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$A$6)*('\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$C:$C='\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$C$247);'\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$E:$E)
    it works without the referenced sheets in my test workbook.

    And my guess is based on this working... =SUMPRODUCT((A:A=A6)*(C:C=C247),E:E)
    Last edited by Sam Capricci; 04-18-2019 at 09:07 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    04-18-2019
    Location
    Istanbul/Turkey
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: How can i convert sumifs to sumproduct

    Thanks a lot dear Sambo Kid Im gonna try

  4. #4
    Registered User
    Join Date
    04-18-2019
    Location
    Istanbul/Turkey
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: How can i convert sumifs to sumproduct

    Sambo Kid I tried but I got a !REF error

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: How can i convert sumifs to sumproduct

    I was trying my best to copy your referenced locations and I could have made a mistake as there is no way for me to test it.
    That is why I pasted my test version in the post too. The test version worked... =SUMPRODUCT((A:A=A6)*(C:C=C247),E:E)
    I would say to try to base your formula with the referenced workbooks based on the design of that formula.

  6. #6
    Registered User
    Join Date
    04-18-2019
    Location
    Istanbul/Turkey
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: How can i convert sumifs to sumproduct

    I really dont know how to modify that formula Im started to use excel last month and I was using Fx button I can send that files if you want Dear Sambo Kid

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: How can i convert sumifs to sumproduct

    ok, open your reference file(s) and your results workbook (where the formula will be) then in an empty cell (as a test) take the =sumproduct((then point to the section where you are referencing column A:A and reference =$A$6, then close parens) and add the asterisk * then open parens( and your next referenced location which looked like col C:C and add the =$C$247 and close parens) then semicolon and referenced location E:E and close parens again)
    this is what I think it should look like without the outside references... =SUMPRODUCT((TOTAL'!$A:$A=TOTAL'!$A$6)*(TOTAL'!$C:$C=TOTAL'!$C$247);TOTAL'!$E:$E)

    I tried it again, not sure if I made a transposition error the first time but this is what I got trying the whole thing again.
    =SUMPRODUCT(('\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$A:$A='\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$A$6)*('\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$C:$C='\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$C$247);'\\metusrv\GUNCEL DOKUMANLAR\TimeSheet\[TimeSheet_2019_CANERGULER.xlsx]TOTAL'!$E:$E)
    NOW, I'm not 100% sure it will work on closed spreadsheets either, I rarely use external workbooks and most people use some form of indirect when referencing a closed workbook.

+ 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 or SUMPRODUCT
    By altajoy3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-11-2017, 02:14 PM
  2. [SOLVED] SumIfs or Maybe SumProduct
    By 1Stacy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-26-2017, 12:44 PM
  3. Convert SUMPRODUCT to SUMIFS
    By teststrip in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-03-2017, 05:15 PM
  4. What to use Sumifs or SumProduct???
    By vijanita in forum Excel General
    Replies: 3
    Last Post: 08-10-2015, 02:53 PM
  5. [SOLVED] Convert SUMIFS formula to SUMPRODUCT
    By timbury1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-08-2014, 01:18 PM
  6. [SOLVED] SUMPRODUCT v SUMIFS
    By D_N_L in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-24-2013, 09:48 AM
  7. sumifs or sumproduct
    By goodboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2013, 09:53 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