+ Reply to Thread
Results 1 to 13 of 13

Formula which is similar to small but work with text

  1. #1
    Registered User
    Join Date
    11-06-2018
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    95

    Formula which is similar to small but work with text

    Hey guys

    I need formula which would work like "small" but it would work not with numbers but with text.

    I need to get 1st, 2nd, 3rd.... result for text and conditions. I dont think that uploading file would be necessary in this case.

    Do you know which formula works similar to SMALL but to text?

  2. #2
    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,980

    Re: Formula which is similar to small but work with text

    Don't be lazy - please upload a sample file.

    You will get a much faster resolution that way. Without the workbook, we are just guessing at your data layout and outcomes, etc.

    The only thing I'd suggest based on the scant information so far is using a helper column with a number in it.
    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.

  3. #3
    Registered User
    Join Date
    11-06-2018
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    95

    Re: Formula which is similar to small but work with text

    file uploaded
    Attached Files Attached Files

  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,980

    Re: Formula which is similar to small but work with text

    Oh, come on! Please try a little bit harder. Replace "It goes on" with meaningful sample data and then provide one list of sample output data manually. You are expecting us to put ourselves out for you - the least you can do is spend a little of your time providing useful data for us to work with.

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

    Re: Formula which is similar to small but work with text

    Can warsaw exist on more than 1 row? Your current example shows it only on row 6.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  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,980

    Re: Formula which is similar to small but work with text

    Filtering the table with slicers would work just as well, by the way - have you considered doing this?

  7. #7
    Registered User
    Join Date
    11-06-2018
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    95

    Re: Formula which is similar to small but work with text

    i am doing macro to organize files, this is only 1 step which i have to figure out and i need your help to guess how i can solve this issue

    i am uploading file, maybe it would be more clear what is purpose

    It can happen that 1 neighborhood exist in more than 1 class

    I was thinking that INDEX can work somehow... like if it is WarsawHighclass then return #1, #2, #3 ... with values its doable but with text i didnt do it yet
    Attached Files Attached Files

  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 2403
    Posts
    44,064

    Re: Formula which is similar to small but work with text

    Once again:

    Can warsaw exist on more than 1 row? Your current example shows it only on row 6.

  9. #9
    Registered User
    Join Date
    11-06-2018
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    95

    Re: Formula which is similar to small but work with text

    No it cant :P

  10. #10
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula which is similar to small but work with text

    First split the column headings in your results table, so that you have Warsaw in A9 and HIGH CLASS in B9.

    Next, Array confirm this formula in C9, then drag right and down to fill the table.

    =IFERROR(INDEX($D$6:$G$7,MATCH($A9,$C$6:$C$7,0),SMALL(IF($D$4:$G$4=$B9,COLUMN($D$4:$G$4)-COLUMN($D$4)+1),COLUMNS($C9:C9))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  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,980

    Re: Formula which is similar to small but work with text

    I'm out. I am not going to help someone who cannot be bothered to give the sample data I've asked to see. If you can't be bothered to answer my questions fully, then I can't be bothered to help you freely and in my own spare time. Good luck!

  12. #12
    Registered User
    Join Date
    11-06-2018
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    95

    Re: Formula which is similar to small but work with text

    Quote Originally Posted by jason.b75 View Post
    First split the column headings in your results table, so that you have Warsaw in A9 and HIGH CLASS in B9.

    Next, Array confirm this formula in C9, then drag right and down to fill the table.

    =IFERROR(INDEX($D$6:$G$7,MATCH($A9,$C$6:$C$7,0),SMALL(IF($D$4:$G$4=$B9,COLUMN($D$4:$G$4)-COLUMN($D$4)+1),COLUMNS($C9:C9))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Thank you

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

    Re: Formula which is similar to small but work with text

    You already have an answer, but, FWIW, here is a normal (non-array) formula alternative:

    =IFERROR(INDEX(INDEX($6:$7,MATCH($A9,$C$6:$C$7,0),),AGGREGATE(15,6,COLUMN($D$4:$G$4)/($D$4:$G$4=$B9),COLUMNS($C:C))),"")
    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. Replies: 2
    Last Post: 08-26-2016, 11:24 AM
  2. Formula to look up similar text
    By amandakayelitte in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2016, 05:14 PM
  3. Find Similar Text, with MID formula
    By campelliann in forum Excel General
    Replies: 3
    Last Post: 12-29-2015, 07:31 AM
  4. Formula to extract similar text entry that appears in other cells
    By wit2001large in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-04-2013, 05:03 PM
  5. Functions similar to SMALL or overcome limitations of SMALL
    By arvindtechie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-05-2013, 10:59 AM
  6. Transpose wont work with Small(IF) formula
    By FrederikBjerre in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2012, 09:02 AM
  7. Similar Text to columns formula
    By certifiedsonny in forum Excel General
    Replies: 1
    Last Post: 04-21-2011, 03:16 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