+ Reply to Thread
Results 1 to 10 of 10

Sumifs Vs Sumproduct

  1. #1
    Registered User
    Join Date
    12-21-2010
    Location
    Oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    30

    Sumifs Vs Sumproduct

    Hello,

    Can anybody help me please ?

    I need to convert a formula i'm using Sumifs excel 2007 to be compatable with excel 2003

    I'm currently using the formula

    =SUMIFS(D:D,A:A,"=BCB12",E:E,"=201005")

    can this be converted to be compatable with excel 2003 ?

    Thank you

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Please help Sumifs Vs Sumproduct

    You can't use SUMIFS in versions earlier than 2007 so you need SUMPRODUCT
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-21-2010
    Location
    Oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Please help Sumifs Vs Sumproduct

    Thanks for your response,

    I understand that SUMIF cannot be used but i cannot seem to recreate the syntax using Sumproduct I Keep getting errors trying to define the criteria.

    Cheers

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Please help Sumifs Vs Sumproduct

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

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

    Re: Please help Sumifs Vs Sumproduct

    With SUMPRODUCT in Excel 2003 you need to use a specific range (not the whole column), so something like this should work

    =SUMPRODUCT(D1:D100,(A1:A100="BCB12")*(E1:E100=201005))

    extend ranges if necessary. I assume that 201005 is numeric, hence no quotes but if column E contains text formatted values you need "201005"
    Audere est facere

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Please help Sumifs Vs Sumproduct

    Just a suggestion. Converting the data to a List would mean you don't need to worry about the data expanding & you can refer to columns in the formula

  7. #7
    Registered User
    Join Date
    12-21-2010
    Location
    Oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Please help Sumifs Vs Sumproduct

    Thanks for your suggestions, I found a way around this using the =sum(( IF (

    Was simply a case of breaking down the SUMIFS into the two seperate functions.

    Thank you

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Please help Sumifs Vs Sumproduct

    Why not post the formula, chances are some other member will benefit. And please never edit a thread in which someone else has responded.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  9. #9
    Registered User
    Join Date
    12-21-2010
    Location
    Oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Please help Sumifs Vs Sumproduct

    Hi Guys,

    Probably wont make a great deal of sense seeing as the document is not available to yourselves but this is the work around.

    =SUM(IF((A6:A27=A6)*(E6:E27=E6),D6:D27,0))

    However this needs to be entered as an array using Ctrl, Shitft and Enter.

  10. #10
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Please help Sumifs Vs Sumproduct

    Non-array formula would be: =SUMPRODUCT((A6:A27=A6)*(E6:E27=E6)*(D6:D27))

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

+ 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