+ Reply to Thread
Results 1 to 13 of 13

Using the small function to update corresponding values

  1. #1
    Registered User
    Join Date
    12-13-2010
    Location
    melbourne australia
    MS-Off Ver
    Excel 2016
    Posts
    58

    Using the small function to update corresponding values

    Hello,

    can someone help with the attached file please?

    I have tried to explain it all in the attachment.

    Essentially what i need is a formula to find the 1st and second smallest values in a column and return the part names.

    Please take a look at the sheet and let me know if you need more information.

    Appreciate your help!

    Regards
    V
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Using the small function to update corresponding values

    Try into B31:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    drag it right/down as needed.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    12-13-2010
    Location
    melbourne australia
    MS-Off Ver
    Excel 2016
    Posts
    58

    Re: Using the small function to update corresponding values

    Hi KOKOSEK,

    I used the formula in B31 and dragged it down though the column and it returns "D,D" on all cells

    Am i doing something wrong?

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Using the small function to update corresponding values

    Gave it a try and think this is what you're looking.
    Attached Files Attached Files
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Using the small function to update corresponding values

    Quote Originally Posted by virencm View Post
    Hi KOKOSEK,
    I used the formula in B31 and dragged it down though the column and it returns "D,D" on all cells
    Am i doing something wrong?
    Problem is, for ex. Car1: D/E/F/H/I/J/L/N are the same smallest, so which is smallest, which is second smallest?
    Or very similar car 7 (D-K)? Or smallest D-K, second smallest E?
    I see now I little bit understand incrorrectly but meantime, Tsjallie's solution looks good (however it's hard to say for col B than order is D/E/F is correct if all of three have the same price, why not FED)
    Last edited by KOKOSEK; 02-12-2019 at 05:36 PM.

  6. #6
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Using the small function to update corresponding values

    Another attempt:

    Please try the following in B31 entered as an array formula (CTRL-SHIFT-ENTER) then copied down and across:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I believe this produces the required output.

    Sorry for the daunting formula. It was built in several relatively simple steps:
    a) Find the smallest value in the column
    b) Find the second smallest value in the column discounting duplicates of the smallest value
    c) Make an array of column-A with rows set to "" if they contain anything other than the smallest or second smallest values blank
    d) Remove the blanks from the (c) array

    See the attached workbook.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Using the small function to update corresponding values

    Comparing my results with Tsjallie's, we differ, I think, only for Car-6

    Tsjallie has F, G, H, D

    I have: D, E, F, G, H, I, J, L, N

    The smallest values are 10002 and 12398. Unless I'm misunderstanding something, Tsjallie seems to be missing the duplicates of 12398

    Geoff

  8. #8
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Using the small function to update corresponding values

    Due to the fact that there are many items with the same value, IMHO first row should contains for ex. D,E,F,etc as items related to smallest value, second row for ex. N,M,X etc. as item for 'seconds' smallest.

    EDIT:
    I've created something like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    drag it right and down.
    That is what I was thinking.
    Last edited by KOKOSEK; 02-13-2019 at 06:19 AM. Reason: solution

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Using the small function to update corresponding values

    Please try at B31 drag across and down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-13-2010
    Location
    melbourne australia
    MS-Off Ver
    Excel 2016
    Posts
    58

    Re: Using the small function to update corresponding values

    Thank you all for your solutions on this one.

    GeoffW283 and Bo_Ry have provided me the best solution to this problem.

    Thanks you.

    Cheers
    Viren

  11. #11
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Using the small function to update corresponding values

    Glad to have helped - thanks for the feedback!

  12. #12
    Registered User
    Join Date
    12-13-2010
    Location
    melbourne australia
    MS-Off Ver
    Excel 2016
    Posts
    58

    Re: Using the small function to update corresponding values

    Hi GeoffW283 & Bo_Ry

    You guys provided me with the answer to the attached problem i had last time.
    I was wondering if you could help if I added another dimension to this spreadsheet.

    So the intial problem i had was to find the first smallest and second smallest values and paste corresponding in table below.... This has been solved.

    What i now have is a Value that needs to be checked before we add the secondsmallest , 3rd smallest....

    I have explained it in the attached spreadsheet. Its a complex one...

    Please take a look at the spreadsheet and let me know if you need any further information.

    Cheers
    Viren
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    12-13-2010
    Location
    melbourne australia
    MS-Off Ver
    Excel 2016
    Posts
    58

    Re: Using the small function to update corresponding values

    sorry everyone... just read the rules and i shouldnt be posting a new issue to a old post..

    i will create a new post..

+ 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. Replies: 2
    Last Post: 09-06-2015, 12:03 AM
  2. How Small Function works when small(array,1),small(array,2) are same ?
    By bkvenkat in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-02-2015, 02:00 AM
  3. [SOLVED] Auto update in a graph which reads from a column which includes a small function
    By spiros63 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-08-2012, 07:25 AM
  4. small or min function excluding values in an array
    By kifoka in forum Excel General
    Replies: 2
    Last Post: 08-26-2009, 05:44 PM
  5. [SOLVED] Use criteria for values in range for small function
    By like2hike in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2006, 12:15 PM
  6. Replies: 7
    Last Post: 12-31-2005, 08:20 AM
  7. [SOLVED] What function to select the last 3 small values from a list ?
    By Eric in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-31-2005, 07:20 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