+ Reply to Thread
Results 1 to 8 of 8

Sorting of table

  1. #1
    Registered User
    Join Date
    05-01-2017
    Location
    spain
    MS-Off Ver
    2010
    Posts
    5

    Sorting of table

    Hi

    In the example below on columns N to P I am trying to get a sorted array (smaller to larger) with the following

    Automatic entry times if they exist (no limit of entries)
    And after that the Minimum entry times follow (limit of entries is specified in P4).

    I have sort of done it (tables N-P) as you can see using a temp table (K-L, that I would like to get rid of) but I am getting blank cells and it's not sorted in descending- ascending order automatically it doesn't take the limit into account.

    K3 contains = INDEX(A2:A100,MATCH("Senior"&"Male",$B$2:$B$100&$C$2:$C$100, 0))
    L2 is a vlookup


    P2 =INDEX(I3:I11,MATCH("Automatic entry time"&"Senior"&"Male",F3:F8&G3:G8&H3:H8,0))
    P3=INDEX(I3:I11,MATCH("Minimum entry time"&"Senior"&"Male",F3:F8&G3:G8&H3:H8,0))
    P4=INDEX(I3:I11,MATCH("Number of places in the team"&"Senior"&"Male",F3:F8&G3:G8&H3:H8,0))


    N7=IF(L3 <= $P$2, K3, "")
    O7=Vlookup
    p7=IF(L3<=$P$2,"Automatic Time", "")

    N11=IF(AND(L3<=$P$3,L3>$P$2),K3,"")


    925d90281d9f45058fe5db60a5e22777.png

    Thanks in advance

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Sorting of table

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: Sorting of table

    Attach a sample workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Registered User
    Join Date
    05-01-2017
    Location
    spain
    MS-Off Ver
    2010
    Posts
    5

    Re: Sorting of table

    attached as requested
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: Sorting of table

    How many events in total?

    If you want results sorted as per your output then I would have have use helper columns to "sort" the data (acceptable ?) OR VBA.

    Maybe others can/will devise formulae solution without helper columns.

  6. #6
    Registered User
    Join Date
    05-01-2017
    Location
    spain
    MS-Off Ver
    2010
    Posts
    5

    Re: Sorting of table

    6 Events in total, (100,200,300,400, LJ and TJ) doesn't have t be the same output any similar meaningful output is fine.
    Last edited by ivanakos; 05-01-2017 at 10:44 AM.

  7. #7
    Registered User
    Join Date
    05-01-2017
    Location
    spain
    MS-Off Ver
    2010
    Posts
    5

    Re: Sorting of table

    Tried to use the helper column with no joy..

    In K1-K8 looks ok but still some NAs in K10-K18 tried to get it to only provide the values that match the minimum time but it didn't work as I still get 12 and 13, also it doesn't take into account the number of places, tried a few things and would appreciate some help with the intended solution.

    Thanks
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-01-2017
    Location
    spain
    MS-Off Ver
    2010
    Posts
    5

    Re: Sorting of table

    Anyone that can help?

+ 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. VBA for Sorting Table
    By Omega Boost in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2015, 04:42 AM
  2. Replies: 0
    Last Post: 02-24-2014, 11:27 AM
  3. [SOLVED] Sorting a pivot table and data outside of the table
    By nicki_rae22 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-06-2013, 12:57 PM
  4. [SOLVED] Sorting a table using it's reference on another table
    By andrewmogi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2013, 10:34 PM
  5. Replies: 9
    Last Post: 02-01-2011, 08:47 AM
  6. Copying data from one table to another table and sorting it
    By bmohor3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2011, 02:50 AM
  7. Sorting Data Table (league table)
    By Cul in forum Excel General
    Replies: 2
    Last Post: 09-13-2007, 05:32 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