+ Reply to Thread
Results 1 to 16 of 16

takes the two smallest values

  1. #1
    Registered User
    Join Date
    01-10-2023
    Location
    Indonesia
    MS-Off Ver
    GoogleSheets Mobile
    Posts
    21

    takes the two smallest values

    Hello, nice to meet you all.

    I have a problem in creating a formula to display the two smallest values. If there are two smallest values in cells B3:K3, then the value displayed is taken from cells B2:K2. The problem arises when there are two smallest values that are the same.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: takes the two smallest values

    Tried to open your file on a Windows laptop and an iPad. Both report that the file cannot be opened.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-10-2023
    Location
    Indonesia
    MS-Off Ver
    GoogleSheets Mobile
    Posts
    21

    Re: takes the two smallest values

    I also encountered the same issue, but I was able to open it with WPS Office for Android. What seems to be the problem in opening the file?
    Attached Images Attached Images
    Last edited by politono; 04-13-2024 at 10:44 PM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: takes the two smallest values

    So what should happen if there are two smallest values - which corresponding value from row 2 should be returned?

    The workbook is reporting as invalid or corrupted - it can't be opened. If you encountered the same issue yourself, then you know what the problem is. You can't expect members to get WPS in order to be able to assist!

    Administrative Note:

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    01-10-2023
    Location
    Indonesia
    MS-Off Ver
    GoogleSheets Mobile
    Posts
    21

    Re: takes the two smallest values

    Taking the two smallest values in cells B3:K3,

    for example, if the first smallest value is in cell B3, then display the value from cell B2; if the second smallest value is in cell D3, then display the value from cell D2.

    Thanks.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: takes the two smallest values

    So you want ALL of the matching values?

    What product are you using for this? That's really important. Is it Excel or GoogleSheets or WPS - what?

  7. #7
    Registered User
    Join Date
    01-10-2023
    Location
    Indonesia
    MS-Off Ver
    GoogleSheets Mobile
    Posts
    21

    Re: takes the two smallest values

    i use GoogleSheet mobile

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: takes the two smallest values

    Does row 5 here show the outcome you want? If not, then WHAT do you want instead?

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    2
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    3
    1
    2
    1
    3
    2
    2
    1
    3
    7
    6
    4
    5
    0
    2
    6
    Sheet: Sheet1

  9. #9
    Registered User
    Join Date
    01-10-2023
    Location
    Indonesia
    MS-Off Ver
    GoogleSheets Mobile
    Posts
    21

    Re: takes the two smallest values

    Yes, that's what I want.

    Thank you.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: takes the two smallest values

    OK - the formula is this:

    =FILTER(B2:K2,B3:K3=SMALL(B3:K3,1))

    and it works in GoogleSheets:

    https://docs.google.com/spreadsheets...it?usp=sharing

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: takes the two smallest values

    Please change your forum profile from 2020 to GoogleSheets Mobile ASAP.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  12. #12
    Registered User
    Join Date
    01-10-2023
    Location
    Indonesia
    MS-Off Ver
    GoogleSheets Mobile
    Posts
    21

    Re: takes the two smallest values

    Thank you very much, the formula has been completed. 👍

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: takes the two smallest values

    Pldeaes update your profile before you leave.

  14. #14
    Registered User
    Join Date
    01-10-2023
    Location
    Indonesia
    MS-Off Ver
    GoogleSheets Mobile
    Posts
    21

    Re: takes the two smallest values

    done

    thanks

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: takes the two smallest values

    Please remove ASAP - that means as soon as possible! ;

    Thanks for the rep.

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: takes the two smallest values

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

+ 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. Finding the smallest 3 values by region
    By oskariliias in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2019, 08:21 AM
  2. Eight Smallest Values
    By Snoddy1994 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2019, 05:48 AM
  3. [SOLVED] Formula that takes takes out a specific word/number from text string
    By ncalvelo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2012, 10:21 AM
  4. Adding smallest value + second smallest value until exceeding a specific value
    By ployo60 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2012, 07:25 AM
  5. Replies: 3
    Last Post: 09-26-2012, 09:48 AM
  6. Select smallest k values
    By john27 in forum Excel General
    Replies: 4
    Last Post: 09-21-2012, 06:35 AM
  7. how list highest to smallest values?
    By jgomez in forum Excel General
    Replies: 4
    Last Post: 11-04-2011, 04:23 PM

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