+ Reply to Thread
Results 1 to 5 of 5

Formula to sum item costs based on item library

  1. #1
    Registered User
    Join Date
    02-06-2016
    Location
    Denmark
    MS-Off Ver
    2010
    Posts
    28

    Formula to sum item costs based on item library

    Hi excel masterminds.

    I have attached a sample workbook regarding my question.

    I have a large spreadsheet consisting of 40 departments, all using the same items (all have ID's that are texts, in the sample WB they are named A-Z).
    In Sheet 2, I have all the departsments, one column for each, listing their items used in a given timeframe.

    I need a formula that can sum the item costs for the items used per department - with the item costs being determined by a list in another sheet.
    In other words, I need a formula which checks the column for items (sheet 2), then looks up the 'item library' and sums the cost based on the item-cost values listed in the library (sheet 1).
    There can be multiple items listed in one column and each listing needs to be included.

    I know that I can create a "helper" column next to each department, with an INDEX-MATCH function to find the item cost, but I would prefer to avoid expanding the spreadsheet (simply due to it already being rather moderate in size).

    Regards,
    Fno
    Attached Files Attached Files
    Last edited by Fno; 05-12-2017 at 02:17 PM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Formula to sum item costs based on item library

    Paste into A13 and drag across:

    Please Login or Register  to view this content.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    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,206

    Re: Formula to sum item costs based on item library

    In A13

    =SUMPRODUCT(SUMIF('Ark1'!$A$2:$A$27,'Ark2'!A2:A7,'Ark1'!$B$2:$B$27))

    change highlighted range for other 2 totals

  4. #4
    Registered User
    Join Date
    02-06-2016
    Location
    Denmark
    MS-Off Ver
    2010
    Posts
    28

    Re: Formula to sum item costs based on item library

    Works like a charm, cheers!

  5. #5
    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,206

    Re: Formula to sum item costs based on item library

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Formula needed - line item of unique item matching criteria
    By NS4Excel in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-18-2015, 06:32 PM
  2. Automatically Input Cost of Item Based on Item Name?
    By boba7523 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-05-2014, 01:44 AM
  3. [SOLVED] Filter by item, based on max value for that item ??
    By msuspartans in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2013, 08:49 PM
  4. Dividing shipping costs per line item
    By BrianKusch in forum Excel General
    Replies: 1
    Last Post: 02-28-2012, 09:50 PM
  5. Taking the next item in a list into 1 of 2 tables based on the previous item time
    By SoleAris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2011, 04:59 PM
  6. Replies: 8
    Last Post: 08-06-2010, 07:27 AM
  7. Calculate item costs
    By invisible_hawk in forum Excel General
    Replies: 1
    Last Post: 09-07-2008, 11:57 AM

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