+ Reply to Thread
Results 1 to 8 of 8

Grouping all values based on a specific Minimum

  1. #1
    Registered User
    Join Date
    04-02-2008
    Posts
    26

    Grouping all values based on a specific Minimum

    Hello,

    Not sure how to word this to be completely clear, but here goes:

    I am analyizing a breakdown of cost bids for several different vendors where Manufacturing is the most important data. Here are the different cost values reviewed:
    (For Vendor1) Plate cost, Mfg Cost, Paper Cost, (For Vendor2) Plate Cost, Mfg Cost, Paper, (etc.)

    I would like to have a column that provides the min pricing based on lowest Mfg Cost. The simple part is getting the minimum for manufacturing based on the Min formula =MIN(J5,Q5,X5,AE5,AL5,AS5,AZ5,BG5,BN5...).

    The hard part is how can I then have the paper and plate cost for that vendor with the lowest manufacturing cost be also brought into the lowest cost pricing column? This can be done manually, but unfortunately do to changes in pricing from vendor to vendor, it will keep changing in the future.

    I hope this is clear. Any help is greatly appreciated.

    Thanks,
    Award.
    Last edited by eldwardo; 04-22-2008 at 02:42 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Your setup makes it a little tricky, multiple venders in the same row but here's the formula I came up with....

    1. Not sure why there are 7 columns between fields. I assume there are other catagories besides the 3 you mentioned. I assume that the Plate cost is just to the left of the manf cost and that paper cost is to the right.

    For Manf cost;
    Please Login or Register  to view this content.
    For paper cost;
    Please Login or Register  to view this content.
    Is that what you are looking for?

    ChemistB
    Last edited by ChemistB; 04-22-2008 at 03:43 PM.

  3. #3
    Registered User
    Join Date
    04-02-2008
    Posts
    26
    That worked perfectly! Thanks a bunch. I hate to ask this, but I would love to be able to understand this enough to continue using it in the future. Would you mind breaking this down to help me understand it better? As in, what does the 5:5 refer (is that row?), then the 1, then back to 5:5, 0?

    I assume the -1 and +1 refer the box to the left or right, so if I needed to include any other fields beyond the initial, I would need to do +2 or -2, etc.

    You are correct on there being add'l fields. There are 7, but the others are analysis based on those 3 fileds.

    One other thing I just thought of: what would happen if I have multiple vendors with the same MFG cost, but different paper, plate, etc cost? Would this produce an error?
    Last edited by eldwardo; 04-22-2008 at 04:57 PM.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Yes, the 5:5 is the entire row. That is the array where we are looking to index. (It could be multiple rows and columns). The next 1 is the row within that array we want to return which, since there's only 1 row, is 1. The next part (the MATCH equation) returns the column within that row that matches the minimum value.

    If you have more than 1 minimum manufacturing cost, it will simply find the first and return the plate and paper cost for that one. It won't error but it also won't tell you that there are other venders with that minimum cost.

    You are also correct about the +1, +2.

    ChemistB

  5. #5
    Registered User
    Join Date
    04-02-2008
    Posts
    26
    Very good. thank you for your help.

  6. #6
    Registered User
    Join Date
    04-02-2008
    Posts
    26
    Hi,

    I'm bringing this thread back to life, because I found that I am running into a problem. I am using the INDEX/MATCH w/the Min formula, but using the Row array (in this example 5:5), it is finding the value in other cells besides those indicated in the Min formula, so it is finding the cell to the left or right (depending on -1 or +1, respectively) of the incorrect cell. Does this make sense?

    I tried replacing the 5:5 with the min formula, but it resulted in an error.

    Any help is greatly appreciated.

    Thank you,

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Hi Eldwardo,
    Not sure why it would look for values other than the ones listed in your MIN list (J5,Q5,X5,AE5). In your MATCH function, are you including 0 as the 3rd argument e.g. MATCH(MIN(J5,Q5,X5,AE5),5:5,0)?
    Is it picking numbers at random or just slightly off by a column? Can you upload an example?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  8. #8
    Registered User
    Join Date
    04-02-2008
    Posts
    26
    Hi ChemistB,

    No, it is picking the value, but it is looking for the value in the entire row and when it finds the first one, then it picks the next cell, left or right, depending on my value. I would prefer it to look only within those fields that determined the min and not the entire row. Does that make sense?

    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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