+ Reply to Thread
Results 1 to 3 of 3

Finding out which item has the most and the least cost

  1. #1
    Registered User
    Join Date
    10-02-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Finding out which item has the most and the least cost

    The scenario:
    I have a table with 3 columns, these are item name (A), item quantity (B), cost per item (C), and cost of items (D). The last quantity is just a product of B and C.

    What I want to do:
    I want to find the name of the item that has the the least cost per item (C) and the most cost per item and put the name of the item and cost into a cells. I also want to find the least cost of items (D) and the most cost of items and put the name and the cost into cells.

    What I have tried:
    CELL("address", INDEX(C2:C6,MATCH(MIN(C2:C6),C2:C6,0),1)) gives me the exact cell location which has the least value, in this case if I use this formula in a cell it shows the following in it:
    $C$4

    which is correct. I than tried to use this with the offset formula as in OFFSET( CELL("address", INDEX(C2:C6,MATCH(MIN(C2:C6),C2:C6,0),1)) ,0,-2) but Excel gives me an error. What is the correct way to do this?

    Also suppose that there are multiple items that have the same minimum/maximum cost associated. How do I find out this is the case and how can I find how many items have this minimum/maximum cost, besides this how can I find out the item names in this case and put them into a seperate sheet using excel formula/functions?

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Finding out which item has the most and the least cost

    Try this

    =INDEX(A2:A6,MATCH(MIN(C2:C6),C2:C6,0))
    and
    =INDEX(A2:A6,MATCH(MAX(C2:C6),C2:C6,0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    10-02-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Finding out which item has the most and the least cost

    Yes, it did the trick. I still don't know what is wrong in my previous approach though as CELL("address", INDEX(C2:C6,MATCH(MIN(C2:C6),C2:C6,0),1)) returns coordinates of a cell and OFFSET can accept those coordinates and add an offset value of -2 to it to get me the item name. OFFSET does infact accept things like C4 and $C$4, but in this case it didn't!

    Anyway, how to find if multiple items have this same low cost, count them and put them all into a new sheet inside Excel?

    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] How to calculate the 'net present cost' of an item
    By thetalldude in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-07-2013, 11:38 PM
  2. Calculating total cost from range of cell tally's by cost of item.
    By patrickdjames in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 11-04-2012, 10:27 AM
  3. Replies: 4
    Last Post: 03-20-2012, 10:58 AM
  4. Formula For Total Cost of Increasing Item Cost
    By dwax in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-05-2009, 01:10 PM
  5. Cost of Production (to produce item)
    By 2BitCode in forum Excel General
    Replies: 4
    Last Post: 03-10-2008, 03:42 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