+ Reply to Thread
Results 1 to 3 of 3

Arrange Scattered rows value to underneath appropriate columns heading

Hybrid View

  1. #1
    Registered User
    Join Date
    11-25-2013
    MS-Off Ver
    Excel 2007
    Posts
    4

    Arrange Scattered rows value to underneath appropriate columns heading

    Hi Expert,

    I am new to the VBA world. However, I am trying to get done one tedious task. Here is the description of problems

    I want to bring some scattered rows in data range directly underneath the appropriate columns

    here is the description of manual way of doing the same task. Probably it can help you building your logic

    1. first, I check for last empty rows in column "M" i.e for country(By pressing CTRL + Down arrow key in column "M") and then i look into the immediate next empty rows where is the date values, usually i found it into next rows but in a different columns. so i copy the range one cell before from date values till last columns in that same row and i bring it back to the original row where it should be indeed.

    for example after pressing CTRL+down arrow key in columns "M", If i see date values In next immediate rows "E7". I copied from "C7" or "B7" (one cell before date value cell) ,depending on In which cell the date value is sitting till last columns i.e "N7" and paste it manually to "D6". and I do repeat the same work manually till i aligned all rows to their proper place.

    Hope my above description can help you understanding the problems. I am attaching my file also, so you can understand it better.

    I really appreciate your help.

    Thanks,
    Ritesh
    Last edited by ritesh.bsim; 08-21-2014 at 01:50 AM. Reason: change in query

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,085

    Re: Arrange Scattered rows value to underneath appropriate columns heading

    Ritesh,
    Your explanations are detailed but to follow them and prepare a macro we need a sample of your data.
    PCI
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    11-25-2013
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Arrange Scattered rows value to underneath appropriate columns heading

    Hi PCI,

    Thanks for taking your time and looking into my query and I am sorry for delay response, Actually i was out for some work.

    I have attached here my file. Sheet1 is having original problem data and sheet2 is having desired form of data.

    I hope it will help you!

    Thanks again!

    Ritesh
    Attached Files Attached Files

+ 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] Re arrange columns from selected rows
    By steve_ed in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2013, 01:47 PM
  2. Replies: 0
    Last Post: 05-17-2012, 12:59 PM
  3. [SOLVED] Transpose Data/ Re-Arrange Columns and Rows
    By newbieexceldude in forum Excel General
    Replies: 2
    Last Post: 02-19-2012, 08:14 PM
  4. Arrange columns of names & addresses into rows
    By SKMaverick in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-04-2010, 02:36 PM
  5. [SOLVED] Import csv files, delete rows, arrange columns ....
    By xadnora in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-11-2005, 12:06 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