+ Reply to Thread
Results 1 to 3 of 3

SUMIF Results - Excel 2010 vs Excel 2013

Hybrid View

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    1

    SUMIF Results - Excel 2010 vs Excel 2013

    I recently upgraded to Excel 2013 and am noticing differences in the values that my SUMIF functions report.

    When I had Excel 2010, sometimes my SUMIF formulas would error out (get a #VALUE I believe) when linking to another workbook if said other workbook was not open. It was easy to fix by opening that other workbook and the error would clear out.

    Now in Excel 2013 I do not get an error - the result that is returned is a zero if the linked workbook is not open. This is a problem because the user may assume the zero is the correct value that is being pulled in from the other workbook when it is not. Is there a way to have Excel keep that last value the SUMIF returned when the workbook was previously saved or will I have to instruct the user to make sure all linked workbooks are open in order to generate accurate results? I often use the linked workbooks as references to point where the data came from and these linked workbooks are most often static - thus not having to open all the linked workbooks would save the user time.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: SUMIF Results - Excel 2010 vs Excel 2013

    You could just use SUMPRODUCT instead of COUNTIF. SUMPRODUCT does not require workbooks be open to work correctly.

    =SUMPRODUCT((criteria range=criteria) * (sum range)) normally SUMs the PRODUCTs of two arrays or matrices, but it can be tricked into only adding up the count of the cells of the criteria.

    So, COUNTIF(A1:A5000,>5) becomes =SUMPRODUCT((A1:A500>5)*1) and does the same thing.

    If you also need it to exclude blanks, just add that as the multiplier instead of 1.

    =SUMPRODUCT((A1:A500>5)*(A1:A500<>"")) This is the COUNT of cells from A1:A500 that are greater than 5 and not blank.

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

    Re: SUMIF Results - Excel 2010 vs Excel 2013

    You can use the SUMPRODUCT function instead of SUMIF.

    SUMPRODUCT will work on closed files.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Replies: 4
    Last Post: 10-12-2013, 12:16 PM
  2. Replies: 10
    Last Post: 08-20-2013, 01:02 PM
  3. Save as fail with excel 2010 and 2013
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-19-2013, 08:18 AM
  4. [SOLVED] Creating scattering chart in excel 2007/2010/2013
    By elad.edri in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-22-2013, 10:02 AM
  5. Replies: 3
    Last Post: 03-29-2013, 12:35 PM

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