+ Reply to Thread
Results 1 to 7 of 7

VLookup or Sumproduct or combined? This is getting out of hand

  1. #1
    Registered User
    Join Date
    01-15-2018
    Location
    Melbourne, Australia
    MS-Off Ver
    2013
    Posts
    4

    Smile VLookup or Sumproduct or combined? This is getting out of hand

    Hi!

    This is my first post, but i have regularly used this forum to figure out my issue, however this one i cannot get and I am hoping for some help.

    I have a sheet that has items on it, that contain ingredients. The ingredients can be in multiple instances.

    On the other sheet i have a schedule of what is to be produced and the qty and this counts the qty required from the first sheet.

    There are 6 different productions so i have listed all indvidually and then done a SUMPRODUCT for each one and added it all together, however this makes it unwieldy. Currently i use =SUMPRODUCT((Master!$A$2:$A$2210=Schedule!$E$1)*(Master!$H$2:$H$2210=Schedule!$A14)*(Master!$L$2:$L$2210)*E$2) and then add the same formula 6 times (for each item being produced) to come up with a total, surely there is a better way?

    I can provide a sample of some data if that helps to understand what I am on about?

    Thanks Grant

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,057

    Re: VLookup or Sumproduct or combined? This is getting out of hand

    Are you saying that

    You have a list of items
    Each item has a list of ingredients, with the quantity needed of each ingredient
    A given ingredient can appear in multiple items
    You want to have another sheet that totals up how much of each ingredient you need to make all of the items

    A sample of data would certainly help, especially since we can't tell what your example formula does without knowing what's in column A, H, L, etc.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-15-2018
    Location
    Melbourne, Australia
    MS-Off Ver
    2013
    Posts
    4

    Re: VLookup or Sumproduct or combined? This is getting out of hand

    Thanks for the response, i have made an example spreadsheet which i will attach, hopefully it should be pretty straight forward, i would like to change the SUMPRODUCT formulas on sheet 1 (schedule) to something more concise as there are going to be 1000's of items looking up this formula.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: VLookup or Sumproduct or combined? This is getting out of hand

    Are the results of formula is Ok.
    For all the formulas in D to M columns the "V" values are refered to the column D only. I feel the "V" valued are to be refered to resective column.
    For Eg in F14 formula should be
    Please Login or Register  to view this content.
    Result is 16.10
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Registered User
    Join Date
    01-15-2018
    Location
    Melbourne, Australia
    MS-Off Ver
    2013
    Posts
    4

    Re: VLookup or Sumproduct or combined? This is getting out of hand

    Ahh yes that is right, the formula in F14 should be attributed to the F column. I must of accidentally changed the formula when i made the example, in my full spreadsheet the formula works however i just want to make it more concise as there will be over 1000 items populating the full spreadsheet.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: VLookup or Sumproduct or combined? This is getting out of hand

    Pl see the file.
    I have changed the format of data in A1:M12 to O1:Y12
    Formula in P12 then copied to other required ranges.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-15-2018
    Location
    Melbourne, Australia
    MS-Off Ver
    2013
    Posts
    4

    Re: VLookup or Sumproduct or combined? This is getting out of hand

    Yes! Thats much better thanks! Why didnt i think of changing those ranges to sequences instead of alternating them.. Thanks again!

+ 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. Help required on Sumproduct and Trim combined
    By sukumar_p2 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-08-2016, 08:37 AM
  2. [SOLVED] LEFT and SUMPRODUCT functions combined
    By DeZeeuw2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-27-2014, 11:36 AM
  3. CountIFS and SUMPRODUCT Combined??
    By nobodyukno in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2013, 01:59 PM
  4. SUMPRODUCT problem combined with filtering
    By Perch in forum Excel General
    Replies: 5
    Last Post: 11-27-2012, 12:04 PM
  5. Sumproduct combined with Sum
    By Exceler in forum Excel General
    Replies: 3
    Last Post: 11-25-2010, 04:14 AM
  6. SUMPRODUCT combined with other functions
    By tweety127 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2008, 12:30 PM
  7. [SOLVED] Can Sumproduct and MAX/MIN be combined?
    By all4excel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-02-2008, 04:47 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