+ Reply to Thread
Results 1 to 22 of 22

Help with Sorting

  1. #1
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Help with Sorting

    Hi, need to sort data from several sheet to individual activity sheet

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,889

    Re: Help with Sorting

    Using Excel 2013?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Re: Help with Sorting

    Hi AliGW,

    Im using Excel 2019

    Thank you

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Help with Sorting

    Please update your Profile to reflect the current version you are using.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Re: Help with Sorting

    Done, Thank you very much for reminding me

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help with Sorting

    One way would be to use VBA.

    In the attached version of your file I've added the code shown below and a button on the first sheet to run it when clicked.

    Worth noting, this is all based on guesswork as there wasn't a whole heap of information in your original post about what your desired outcome actually is.

    Please Login or Register  to view this content.
    For some reason it's not adding one of the names as I'd expect it to, but I need to go and cook dinner so can't look into the reason for that right now.

    If this is any use to you I will come back and find why the one name isn't quite working then will update the code.

    BSB
    Attached Files Attached Files

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help with Sorting

    Found the issue mentioned above. It's a formatting thing. Need to change the font colour and style in B6 on the Badminton sheet to match the cell above.

    BSB

  8. #8
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Re: Help with Sorting

    Thank q very much. That was the data I needed

    Anyhow I need to add some more sheet as I cant upload more than 1,000kb data so do I have to add some code Set ws = Sheet4 Call MoveData and so on

    and for the result, can the number run normally from 1 onwards

    Thank you very much for the help

    Njy your dinner then
    Last edited by Abdul Rahman; 02-12-2024 at 03:03 PM.

  9. #9
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help with Sorting

    Quote Originally Posted by Abdul Rahman View Post
    do I have to add some code Set ws = Sheet4 Call MoveData
    Yes you can simply add more lines to that section. Just make sure the sheet number matches the codename of each one.
    If your workbook was set up with all the class sheets at the start and no hidden sheets in between, the code could be adapted to loop through those rather than need to specify them in code. I was going to do that in the example file, but noticed some hidden sheets.
    You could also loop through the sheets and only process any where the tab name starts in "Year" for example. That way you wouldn't have to add anything to the code and it wouldn't matter which order the sheets were in.
    As I said, I was working from pure guesses as not much info provided.

    Quote Originally Posted by Abdul Rahman View Post
    and for the result, can the number run normally from 1 onwards
    I'm not sure what you mean by this. Could you elaborate?

    BSB

  10. #10
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Re: Help with Sorting

    Badminton (Physical)

    No Nama Murid (Student Name) Year

    1 MOHAMMAD Year 4A (2024)
    2 MUHAMMAD Year 4A (2024)
    3 MOHAMAD Year 4A (2024)
    4 NUR H Year 4A (2024)
    5 MUHAMMAD Year 4A (2024)
    6 MD I Year 4A (2024)
    7 ASYMAWI Year 5A (2024)
    8 MOHAMMAD Year 5A (2024)

    The No run normally and so on
    Last edited by Abdul Rahman; 02-15-2024 at 12:23 PM.

  11. #11
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help with Sorting

    So you want the numbers to just start at 1 and increment, rather than use the numbers from the class sheets?

    BSB

  12. #12
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Re: Help with Sorting

    Yes Sir/Madam, Thank you
    Last edited by Abdul Rahman; 02-12-2024 at 03:45 PM.

  13. #13
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help with Sorting

    Try this slightly amended version.
    Please Login or Register  to view this content.
    Note I also moved the line for the pop up message box so it only appears once. I'd put it in completely the wrong place before because I added it after I'd tested it.

    BSB
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Re: Help with Sorting

    Yes Sir/Madam, that was amazing, help me a lot.

    Thank you very much.

    I will continue my work tomorrow, need to rest now, its nearly 4 am my time.

    I will come back to you if there is any updates.

    Anyway good night and sleep tide Sir/Madam.

  15. #15
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help with Sorting

    Glad I could help.

    Enjoy your sleep.

    I shall check back tomorrow to see if there's further help required.

    BSB

  16. #16
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Re: Help with Sorting

    Hi Sir/Madam Gd Evening

    Hows your day

    I just noticed that there are so many hidden sheets. I just helping my wife finishing their school task so I had deleted all unnecessary sheets

    Task is almost finish, just wanted to add some command to clear data if maybe they want to add some more data.

    Thank you very much for your help
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Re: Help with Sorting

    Hi Sir/Madam.

    I was just notice that the result of the data n the Year row only come out with Year*A no B or C

    how would I add some code to VBA?

    Thank you

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,889

    Re: Help with Sorting

    This is marked as SOLVED ...

  19. #19
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Re: Help with Sorting

    I post yesterday for some answer but no reply so I try to finish it.

    I made it so I marked as SOLVED

    but today I realised that there are some miss check on my side

    Im sorry for the inconvenience caused

    So how do I do now? to repost back

    Thank you

  20. #20
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,889

    Re: Help with Sorting

    Just remove the SOLVED tag for now if you want extra assistance.

  21. #21
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Re: Help with Sorting

    just click Mark this thread as unsolved

  22. #22
    Registered User
    Join Date
    03-10-2013
    Location
    Brunei Darussalam
    MS-Off Ver
    Excel 2019
    Posts
    28

    Re: Help with Sorting

    Done. Thank you Madam

+ 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. [SOLVED] 3-level sorting including sorting a column by the number of percent sign in each cell
    By terryhenderson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-14-2017, 05:21 PM
  2. Replies: 1
    Last Post: 12-16-2015, 01:04 PM
  3. [SOLVED] I require sorting formula in excel sheet with complex sorting.
    By kaminanirav in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2015, 08:16 AM
  4. Replies: 0
    Last Post: 02-24-2014, 11:27 AM
  5. Sorting 2 data ranges by comparing one column in each and sorting to match
    By MDKsmiffy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2013, 03:30 PM
  6. Sorting a range to invert it upside down without sorting by any specific column
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2013, 12:53 PM
  7. [SOLVED] Sorting a range to invert it upside down without sorting by any specific column
    By luv2glyd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2013, 12:43 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