+ Reply to Thread
Results 1 to 2 of 2

Get horizontal data into vertical format using macro or formula

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2007
    Posts
    2

    Get horizontal data into vertical format using macro or formula

    Hi All,
    Greetings for the Day!
    Myself Sukhdev Singh and stuck in a problem. I have a data in horizontal format (Sheet-1), and I want some specific data in vertically format (Sheet 2). Can anybody help me.

    Sample Data in Sheet-1
    S.No Emp Code Emp Name Branch DOB Matrital Status Rel Dependent1 Relation DOB Dependent2 Relation DOB DOJ CTC
    1 8314 RAHUL KUMAR DURGANI INDORE 21-Dec-90 SINGLE Self 05-Feb-15 156000
    2 8316 SHASHANK YESHWANT BEHERE PUNE 20-Jul-74 MARRIED Self AISHWARYA SHASHANK BEHERE WIFE 10-Sep-77 SAWANI SHASHANK BEHERE Daughter 04-Aug-06 17-Feb-15 720000
    3 8317 RADHE SHYAM CHANDIGARH 25-May-80 MARRIED Self DALJEET KUMARI WIFE 17-Oct-83 HARSH Son 25-Oct-05 12-Feb-15 182400
    4 8318 M. MOHAN HYDERABAD 29-Dec-80 MARRIED Self M. LALITHA WIFE 05-Sep-87 M. SAANVIKA Daughter 20-Sep-12 20-Feb-15 307200
    5 8324 CHANDRESH MISRA HEAD OFFICE 02-Feb-79 SINGLE Self 02-Mar-15 1200000

    Sample Data Format (Required) Sheet2
    S.No Matrital Status EMP CODE NAME OF THE EMPLOYEE BRANCH RELATION DOB DOJ SALARY
    1 SINGLE 8314 RAHUL KUMAR DURGANI INDORE Self 21-Dec-90 05-Feb-15 156000
    2 MARRIED 8316 SHASHANK YESHWANT BEHERE PUNE Self 10-Sep-77 17-Feb-15 720000
    AISHWARYA SHASHANK BEHERE WIFE 10-Sep-77
    SAWANI SHASHANK BEHERE DAUGHTER 04-Aug-06
    3 MARRIED 8317 RADHE SHYAM CHANDIGARH Self 25-May-80 12-Feb-15 182400
    DALJEET KUMARI WIFE 17-Oct-83
    HARSH SON 25-Oct-05
    4 MARRIED 8318 M. MOHAN HYDERABAD Self 29-Dec-80 20-Feb-15 307200
    M. LALITHA WIFE 05-Sep-87
    M. SAANVIKA DAUGHTER 20-Sep-12
    5 SINGLE 8324 CHANDRESH MISRA HEAD OFFICE Self 02-Feb-79 02-Mar-15 1200000


    Thanks and waiting for your kind response.

    Best Rgds,
    Sukhdev Singh
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Get horizontal data into vertical format using macro or formula

    Hi Sukhdev Singh

    This Code in the attached should get you started. You'll need to deal with the Formatting (Dates, Merged Cells). CTRL + x will fire the Code.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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: 1
    Last Post: 08-15-2014, 12:18 PM
  2. [SOLVED] Change data from vertical format to horizontal format
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2013, 07:06 PM
  3. [SOLVED] Macro to convert vertical data in horizontal format
    By ajang in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2013, 06:03 PM
  4. Convert data From Vertical to Horizontal Format
    By reyrey in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2011, 03:52 PM
  5. Replies: 1
    Last Post: 07-29-2008, 10:50 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