+ Reply to Thread
Results 1 to 10 of 10

Realign Column Data into Row Data

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,379

    Realign Column Data into Row Data

    Hello:

    Please refer to attached sheet.
    I have sample data of employee's payroll information in sheet1.
    I need these data manipulated in sheet2 as below:

    Column A from cell A2 onwards will be the date from Cell C3 Sheet1.
    Column B is employee,
    Column C is Hours and Column D is Payroll Item associated with it (Cell D4:I4 in Sheet1).
    No data in Column D would mean end of data.

    I have manually completed data for 2 employees.

    Please let me know if any questions.

    Thank you

    Riz Momin
    Attached Files Attached Files
    Last edited by rizmomin; 09-15-2013 at 06:25 PM.

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Manipulate Data

    Hi,

    try attached file, macro is started by clicking the button on Sheet1: Book5.xlsm

    contains:
    Please Login or Register  to view this content.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,379

    Re: Manipulate Data

    Hi techneXus:

    Superb, this works great, i just changed the code mm/dd/yyyy.
    Thank you so much for your help.

    Riz Momin

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,379

    Re: Manipulate Data

    Hi techneXus or someone:

    The code works fine except i like to change 2 things.
    Can you make as a regular Macro button (i wanted a way to assign the button to this code).
    Currently you have it as Private Sub CommandButton.

    Also, currently it is producing Sheet2,Sheet2,Sheet4, etc every time you run the macro.
    I wonder if it is feasible to create dated folder.
    The date would be from Sheet1, cell C3.
    Example: C3 = 8/31/2013, then folder name where data is written would be 083113.
    IF this is not feasible then i would rather have just one sheet, ie please code so that it does not create new sheet every time you run the code.

    Please let me know if any questions.

    Thank you
    Last edited by rizmomin; 09-15-2013 at 01:27 PM.

  5. #5
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Manipulate Data

    try
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,379

    Re: Manipulate Data

    Hi techneXus:

    Can you please help to check, if Sheet name exist then overwrite on the same sheet.
    Example Sheet "083113" exist, if by running the macro with same date then overwrite.

    Please let me know if any questions.

    Thank you

    Riz Momin

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    11,466

    Re: Manipulate Data

    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 on your 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)
    Ben Van Johnson

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,379

    Re: Manipulate Data

    Hello:

    Ok, thanks , its done.

    Riz Momin

  9. #9
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Realign Column Data into Row Data

    sheet with same date will be overwritten without user interaction:
    Please Login or Register  to view this content.

  10. #10
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,379

    Re: Realign Column Data into Row Data

    Hi techneXus:

    Thank you so much for your great help.

    Riz Momin

+ 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. Can someone help me to manipulate these data?
    By hunnybunch in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-07-2013, 07:12 PM
  2. How to Manipulate data like a pivot table using a Macro that allow for data to be changed
    By TryingTolearnVBA171 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2012, 03:12 AM
  3. How will I manipulate data in excel?
    By garacious in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 08-08-2009, 04:25 PM
  4. [SOLVED] manipulate data
    By sjl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-03-2006, 09:00 AM

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