+ Reply to Thread
Results 1 to 8 of 8

MRP BOM/Need Help with sumproduct not reading the complete range.

Hybrid View

DiegoFG MRP BOM/Need Help with... 08-16-2016, 04:24 PM
loginjmor Re: MRP BOM/Need Help with... 08-17-2016, 10:55 AM
A.Clubb Re: MRP BOM/Need Help with... 08-25-2016, 07:31 AM
DiegoFG Re: MRP BOM/Need Help with... 08-25-2016, 10:44 AM
A.Clubb Re: MRP BOM/Need Help with... 08-25-2016, 11:06 AM
DiegoFG Re: MRP BOM/Need Help with... 08-25-2016, 02:31 PM
A.Clubb Re: MRP BOM/Need Help with... 08-30-2016, 07:29 AM
A.Clubb Re: MRP BOM/Need Help with... 09-01-2016, 09:03 AM
  1. #1
    Registered User
    Join Date
    08-15-2016
    Location
    Agua Prieta, Mexico
    MS-Off Ver
    2007
    Posts
    4

    MRP BOM/Need Help with sumproduct not reading the complete range.

    Hello.


    I want to create a simple sheet that will add up all my Bill of materials based on my production plan per day but I have already initiated but I am struggling with the SUMPRODUCT formula, it is not adjusting to my table.

    I have annexed the sheet for your viewing, please help!

    Thank you!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: MRP BOM/Need Help with sumproduct not reading the complete range.

    Hi -

    Part of the problem is SUMPRODUCT needs all of the arrays you are multiplying to be the same size. For example, your formula in cell C915 is:

    =SUMPRODUCT(($C$3:$AV$3=$A915) * ($C$4:$C$456*C$460:C$912))

    The range C3 to AV3 is 46 items. But you are multiplying by ranges that are 452 items (C4 to C456). So SUMPRODUCT doesn't know what to do with any matches beyond 46.

    It's also a little weird to have a horizontal array (C3 to AV3) multiplied by a vertical array (C4 to C456). Not saying you can't do it, but I'm not sure how that works. Usually, all the arrays are the same (either vertical OR horizontal) and when SUMPRODUCT finds a match it multiplies across that row (if they are vertical arrays) or down the column (if they are horizontal arrays).

    Here is a link that explains SUMPRODUCT very well.

    http://xldynamic.com/source/xld.SUMPRODUCT.html

    Hope this helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Registered User
    Join Date
    04-11-2016
    Location
    Daventry, England
    MS-Off Ver
    2016
    Posts
    24

    Re: MRP BOM/Need Help with sumproduct not reading the complete range.

    Hi

    Great question. If you're still looking for a solution, I have some VBA code that you may want to test. My own tests suggest it gives the right answers. I wrote it because I failed to get SUMPRODUCT to work. If you are confident in VBA then you can give it a try, if not then perhaps another reader can find a formula answer.

    Regards
    Alan

  4. #4
    Registered User
    Join Date
    08-15-2016
    Location
    Agua Prieta, Mexico
    MS-Off Ver
    2007
    Posts
    4

    Re: MRP BOM/Need Help with sumproduct not reading the complete range.

    Hi Alan,

    I am not that confident with VBA but I would still like to try it, could you help me set it up?

    In advance many thanks!

  5. #5
    Registered User
    Join Date
    04-11-2016
    Location
    Daventry, England
    MS-Off Ver
    2016
    Posts
    24

    Re: MRP BOM/Need Help with sumproduct not reading the complete range.

    Hi

    Customise the ribbon so that you have Developer on the Main Menu. Click Developer, Visual Basic. Then play with Debug options, F5 runs the whole code straight, F8 lets you step through each line at a time. Be sure to have a backup copy before doing anything!

    Good luck
    Alan
    Attached Images Attached Images

  6. #6
    Registered User
    Join Date
    08-15-2016
    Location
    Agua Prieta, Mexico
    MS-Off Ver
    2007
    Posts
    4

    Re: MRP BOM/Need Help with sumproduct not reading the complete range.

    Hi Alan,

    Sorry to bug you man but my current excel does not have VBA. Any other possible options?

    Thanks for the help!

  7. #7
    Registered User
    Join Date
    04-11-2016
    Location
    Daventry, England
    MS-Off Ver
    2016
    Posts
    24

    Re: MRP BOM/Need Help with sumproduct not reading the complete range.

    Hi

    Every Excel come with VBA as far as I know. Perhaps you have an earlier version but there will be a way to enable it. Other than VBA, I cannot see a solution using formulas to what is a very good question.

    Sorry
    Alan

  8. #8
    Registered User
    Join Date
    04-11-2016
    Location
    Daventry, England
    MS-Off Ver
    2016
    Posts
    24

    Re: MRP BOM/Need Help with sumproduct not reading the complete range.

    Hi DiegoFG

    I have had another look at your problem. Try the attached as a solution without the need for VBA.

    I had to remove the links for the BOM (top) section because they didn't work correctly once downloaded. You'll have to test thoroughly to ensure you get correct answers for each component, each assembly and each day.

    Regards
    Alan

+ 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. Reading in a Range to a Variable
    By svanhauwaert in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-13-2015, 07:45 PM
  2. [SOLVED] Reading a Range of Dates
    By jamesusaf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2012, 04:28 PM
  3. Replies: 7
    Last Post: 09-12-2010, 01:04 AM
  4. Reading in Number Strings with Dashes in SUMPRODUCT
    By rackun in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-23-2008, 01:50 AM
  5. sumproduct - reading a variable value
    By redneck joe in forum Excel General
    Replies: 3
    Last Post: 05-24-2006, 03:02 PM
  6. Reading complete Excel using DDE code
    By amitkrsingh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 10:05 AM
  7. Reading a Range to an Array
    By Kevin H. Stecyk in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-26-2005, 09:06 PM

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