+ Reply to Thread
Results 1 to 4 of 4

Smallest value

  1. #1
    Registered User
    Join Date
    08-22-2011
    Location
    The Hague, Holland
    MS-Off Ver
    Excel 2007
    Posts
    6

    Smallest value

    Hello there,

    i was wondering if someone could help me there.

    I have a sheets containg the follwing values.

    prefix desc Belgacom 09GSM_G 09GSM_T 42com
    1201 USA 0.0057 0.0124 0.0071
    1202 USA 0.0057 0.0124 0.0071
    1203 USA 0.0057 0.0071 0.0057

    now i want to get the following information

    Prefix Desc
    1201 USA in cel 1 cheapest rate 0.0057 and cell 2 cheapest supplier Belgacom

    I can use cheapest supllier by the formula =smallest(A3:A5,1) or 2 or 3
    for finding supplier i have formula =INDEX(C1:F1,MATCH(SMALL(C2:E2,1),C2:E2,0)) and i can copy this down.

    Butt here comes the problem
    prefix 1203 has 2 suppliers with same rate, and with the formula i gett for the first samllest and the second smallest value Belgacom, while it should give me for the second value provider 09GSM_T

    Can anyone help me on this please......

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Smallest value

    Assuming your SMALL formula begin at H2 and go to J2 and then down, then in K2 try:

    =INDEX($C$1:$E$1,SMALL(IF($C2:$E2=H2,COLUMN($C2:$E2)-COLUMN($C2)+1),COUNTIF($H2:H2,H2)))

    confirmed with CTRL+SHIFT+ENTER
    and not just ENTER and copy across 3 columns and down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-22-2011
    Location
    The Hague, Holland
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Smallest value

    i try butt it gives some error.

    Maybe beceause of i have mentioned wrong values.

    please see attached file, in second sheet i want to know thhe provider of the smalles value.
    Maybe you can explain better by the attahed sheet.
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Smallest value

    In D2 enter this formula:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER keys.

    Then copy down.

    Then select from D2:D20 and copy, then paste to top of each column afterwards.

    See attached.

    Note: to remove errors, change the SMALL() formula in C2 to:

    =IF(ISERR(SMALL('Prize kopie'!C2:AC2,1)),"",SMALL('Prize kopie'!C2:AC2,1))

    and copy down and do similar for the other columns... then the formula I gave in D2 would now be:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copy down, then copy column to other columns as before.

    I fixed column C and D for you in the attachment.
    Attached Files Attached Files

+ 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