+ Reply to Thread
Results 1 to 8 of 8

How can I short values smallest to largest with below formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    701

    How can I short values smallest to largest with below formula

    I am using below formula from H3 to H8

    =VLOOKUP($G3&"|"&$H$1&"|"&$J$1,$D$2:$E$19,2,0)
    Drag down upto H8

    I want all values short smallest to largest automatically

    Please check attachment for better understanding.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How can I short values smallest to largest with below formula

    Here's one way. Both are array formulae and will successfully split any tied results. You can also delete your helper column.

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    701

    Re: How can I short values smallest to largest with below formula

    Excellent Glenn, Thank you, Can we add one condition in this formula....,

    Please find attachment,

    If C2 is equal to (or) greater than TODAY date, then we can use row data in I & J column.
    Attached Files Attached Files
    Last edited by rajeshn_in; 11-07-2016 at 07:10 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How can I short values smallest to largest with below formula

    I'll be back in about 1.5 hours.

  5. #5
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    701

    Re: How can I short values smallest to largest with below formula

    ok, no problem, I can wait....

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How can I short values smallest to largest with below formula

    Back. As requested. I have also added an error-trap to tak account of situations (like this one) where there are fewer than 5 matching results.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    701

    Re: How can I short values smallest to largest with below formula

    Thank you very much Glenn

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How can I short values smallest to largest with below formula

    You're welcome & thanks for the Rep.

+ 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. VBA code to set sort the values several pivot tables from largest to smallest
    By Tanner2004 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2016, 02:43 PM
  2. [SOLVED] Smallest/largest values based on two criteria
    By jcswaby in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-19-2015, 06:41 AM
  3. Replies: 1
    Last Post: 02-03-2015, 06:16 AM
  4. [SOLVED] Extracting Smallest and Largest Values from a Column
    By drw53 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-12-2014, 02:58 PM
  5. Identified Largest and Smallest VALUES, but need to Identify Location
    By wilburr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2013, 12:51 AM
  6. Organize data based on Certain Values then smallest to largest
    By thelegazy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2013, 12:29 PM
  7. Returning the Nth Largest / Smallest Values in a Range
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-29-2005, 07:53 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