+ Reply to Thread
Results 1 to 4 of 4

SUMIF Matrix formula -> get data from external (closed) data sheet

  1. #1
    Registered User
    Join Date
    06-15-2016
    Location
    Vienna
    MS-Off Ver
    2013
    Posts
    2

    SUMIF Matrix formula -> get data from external (closed) data sheet

    Hi all,

    I really hope someone can help, I have the following problem:

    I have two seperate files, and I would like to insert the data from one (keymetrics_201604.xlsx) into the other (roi_overview.xlsx).
    Doing this by sumif formula both files need to be opened, that's why I have tried to create a matrix-formula using sum & if function but this doesn't work.

    My formula looks like this:
    {=SUMME(WENN([keymetrics_201604.xlsx]Dataset1!$B:$B="*Carin*";[keymetrics_201604.xlsx]Dataset1!$C:$C))}
    the result shown = 0

    but this isn't right. When I use a normal sumif formular, I get the right results.

    Is the matrix formula I use wrong? Is there a mistake?
    Or is there any other way to get the data I wan't -> fe VBA to insert the according data?

    Thank you for your support.

    Best wishes
    Martina

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

    Re: SUMIF Matrix formula -> get data from external (closed) data sheet

    Use the SUMPRODUCT function. It will work on closed files.

    Dataset1!$B:$B="*Carin*"

    Are the * being used as wildcards or the literal character?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    06-15-2016
    Location
    Vienna
    MS-Off Ver
    2013
    Posts
    2

    Re: SUMIF Matrix formula -> get data from external (closed) data sheet

    Hi,

    thanky for your fast response.

    * are used as wildcards, I am not quite sure how to change the formula to sumproduct-formula to get the result that I would get using sumif...
    could you probably help me here?

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

    Re: SUMIF Matrix formula -> get data from external (closed) data sheet

    Like this...

    =SUMPRODUCT(--ISNUMBER(SEARCH("Carin";'[keymetrics_201604.xlsx]Dataset1'!$B1:$B100));'[keymetrics_201604.xlsx]Dataset1'!$C1:$C100)

    You should avoid using entire columns as references in the SUMPRODUCT function. Use smaller specific ranges.

+ 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] SUMIF Returns a #VALUE error when external source is closed
    By ghynes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  2. SUMIF Returns a #VALUE error when external source is closed
    By ghynes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  3. [SOLVED] SUMIF Returns a #VALUE error when external source is closed
    By Julieeeee in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 09:05 AM
  4. [SOLVED] SUMIF Returns a #VALUE error when external source is closed
    By ghynes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  5. [SOLVED] SUMIF Returns a #VALUE error when external source is closed
    By ghynes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  6. [SOLVED] SUMIF Returns a #VALUE error when external source is closed
    By ghynes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. SUMIF Returns a #VALUE error when external source is closed
    By ghynes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  8. [SOLVED] SUMIF Returns a #VALUE error when external source is closed
    By ghynes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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