+ Reply to Thread
Results 1 to 11 of 11

Sumif to Sumproduct

  1. #1
    Registered User
    Join Date
    12-01-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2010
    Posts
    15

    Sumif to Sumproduct

    Hi there,

    Would really appreciate some help with this. . .

    I have this sum if formula

    =SUMIF('Production Input'!$B$6:$B$309,$D1,('Production Input'!$J$6:$J$309))

    And am trying to make it into a sumproduct formual that does the same thing as I have learnt that sumif s do not auto update other sheets if they are not open! whereas sumproducts do.

    Would anybody be able to help me convert this as I am not very familiar with the ins and outs of sum Products.

    Thanks for your help!!
    Last edited by smilking; 12-08-2011 at 06:57 AM.

  2. #2
    Registered User
    Join Date
    12-01-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Sumif to Sumproduct

    should probably give a bit more information. . .

    Column B on the 'production input' tab is a list of dates

    cell d1 is the previous working day =WORKDAY(TODAY(),-1)

    So if the date in column B is equal to the date in cell d1, then the information from column J on the 'production input' tab is inputted.

    hope that's right (and makes sense. . . and helps)

    thank you

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sumif to Sumproduct

    Hi smilking.

    Try this.

    =sumproduct(('Production Input'!$B$6:$B$309,=$D1)*('Production Input'!$J$6:$J$309))

    Hope to helps you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

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

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    12-01-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Sumif to Sumproduct

    Hi Fortis,

    Thank you very much for that! I removed the , before D1 and it works like a charm.

    Now hopefully once i have converted all 100 or so SUMIFs to SUMPRODUCTs my other sheet will autopopulate!

    Very appreciative of your help

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sumif to Sumproduct

    Glad to helps you.

    Click the scales to give some Rep if you think an answer deserves it .Click the reputationicon icon . *

    *Mark your thread [SOLVED] if you received your answer

  6. #6
    Registered User
    Join Date
    12-01-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Sumif to Sumproduct

    Done and Done! Thanks again

  7. #7
    Registered User
    Join Date
    12-01-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Sumif to Sumproduct

    one more thing. . . sorry!!

    i have completed one workbook and it is working correctly. . . which is great.

    However I am trying to edit the second workbook now which has this SUMIF formula

    =SUMIF(' Production Input'!$B$67:$B$309,$C3,' Production Input'!$P$67:$P$309)

    I have followed the same layout as the sumproduct above, but it is returning a #value error??


    Do you have any thoughts on that?

    (p.s. there is meant to be a space prior to the 'production input')

  8. #8
    Registered User
    Join Date
    12-01-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Sumif to Sumproduct

    As you can see the SUMIF is doing the same as the one before. . . it just doesnt seem to like being a SUMPRODUCT :-(

    Thanks

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sumif to Sumproduct

    Try this:

    =SUMPRODUCT((' Production Input'!$B$67:$B$309=$C3)*(' Production Input'!$P$67:$P$309))

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

    Re: Sumif to Sumproduct

    #VALUE! error might be caused by multiplying by the sum range, e.g. with this formula

    =SUMPRODUCT((' Production Input'!$B$67:$B$309=$C3)*(' Production Input'!$P$67:$P$309))

    If there is any text in ' Production Input'!$P$67:$P$309, even "null strings" then you get an error. Try a small syntax change

    =SUMPRODUCT((' Production Input'!$B$67:$B$309=$C3)*1,' Production Input'!$P$67:$P$309)
    Audere est facere

  11. #11
    Registered User
    Join Date
    12-01-2011
    Location
    Birmingham
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Sumif to Sumproduct

    Fortis - Thanks once again for getting back to me! I had managed to create that formula and unfortunately the error was still appearing.

    DaddyLongLegs - That moderator title is well earned! By trying your modification to the syntax, the formula now works as hoped. . . Could you possibly explain how that small change alters the formula as I am not quite following how it works. Although, I am loving the fact that it does. I have since used the same modifications where I have tried to use a sumproduct in vain before and it has done the trick. very much in your debt

    Thank you both 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