+ Reply to Thread
Results 1 to 4 of 4

SUMIF combine with different file return VALUE error

  1. #1
    Registered User
    Join Date
    03-08-2017
    Location
    Indonesia
    MS-Off Ver
    2013
    Posts
    2

    SUMIF combine with different file return VALUE error

    Guys, can you help me?
    stuck with SUMIF formula.
    I have 2 excel file. one for compile SUMIF formula (master), and the other one for source value (second).
    first time I open the the master, I can view the SUMIF formula working correctly, but when I edit 1 columns, become error VALUE.
    so, I read from microsoft support forum, the other one (second) must be open. and yap when I open the second file, SUMIF in the master file working correctly.

    can I open the Master file without open the second file and SUMIF working correctly?

    thanks

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: SUMIF combine with different file return VALUE error

    One option is to use SUMPRODUCT (or an array formula) instead of SUMIF - these will work even when the source file is closed

    What's your SUMIF formula?
    Audere est facere

  3. #3
    Registered User
    Join Date
    03-08-2017
    Location
    Indonesia
    MS-Off Ver
    2013
    Posts
    2

    Re: SUMIF combine with different file return VALUE error

    Quote Originally Posted by daddylonglegs View Post
    One option is to use SUMPRODUCT (or an array formula) instead of SUMIF - these will work even when the source file is closed

    What's your SUMIF formula?
    I also try SUMPRODUCT, but not success. maybe there are wrong code.

    this is my SUMIF formula :
    =SUMIF('D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[TAMANSARI.xls]PER TOKO'!$B$1:$B$65536;$B:$B;'D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[TAMANSARI.xls]PER TOKO'!C$1:C$65536)+SUMIF('D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[GOTONGROYONG.xls]PER TOKO'!$B$1:$B$65536;$B:$B;'D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[GOTONGROYONG.xls]PER TOKO'!C$1:C$65536)

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: SUMIF combine with different file return VALUE error

    Quote Originally Posted by greg151091 View Post
    =SUMIF('D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[TAMANSARI.xls]PER TOKO'!$B$1:$B$65536;$B:$B;'D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[TAMANSARI.xls]PER TOKO'!C$1:C$65536)+SUMIF('D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[GOTONGROYONG.xls]PER TOKO'!$B$1:$B$65536;$B:$B;'D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[GOTONGROYONG.xls]PER TOKO'!C$1:C$65536)
    Where you have the whole column B as the criteria you are presumably just using the value from that row, so assuming first formula is in row 2 the SUMPRODUCT equivalent would be as follows:

    =SUMPRODUCT(('D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[TAMANSARI.xls]PER TOKO'!$B$1:$B$65536=B2)+0;'D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[TAMANSARI.xls]PER TOKO'!C$1:C$65536)+SUMPRODUCT(('D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[GOTONGROYONG.xls]PER TOKO'!$B$1:$B$65536=B2);'D:\Document\mas joko\_KUMPULAN\CV_greg\CAITHLYN\[GOTONGROYONG.xls]PER TOKO'!C$1:C$65536)

    SUMPRODUCT will be slower than SUMIF - If you don't really need to reference 65536 rows then it would be better to shorten the range

+ 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] Trying to combine cells to create a file name but get error.
    By OmegaSea in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-09-2015, 05:24 PM
  2. [SOLVED] Return next date and sumif error.
    By kborgers in forum Excel General
    Replies: 7
    Last Post: 11-28-2014, 11:32 AM
  3. Combine VLOOKUP and SUMIF to return sum of user-defined ranges in a table
    By sciondraconis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-27-2014, 03:27 AM
  4. need SUMIF to return error when text is present
    By carsto in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-2012, 03:43 PM
  5. Replies: 3
    Last Post: 04-15-2010, 08:36 PM
  6. Combine SUMIF with IF
    By Isacael in forum Excel General
    Replies: 9
    Last Post: 01-23-2009, 06:46 PM
  7. Combine Sumif
    By moglione1 in forum Excel General
    Replies: 1
    Last Post: 07-18-2006, 08:50 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