+ Reply to Thread
Results 1 to 5 of 5

Help with If and sum and Vlookup formula

  1. #1
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,221

    Help with If and sum and Vlookup formula

    Hi All

    I have attached a sample file. I need assistance with a complex formula to achieve a required result. Please have a look and see if it can be done.
    1.My workbook consists of 3 sheets. Hist, Ingredients & Prep.
    2. Hist contains the Qty sales of a specific menu item.
    3. Ingredients contains the breakdown of the stock involved for that specific menu item.
    4. Prep contains a stock take of the individual items relating to the sale of the specific menu item.
    5. Prep has a area highlighted in yellow with the required result......This is where the formula needs to be.
    6. The values are as follows:

    6.1. Sirloin 3 as there is 1 with the (1)Chef Steak and 2 with the (2)Surfer Steaks sold
    6.2. Beef Pattie 1 as there is 1 with the (1)Burger sold
    6.3. Rolls 8 as there is 1 with the (1)Burger, 4 with the (2)Full Breakfast Buns and 3 with the (3)Half Breakfast Buns
    6.4. Bacon Portions are 7 as there are 4 with the (2)Full Breakfast Buns and 3 with the (3)Half Breakfast Buns
    6.5. Chip portions are 4 as there is 1 with the (1)Burger and 1 with the 1()Chef's Steak and 2 with the (2)Surfer Steaks.
    6.6. Eggs are 7 as there is 4 with the (2)Full Breakfast Buns and 3 with the (3)Half Breakfast Buns

    Is there a formula that can be used in all the cells to produce this result?
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Help with If and sum and Vlookup formula

    You'll need consistency in the data.

    There are mixed plurals and singulars in ingredient references. When those are reconciled this should be doable.
    Dave

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,221

    Re: Help with If and sum and Vlookup formula

    Hi Dave

    Thank you for your response and for pointing out my error. I have amended the wording and attached a copy of sample file.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-21-2013
    Location
    zimbabwe
    MS-Off Ver
    Excel 2003
    Posts
    124

    Re: Help with If and sum and Vlookup formula

    Formula entered in D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Confirmed with keystroke CTRL+SHIFT+ENTER
    Copy down

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,221

    Re: Help with If and sum and Vlookup formula

    Hi soledad

    Absolutely perfect....Thanks so much. Would never have figured it out...let alone use an array formula.

+ 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. Multiple Vlookup Normal Formula (not array formula) or VBA Function Required
    By BoopathiK in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2015, 03:06 AM
  2. vlookup, index/match formula factoring in time(days) and IF formula
    By rishijain11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2014, 06:37 PM
  3. [SOLVED] Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)
    By akulka58 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2014, 10:42 AM
  4. [SOLVED] VBA code for change vlookup formula to vlookup formula with ISNA
    By erprasannaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2013, 03:33 AM
  5. Vlookup referencing a vlookup formula
    By laurenann in forum Excel General
    Replies: 1
    Last Post: 01-24-2011, 05:52 PM
  6. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  7. vlookup-reate a vlookup formula?
    By Pam C in forum Excel General
    Replies: 1
    Last Post: 03-16-2006, 12:15 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