+ Reply to Thread
Results 1 to 11 of 11

Sumproduct help

  1. #1
    Registered User
    Join Date
    03-23-2015
    Location
    London, England
    MS-Off Ver
    2003
    Posts
    5

    Sumproduct help

    Hello,

    I wrote a SUMIFS at home (It took me ages to figure it out) and when I got to work it wouldnt work.

    I have realised that it won't work as I am using excel 2003 at work.

    I think I need to replace it with a SUMPRODUCT, but have no idea if this is possible or where to start.

    Can someone tell me if this is possible and give me some direction please?

    I have got a spreadsheet with each areas predictions of the number of shifts they are going to want per funding stream each week, and want to fill in a table next that what they have actually ordered.

    These are the details:

    I want to populate the ‘Machine Plotter’ tab from the ‘RRVs’ tab.

    I want to count the total number of shifts (Z), for each week (A) for each section (G) by the type of funding. (N)

    And (if possible) I only want to count them if the status (AA) is confirmed, ordered or pending.

    Any help would be much appreciated!Machine TEST 2015-16.xlsxMachine TEST 2015-16.xlsx

  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: Sumproduct help

    Here's a SUMPRODUCT tutorial I wrote. I'll also take a look at your sheet while you look at mine.

    Any SUMIFS formula can be easily rewritten as SUMPRODUCT. What is the original formula you wrote?
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

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

    Re: Sumproduct help

    I came up with C4:

    Please Login or Register  to view this content.
    This sums D, where G is Selection, A is Week Number, N is Fund, Status is (CONFIRMED or ORDERED or PENDING).

    Then just copy down and over as needed.

    When dealing with lengthy formulas, especially SUMIFS, SUMPRODUCT, and the like, it's nice to use Alt+Enter to add arbitrary line breaks to keep things organized.

  4. #4
    Registered User
    Join Date
    03-23-2015
    Location
    London, England
    MS-Off Ver
    2003
    Posts
    5

    Re: Sumproduct help

    Brilliant thanks, I will definitely take a look at the tutorial when the little one has gone to bed. It will definitely make life easier if I understand it.

    And many thanks for providing a formula.

    I pasted this into D4 (Where I want the results for what has been ordered) and I expected the answer to be 5 shifts for Derby OT Project Funded in week 1, however, it returns 2.

    Could I be doing some wrong?

    I will take a proper look at check the obvious later tonight!

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

    Re: Sumproduct help

    D4 in your attachment appears to match up to: Burton / OPEX / 1.

    Did you mean down in D16?

    The formula uses intentional relative referencing and is meant to adjust itself as you copy and paste it around.

    The equivalent formula for D16 would be:

    Please Login or Register  to view this content.
    Notice how the criteria has adjusted itself. The first range criteria now points to $A16, the 2nd points to D$3, the 3rd is $B16 and so on.

    You can use D16 as a launching point, since that formula is "relative" to anywhere else. Copy that cell and paste it into other cells that you want to apply it to; the formula will correct itself. Do not copy the exact formula out of that cell into others, copy the cell.

  6. #6
    Registered User
    Join Date
    03-23-2015
    Location
    London, England
    MS-Off Ver
    2003
    Posts
    5

    Re: Sumproduct help

    Sorry for the confusion, I meant I put the formula in D4 (Burton / OPEX / 1) and dragged it all the way down to D31.

    I thought I would double check a few results - D16 returns 2, however, I thought it would say 5.

    The formula looks exactly the same as the one you have put in for D16

    =SUMPRODUCT((RRVs!$G$2:$G$6000='Machine Plotter'!$A16)*
    (RRVs!$A$2:$A$6000='Machine Plotter'!D$3)*
    (RRVs!$N$2:$N$6000='Machine Plotter'!$B16)*
    (((ISNUMBER(SEARCH("CONFIRMED",RRVs!$AA$2:$AA$6000)))+(ISNUMBER(SEARCH("ORDERED",RRVs!$AA$2:$AA$6000)))+
    (ISNUMBER(SEARCH("PENDING",RRVs!$AA$2:$AA$6000))))>0)*
    (RRVs!$D$2:$D$6000))

    Am I doing something wrong?

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

    Re: Sumproduct help

    It shouldn't be 'exactly' the same from any one cell to the next.

    Untitled.png

    With cell D4 selected, hit F2. Note the cell references which show up.

  8. #8
    Registered User
    Join Date
    03-23-2015
    Location
    London, England
    MS-Off Ver
    2003
    Posts
    5

    Re: Sumproduct help

    Thanks, I didnt mean exactly the same in each cell. I meant the equivalent formula you posted for D16, is the same formula I got in D16, (from copying/dragging the formula from D4 to D31) which returned 2.

    Did you get 5 or 2?

    Is the formula counting the number of occurrences or is it totalling the number of shifts?

    Derby OT / Project / 1 - occurs twice for week 1 with a total of 5 shifts.

    I may have not explained what I wanted clearly enough. Sorry for the confusion if I have asked you incorrectly.

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

    Re: Sumproduct help

    It's summing D. I suppose it should probably be summing Z.

    Change the Column letters in the final expression.

    D16 comes out to 5.

    Toally my fault.

  10. #10
    Registered User
    Join Date
    03-23-2015
    Location
    London, England
    MS-Off Ver
    2003
    Posts
    5

    Re: Sumproduct help

    Brilliant - That works Thanks!!!

    Your help is much appreciated.

    It's so hard to explain exactly what you want over the internet, its hardly surprising it sometimes gets lost in translation.

    I will definitely look at your tutorial later.

    Thanks again for your help!

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

    Re: Sumproduct help

    Sweet. Glad I could help out.

+ 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. Count SUMPRODUCT Members / Average of SUMPRODUCT
    By Shingaru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2014, 03:59 PM
  2. Replies: 1
    Last Post: 05-19-2012, 02:54 AM
  3. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  4. Replies: 6
    Last Post: 03-09-2011, 08:01 AM
  5. Using a SumProduct Count to find a SumProduct Total?
    By XL021710 in forum Excel General
    Replies: 3
    Last Post: 02-18-2010, 08:31 AM

Tags for this Thread

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