+ Reply to Thread
Results 1 to 3 of 3

Concatenate values from large to small, in hierarchical order

  1. #1
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Concatenate values from large to small, in hierarchical order

    Hello,

    I am looking to concatenate values in a range and place them in a cell seperated by a dash in hierarchical order, largest to smallest. The range of numbers is from 0-9 and some of the cells in the range are empty so they should be disregarded. For example, if in a range of FD4:FM4,

    FD4:is blank
    FE4: 1
    FF4: blank
    FG4: 3
    FH4: 2
    FI4: 2
    FJ4: 1
    FK4: blank
    FL4: blank
    FM4: blank

    The concatenated cell should be 3-2-2-1-1.

    Another example would be, if

    FD4: 1
    FE4: 1
    FF4: blank
    FG4: 1
    FH4: 1
    FI4: 1
    FJ4: 1
    FK4: blank
    FL4: 1
    FM4: blank

    the concatenated cell should be 1-1-1-1-1-1.

    Thank you for your time,
    Sans
    Last edited by sans; 11-18-2011 at 10:27 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Concatenate values from large to small, in hierarchical order

    If the range is always 10 cells then try:

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Concatenate values from large to small, in hierarchical order

    Thank you very much NBVC, exactly what I was looking for. I can't believe it takes you so little time to come up with the formula. Amazing, thank you for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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