+ Reply to Thread
Results 1 to 11 of 11

Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

  1. #1
    Registered User
    Join Date
    09-08-2015
    Location
    450
    MS-Off Ver
    2010
    Posts
    19

    Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

    I already have the solution, but it seems way too cumbersome for something so simple and as a result lags the entire worksheet quite heavily.

    Here is the (array) formula:
    Please Login or Register  to view this content.
    The cell H1 contains a list of years. There are a bunch of worksheets labeled COURSES-XXXX (the year).

    The column B:B in said list contains the information I want.

    Is there a better way of achieving this?

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

    Re: Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

    A good way to start would be to post a sample Excel sheet!!!

    Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    The paperclip icon
    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

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

    Hi.

    There may well be a better way, but personally I think you'd be lucky if you found anyone on this forum willing to dissect that enormous formula without the aid of an actual workbook.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Registered User
    Join Date
    09-08-2015
    Location
    450
    MS-Off Ver
    2010
    Posts
    19

    Re: Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

    The spreadsheet contains information I cannot give out, and there is too much interlinked that taking some thing out would only break other parts.

    I will fix the above code and take out the dynamic portion.
    Please Login or Register  to view this content.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

    It doesn't have to be your actual workbook. A smaller, mocked-up version with dummy data will suffice, providing it illustrates the same issue.

    Regards

  6. #6
    Registered User
    Join Date
    09-08-2015
    Location
    450
    MS-Off Ver
    2010
    Posts
    19

    Re: Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

    Quote Originally Posted by XOR LX View Post
    It doesn't have to be your actual workbook. A smaller, mocked-up version with dummy data will suffice, providing it illustrates the same issue.

    Regards
    I know, but it really is too much trouble. What I have works, but I'm trying to take away things that compromise loading time. Still, I'll see what I can do.

    I'm looking at this formula now (http://www.get-digital-help.com/2009...from-a-column/) and seeing if I can use something like this. It has the same core mechanics as the formula I'm using.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

    Quote Originally Posted by tuckertheguy View Post
    I know, but it really is too much trouble.
    And you don't consider it "too much trouble" for us to work on your query for free?

    Sorry - but I can't quite believe you've just said that.

    Regards

  8. #8
    Registered User
    Join Date
    09-08-2015
    Location
    450
    MS-Off Ver
    2010
    Posts
    19

    Re: Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

    Well, I didn't mean it in that way.

    Apologies if it was interpreted wrong. What I meant to say was: It will take me ages to strip down the worksheet to make it function similarly to what it is now and replace existing data with false data in a number of places for the entire workbook to work as expected without breaking as there are about 16 to 20 dynamic formulas in a number of sheets that all work together to bring the results needed so that this one particular list (the one in question) can be worked on and simplified.

    That's what I meant to say.

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

    I appreciate that. But then I'm sure you also appreciate that it's practically impossible for us to take the formula you gave and work on it. The only feasible way to put that formula into context would be for us to go to the effort of effectively creating a workbook which resembles your actual one so that we can test potential solutions.

    You mention a link to a site. As a compromise, then, why can't you attach a workbook with some dummy data which, although not containing all the links, etc. as in your real workbook, at least illustrates a similar idea to that which you are trying to achieve. True, you might then have to work a little on adapting any solution given to your actual workbook, but then I can't see any other way that this is going to be achieved.

    Regards

  10. #10
    Registered User
    Join Date
    09-08-2015
    Location
    450
    MS-Off Ver
    2010
    Posts
    19

    Re: Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

    Hi,

    Okay, I managed to simplify it with the help of another site.

    Right now the code looks like this:

    Please Login or Register  to view this content.
    Removing the dynamic portion will be like:

    Please Login or Register  to view this content.
    This works like a charm and avoids blanks (if you've got them).

    Thanks!

  11. #11
    Registered User
    Join Date
    09-08-2015
    Location
    450
    MS-Off Ver
    2010
    Posts
    19

    Re: Dynamic Formula for Getting Unique Items from a list and sort them alphabetically

    Quote Originally Posted by XOR LX View Post
    I appreciate that. But then I'm sure you also appreciate that it's practically impossible for us to take the formula you gave and work on it. The only feasible way to put that formula into context would be for us to go to the effort of effectively creating a workbook which resembles your actual one so that we can test potential solutions.

    You mention a link to a site. As a compromise, then, why can't you attach a workbook with some dummy data which, although not containing all the links, etc. as in your real workbook, at least illustrates a similar idea to that which you are trying to achieve. True, you might then have to work a little on adapting any solution given to your actual workbook, but then I can't see any other way that this is going to be achieved.

    Regards
    The main issue is the list being called from two dynamic list arrays and formulate a single list in the course. This has to do with whether the country in question is stable or not, which is why I can't forward the data along. That query is taken from a bunch of other queries and it just compounds itself into a messy, very heavy worksheet.

    I can do it, it would just take a long time to do.

    It works now, so I'm sorry for troubling you guys and feel quite awful about saying 'too much trouble'. I can understand how that would be taken out of context and wasn't my intention to be rude, blase, or arrogant (despite the comment magically pulling off all three). But don't worry, I will most likely be back with another unreasonable demand in the future.

    Thanks for trying to help. I appreciate it.

+ 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. Pick multiple items from list and sort alphabetically in single cell
    By kawale in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-07-2021, 01:48 PM
  2. [SOLVED] Sort dynamic range alphabetically - cant get it working
    By Taktiker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-08-2013, 11:35 AM
  3. [SOLVED] Formula to extract unique values from two excel tabs and sort alphabetically
    By rshukla in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2013, 01:48 PM
  4. Sort combobox items alphabetically
    By aprilapple04 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-16-2013, 03:12 AM
  5. Sort combobox items alphabetically
    By VishalGupta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2011, 01:13 AM
  6. Excel 2007 : Sort a dynamic range alphabetically
    By lmsexcelforum in forum Excel General
    Replies: 2
    Last Post: 01-26-2009, 11:42 AM
  7. Sort text list alphabetically using a formula
    By paddyyates in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-20-2005, 11:15 PM
  8. [SOLVED] How can I sort many items alphabetically, ignoring page breaks??
    By Kezza Macka in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-11-2005, 09:06 AM

Tags for this Thread

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