+ Reply to Thread
Results 1 to 11 of 11

SUMIFS alternative for excel 2003 - sumproduct not working

  1. #1
    Registered User
    Join Date
    05-25-2009
    Location
    leeds england
    MS-Off Ver
    Excel 2003
    Posts
    8

    SUMIFS alternative for excel 2003 - sumproduct not working

    Hello all

    I have a SUMIFS formula which works in 2007 however I need backward compatibility with excel 2003 as I don't want to have to make 2 versions of the workbook. I've tried entering a sumproduct alternative after researching these forums however it returns the #VALUE error.

    the formula that works in 2007 is:

    Please Login or Register  to view this content.
    the sumproduct alternative which doesn't work :

    Please Login or Register  to view this content.
    any help at all would be greatly appreciated

    Adam
    Last edited by acopley89; 02-28-2011 at 03:28 AM.

  2. #2
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: SUMIFS alternative for excel 2003 - sumproduct not working

    It is an array formula use Ctrl + Shift + Enter to confirm

    Upload an example file with dummy data

    Thanks

    Regards
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  3. #3
    Registered User
    Join Date
    05-25-2009
    Location
    leeds england
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: SUMIFS alternative for excel 2003 - sumproduct not working

    Thank You for your interest mahju. I have attatched a very small portion of the 3 sheets im working with. Also a cell with the sumproduct value error.

    edit: the sumproduct example is attempting the same formula as B9
    Kind Regards
    Adam
    Attached Files Attached Files
    Last edited by acopley89; 02-26-2011 at 11:36 PM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: SUMIFS alternative for excel 2003 - sumproduct not working

    This doesn't resolve your problem but remove the quotes around Control!J40

    Please Login or Register  to view this content.
    I suspect there is a problem in comparing a range to an array. My guess that you are trying to use

    KVS!B1:B1345={"0600","0615","0630","0645"}

    to determine for each element in that range whether it matches any value in the array. I don't think that will work but I do not have an alternative at this time that does.

    Sorry I don't have something more concrete.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Lightbulb Re: SUMIFS alternative for excel 2003 - sumproduct not working

    If you want to sum hourly values in column "C" use separate condition for each quarter You can use sumproduct as well as sum(if entered as array like this

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Both formula showed answer as 6 (2+3+1)

    Regards

  6. #6
    Registered User
    Join Date
    05-25-2009
    Location
    leeds england
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: SUMIFS alternative for excel 2003 - sumproduct not working

    Thanks very much for your help mahju it's perfect!

    edit: this may sound daft but the formula you have me works on the example i sent you, but it doesn't work on the actual sheet after i've changed the array values to A1:A1345 etc etc..

    I get the result 66. however the result should actually be 15 after checking the data manually and looking at the existing sumifs result
    Last edited by acopley89; 02-27-2011 at 02:44 PM. Reason: worked on a dummy spreadsheet but not on the actual

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: SUMIFS alternative for excel 2003 - sumproduct not working

    Try this version

    =SUMPRODUCT((KVS!A1:A1345=Control!J40)*(KVS!B1:B1345={"0600","0615","0630","0645"})*KVS!C1:C1345)

    What sort of values do you have in column B? If those are the only possible value that begin with 06 then this might also work

    =SUMPRODUCT((KVS!A1:A1345=Control!J40)*(LEFT(KVS!B1:B1345,2)="06"),KVS!C1:C1345)

    Note, if you have headers in row 1 then the first formula I sugggested won't work, change the ranges so that they start at the first row with data
    Audere est facere

  8. #8
    Registered User
    Join Date
    05-25-2009
    Location
    leeds england
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: SUMIFS alternative for excel 2003 - sumproduct not working

    in column B the values are all 15 minute period timestamps 0000, 0015, 0030, 0045 etc etc. column a are all dates formatted as : 20110220. the idea is having a sheet consolidate all the 15 minute periods to hourly periods. I tried both of your formulae but they both returned 0.

    I have attached the actual sheet im working from, just to see if there is anything in there you might notice that's stopping them from working.

    The sheet which i've attempted the alternate formula on is 'Monday'.

    edit: because the data is now from the previous week. in the control sheet. the dates in column I will all need an extra -7 applying to them.

    Regards
    Adam
    Attached Files Attached Files
    Last edited by acopley89; 02-27-2011 at 08:14 PM.

  9. #9
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: SUMIFS alternative for excel 2003 - sumproduct not working

    Try this version:
    =SUMPRODUCT((KVS!$A$1:$A$1345=Control!J$40+0)*(ISNUMBER(MATCH(KVS!$B$1:$B$1345,{"0600","0615","0630","0645"},0))*KVS!$C$1:$C$1345))

    Control!J40 seems to be text, not a number.

  10. #10
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: SUMIFS alternative for excel 2003 - sumproduct not working

    ...or this version in Monday B3 copied down. The time values are taken from column A so you don't need to change the formula

    =SUMPRODUCT((KVS!A$1:A$1345=Control!J$40+0)*(LEFT(KVS!B$1:B$1345,2)=LEFT(A3,2)),KVS!C$1:C$1345)

  11. #11
    Registered User
    Join Date
    05-25-2009
    Location
    leeds england
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: SUMIFS alternative for excel 2003 - sumproduct not working

    Spot on that one daddylonglegs. Thanks very much

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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