+ Reply to Thread
Results 1 to 12 of 12

Macro Needed to Sort Data in Columns

  1. #1
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Smile Macro Needed to Sort Data in Columns

    Hello,



    I'm new in this forum

    With your help I would need to create a macro that can do the request in the file xls I've attached below....

    ....with this macro I Need to sort Data in Columns....


    Thank you


    EXCEL MACRO VBA-1.xlsx
    Last edited by 823; 02-07-2015 at 02:16 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Create 3 macros...

    I am sorry my friend.

    No one will reply to your request for help.

    You need to post three separate requests for help.

    You need to change your title,

    1. Macro Needed to Sort Data in Columns
    2. Macro Needed to Concatenate Data in separate rows
    3. Macro Needed to Concatenate Data in separate tables



    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Last edited by mehmetcik; 02-06-2015 at 09:13 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro Needed to Sort Data in Columns

    This Macro will do what you ask for the data that you posted.

    I cannot create something for your real data without seeing it.

    I need to know the start row number and the number of columns and rows

    For now, open the attached file and click on the button.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Sort Data in Columns

    Quote Originally Posted by mehmetcik View Post
    This Macro will do what you ask for the data that you posted.

    I cannot create something for your real data without seeing it.

    I need to know the start row number and the number of columns and rows

    For now, open the attached file and click on the button.

    This is simply PERFECT what I need.

    If I have toher type of data I have just to modyfy this colored in red:


    Please Login or Register  to view this content.


    Thank you very much Mehmetcik!!!

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro Needed to Sort Data in Columns

    We can do a lot more than that.

    We have formulae that can count the number of rows and columns.

    So we can make it automatic.

    But we need to know where the data is before we can do that.
    Last edited by mehmetcik; 02-07-2015 at 10:42 AM.

  6. #6
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Lightbulb Re: Macro Needed to Sort Data in Columns

    Hello,


    Please, I need a simple macro that do exactly what I explained in the file attached at this post.



    Thank you very much for help!



    EDIT: SEE MY POST BELOW
    Last edited by 823; 02-15-2015 at 06:43 AM.

  7. #7
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Macro Needed to Sort Data in Columns

    What row are your readings in sheet 1 and sheet 2

  8. #8
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Sort Data in Columns

    If you mean "title row / columns name" they always start on A1, both on sheet1 and sheet2.
    On sheet 1 It can be a large amount of data (more than 30000 rows)


    I need a simple macro that do this:

    -Read the "sequence of column's title" present on sheet 2. (start from A1)
    -Copy those columns -and all the data contained- from sheet1 to sheet 2 with the exact order present on sheet 2



    that's all!


    Please see file attached updated.


    Thanks!
    Attached Files Attached Files
    Last edited by 823; 02-15-2015 at 06:44 AM.

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: Macro Needed to Sort Data in Columns

    Only for your uploaded data.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Sort Data in Columns

    .............I need that it put the result direct in sheet 2...



    Someone can code it?



    thank you
    Attached Files Attached Files
    Last edited by 823; 02-15-2015 at 07:17 AM.

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: Macro Needed to Sort Data in Columns

    You should have uploaded the latest file in the first place.
    Remember, nobody want to write a serious code with the lazy formatted data structure.
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Macro Needed to Sort Data in Columns

    ....I make a bit of confusion with my new request on this thread.
    It is better to divide it.

    http://www.excelforum.com/excel-programming-vba-macros/1066834-macro-needed-to-copy-data-from-sheet1-to-sheet2.html#post3989957

    Last edited by 823; 02-15-2015 at 10:51 AM. Reason: edit

+ 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. Replies: 3
    Last Post: 06-27-2012, 02:25 PM
  2. Macros to create chart
    By sowmyav in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 12-23-2008, 06:53 AM
  3. new to macros - How do I create and run one?
    By grozniy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-21-2007, 12:54 PM
  4. Can Macros create Macros?
    By johnsid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2007, 10:43 AM
  5. [SOLVED] Macros, How do I know what they do if I didn't create them.
    By Abelg in forum Excel General
    Replies: 1
    Last Post: 09-17-2005, 01:05 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