+ Reply to Thread
Results 1 to 11 of 11

Index match with small for generating result in ascending order even if values same

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    warangal
    MS-Off Ver
    Excel 2003
    Posts
    11

    Index match with small for generating result in ascending order even if values same

    Dear friend,

    Here is a code for me to print the names in ascending order even if values are of same means it is showing one name only instead of the other name


    means if values are A=1 B=2 C=3 D=4 E=2

    it has to show like this A B E C D

    But the result is coming like this A B B C D

    Please help me out how to solve it

    Formula which i used
    =OFFSET(B$6,MATCH(SMALL(C$6:C$18,ROW()-ROW(C$6)+1),C$6:C$18,0)-1,0)test.xls
    Here i am attaching the sample file for your reference

  2. #2
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Index match with small for generating result in ascending order even if values same

    Do you want the number equivalent of the text in result column? In other words, do you want the name to be encoded as numbers?
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  3. #3
    Registered User
    Join Date
    04-03-2014
    Location
    warangal
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Index match with small for generating result in ascending order even if values same

    Col1 : 1 2 3 4 2
    Col 2: A B C D E
    (Result)Col 3:A B E C D (Required)

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


    By Using this formula result I.e. Col 3 : A B B C D (is Coming)

    How to solve this?

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Index match with small for generating result in ascending order even if values same

    it is coming as ABBCD because Match always stops at the first entry
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  5. #5
    Registered User
    Join Date
    04-03-2014
    Location
    warangal
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Index match with small for generating result in ascending order even if values same

    Any alternate method other than match???

  6. #6
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Index match with small for generating result in ascending order even if values same

    We can help you a lot more if you could post a workbook with more sample data and explain with an example of how you want the output from the input columns

  7. #7
    Registered User
    Join Date
    04-03-2014
    Location
    warangal
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Index match with small for generating result in ascending order even if values same

    test.xls

    Here i attached the file,

    i used the result cells by using rank and withour rank formula i need answer in ascending order if same value exist with different names means they have to come in ascending order please help me out.

  8. #8
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Index match with small for generating result in ascending order even if values same

    Quote Originally Posted by maheshkanda View Post
    Col1 : 1 2 3 4 2
    Col 2: A B C D E
    (Result)Col 3:A B E C D (Required)

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


    By Using this formula result I.e. Col 3 : A B B C D (is Coming)

    How to solve this?
    Quote Originally Posted by maheshkanda View Post
    i used the result cells by using rank and withour rank formula i need answer in ascending order if same value exist with different names means they have to come in ascending order please help me out.
    From your quotes above, I understand that you need to arrange the names as per the ranking formula you have created.

    If that is the case, you can just sort the result after applying the rank. I checked whether there is a possibility if 2 persons will get the same rank, but with your formula you won't get 2 persons with the same rank. However, if you sort the rank column (based on your current formula) they will come one after another (meaning their max value will be either same or in ascending order only).

    My question to you is, why do you specifically need to generate the alphabets as in Col 3 as you have shown ?
    Last edited by Saarang84; 05-20-2014 at 01:41 AM.

  9. #9
    Registered User
    Join Date
    04-03-2014
    Location
    warangal
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Index match with small for generating result in ascending order even if values same

    i want to sort with out the rank formula and if there exist two persons means two names has to come in order

  10. #10
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Index match with small for generating result in ascending order even if values same

    Quote Originally Posted by maheshkanda View Post
    i want to sort with out the rank formula and if there exist two persons means two names has to come in order
    Does this mean that both the persons will need to have the same rank or will the ranks be different?

  11. #11
    Registered User
    Join Date
    04-03-2014
    Location
    warangal
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Index match with small for generating result in ascending order even if values same

    Well

    Here is the case first download the attached file.

    1) i don't want to use rank function for getting the results.

    2) if i used offset with match function means the single name repeating if values are same means i need all names to be present with out repeating a single name.So any alternate method for rank and offset for arranging the names based on the data available.
    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)

Similar Threads

  1. [SOLVED] Sum, index, match two columns and put into ascending order
    By SteelMaster in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-23-2014, 03:09 PM
  2. [SOLVED] INDEX MATCH and MIN/SMALL to pull first and second smallest values from array
    By tlafferty in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-18-2014, 04:03 AM
  3. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  4. Duplicate values returned using Index Match Lookup with Small()
    By jacob@thepenpoint in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-18-2013, 10:48 AM
  5. Result of VLOOKUP in by ascending order
    By euphoric.jag in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-16-2012, 07:59 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