+ Reply to Thread
Results 1 to 3 of 3

Dynamic Sorting

  1. #1
    Registered User
    Join Date
    02-18-2017
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel v15.31
    Posts
    1

    Dynamic Sorting

    Hello,

    New member of this forum, so I hope I'm not breaking any rules of etiquette. I can sort a list alphabetically (for example) very easily with the data sort function. However, I want to be able to sort data dynamically, as it is entered. Which is to say, I want all the items in column A to be sorted alphabetically and show up in this order in column B. if someone makes a new entry in column A, I want that to *also* show up in column B, *also* alphabetically sorted. How do I do this?

    Thanks!

    SCSM

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Dynamic Sorting

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

    - formula start in B2
    - your data has header (A1) or start in A2
    - range $A$2:$A$20 should be bigger than existing data in col. A
    - formula should be entered by Control+Shift+Enter
    - drag formula down as far as you need.
    Hint:
    - You can change range $A$2:$A$20 to Name (Name Manager) and it will be easier to use
    - change range $A$2:$A$20 suitably to your need
    - after all change range of your original data to the Excel Table*** (in column A) and do the same with data in column B independently.

    Hope it will help

    ***Excel Table: Select data in column==>Menu: Insert==>Table
    Attached Files Attached Files
    Last edited by sandy666; 02-19-2017 at 12:12 AM.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Dynamic Sorting

    Here's another method...

    Create Named Range
    • Ctrl + F3 (Opens Name Manager)
    • New
    • Name: List
    • Refers to: =Sheet1!$A$2:INDEX(Sheet1!$A:$A,MATCH(REPT("z",255),Sheet1!$A:$A))
    • OK

    In B2 copied down as far as you need...

    =IFERROR(INDEX(List,MATCH(SMALL(COUNTIF(List,"<"&List),ROW(1:1)),COUNTIF(List,"<"&List),0)),"")

    IMPORTANT
    • This is an array formula
    • Enter the formula >> press F2 then >> CTRL + SHIFT + ENTER
    • If entered correctly, the formula will be enclosed in {brackets}
    • Do not enter the {brackets} manually
    HTH
    Regards, Jeff

+ 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. Dynamic Sorting
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2013, 12:03 PM
  2. [SOLVED] Dynamic Sorting Problem
    By 3nduranc3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2013, 11:33 AM
  3. Dynamic table formula for sorting data to another table dynamic
    By 650dozer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2012, 07:22 PM
  4. Sorting Dynamic Data
    By vt2009 in forum Excel General
    Replies: 1
    Last Post: 04-28-2012, 10:18 PM
  5. Sorting With dynamic Fields
    By man4mac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-26-2006, 01:15 PM
  6. [SOLVED] Dynamic sorting
    By מוטי in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-05-2006, 10:00 AM
  7. [SOLVED] Dynamic Sorting
    By Dr. Sachin Wagh in forum Excel General
    Replies: 2
    Last Post: 12-05-2005, 07:10 AM
  8. Dynamic sorting?
    By AMK4 in forum Excel General
    Replies: 0
    Last Post: 01-28-2005, 11:27 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