+ Reply to Thread
Results 1 to 4 of 4

Error when using SUMIF in 2013

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    Cheshire, England
    MS-Off Ver
    Excel 2023
    Posts
    1

    Question Error when using SUMIF in 2013

    I am using the following formula in Excel 2013:

    =SUMIF(Text($A$10:$A$23,"ddd"),$S$2,$H$10:$H$23)

    The error says I must must put an apostrophe(') first:

    Can't work this out, can you help please:

    FYI

    $A10:$A23 is a date

    $S$2 is = "Fri"

    H10:H23 are Numbers to add when A10:A23 equals Fri

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Error when using SUMIF in 2013

    Change it to sumproduct.

    =SUMPRODUCT(1*(TEXT($A$10:$A$23,"ddd")=$S$2),$H$10:$H$23)

    It is not an excel 2013 problem because Text() Function with multiple cells as conversion range under sumif won't do the expected multi tasking job


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Error when using SUMIF in 2013

    Hi,

    The syntax of SUMIF does not allow you to do this. You'll need SUMPRODUCT, e.g.:

    =SUMPRODUCT((TEXT($A$10:$A$23,"ddd")=$S$2)*$H$10:$H$23)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Error when using SUMIF in 2013

    Please Login or Register  to view this content.
    edit: Heh, exactly the same answer

    so let me give also another one - you can use array formula (accept with Ctrl+shift+Enter rather than just Enter):

    Please Login or Register  to view this content.
    Looks similar to original one, doesnt it ?
    Last edited by Kaper; 01-09-2014 at 07:43 AM. Reason: added another solution wit array formula

+ 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. Excel.Application on 2013 Error
    By ryanlcs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2013, 06:23 AM
  2. Replies: 3
    Last Post: 09-12-2013, 06:23 PM
  3. VBA Run-time error '91' In Excel 2013
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-12-2013, 09:28 AM
  4. excel 2013 32bit error
    By ggomez43 in forum Excel General
    Replies: 0
    Last Post: 08-22-2013, 03:20 PM
  5. [SOLVED] VBA error in excel 2013
    By zepp in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2013, 02:47 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