+ Reply to Thread
Results 1 to 5 of 5

Sorting with functions

  1. #1
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Sorting with functions

    I have an issue where I am trying to sort a large list, but it results in a huge processing delay. I am open to using helper columns, but I can't figure out how to get them to work. Attached is an example of the size and functions I tried, using an array function.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Sorting with functions

    Turning the calculation off before sorting may help.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Sorting with functions

    I would split Bldg/Floor/Area into their own separate columns and then use Sort/Filter on that. If the cell contents are all the exact same format like that then you could do it pretty easily with LEFT and RIGHT functions.

    ...Putting information like that in individual records (rather than three-to-a-cell) would be better database design, so it will help you out in all sorts of directions.

  4. #4
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Sorting with functions

    1) I do actually have them in separate columns, but it was easier to do the sort array function with them all in one column. Also Area can be more complicated than just A, it might be a whole phrase, like Security Office, Public Area, Stairwell, etc. I can't use Sort/Filter because I need it to be done each time a new entry is created.

    I also don't actually need the sorted list, I need the row numbers of the original locations of the sorted list, as shown in the example excel.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Sorting with functions

    So, I appear to have solved my own issue.

    Countif(Range, "<="$B2) will tell me how the current item ranks in the list. Then I just have to handle the equal values.

    Attached is an example of how I accomplished my goal. It probably doesnt need as many helper columns but it was easier to keep track of what was going on.
    Attached Files Attached Files
    Last edited by zhavier; 05-15-2014 at 01:53 PM. Reason: Clarification

+ 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. Auto sorting using formulas/functions
    By Mian USman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-15-2013, 12:50 AM
  2. [SOLVED] Sorting with functions - PROBLEM
    By Jovica in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-30-2012, 05:49 AM
  3. Sorting and Filtering of Functions
    By eros in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 08:42 AM
  4. Sorting IF Functions Into A New Sheet
    By artiststevens in forum Excel General
    Replies: 2
    Last Post: 12-14-2010, 05:52 AM
  5. Need Help with sorting functions
    By jabberdoo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2008, 12:08 PM

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