+ Reply to Thread
Results 1 to 2 of 2

Adding and subtracting set values depending on multiple criteria

  1. #1
    Registered User
    Join Date
    03-12-2015
    Location
    Netherlands
    MS-Off Ver
    2013
    Posts
    36

    Adding and subtracting set values depending on multiple criteria

    Dear Excel enthusiasts,

    Today i come to you for aid in the construction of an excel form i'm making for my work to check if the usage in liquor bottles matches the sales reports.

    As you can see in the example file attached each bottle has 5 categories of which all of them could be present at a set time. Each category also has a weight set to it in a different sheet.

    What i'm looking for is a formula or custom function that does the following:

    1. Find the same item in the sheet that has the weight values in it.
    2. recognize the categories that have a value in them.
    3. sum the weights appointed to the same categories in the weight sheet.
    4. subtract the weight of the "empty bottles" from this weight

    Any help to get me going would be much appreciated. I've been trying to wrap my head around it all day long but writing a decent function is above me and with a normal formula i keep getting errors.

    With kind regards,

    Rekragisao
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,362

    Re: Adding and subtracting set values depending on multiple criteria

    In L6

    =INDEX($B$6:$F$6,MATCH(L$3,$B$3:$F$3,0))-INDEX($G$6:$K$6,MATCH(L$3,$B$3:$F$3,0))

    Copy across

    Format cells as CUSTOM 0;;;@ to "hide" zeros

+ 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. Retrieve Values Depending on Multiple Criteria
    By score in forum Excel General
    Replies: 0
    Last Post: 09-07-2016, 09:52 AM
  2. Replies: 2
    Last Post: 09-06-2015, 12:03 AM
  3. Extract Values Depending on Multiple Criteria
    By jesito in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-19-2015, 09:20 PM
  4. Adding or subtracting depending on value
    By ericbalcom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2015, 12:21 AM
  5. [SOLVED] Adding Values in Multiple Offset Cells depending on the value of a different cell
    By lottidotti in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-19-2012, 11:35 AM
  6. Replies: 2
    Last Post: 10-05-2011, 12:43 PM
  7. Adding values, multiple criteria
    By gdwright07 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2008, 04:42 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