+ Reply to Thread
Results 1 to 5 of 5

Append 2nd Row to 1st Row

  1. #1
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Append 2nd Row to 1st Row

    Hi,
    This might be tricky ( but i think a loop might be able to do this?)

    I've got data that should be on own row but its come into my excel file as two rows. This is going to be done daily, as a report so its not just once off, i need a macro or something.

    so every second row should be appended to the right of each first row
    e.g.

    Row 1 First Name
    Row 2 Last Name
    Row 3 First Name
    Row 4 Last Name
    Row 5 First Name
    Row 6 Last Name

    I would like:

    Row 1 First Name Last Name
    Row 2 First Name Last Name
    Row 3 First Name Last Name

    Hopefully someone can help me with this...
    Last edited by pr4t3ek; 10-21-2008 at 10:08 AM.
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Hi Pr4t3k,

    If you're looking to put the first and last name in separate cells in the same row, then use the following formulas (assuming your original list is in A1:A??):
    Please Login or Register  to view this content.
    Fill both formulas down half as many rows as you have in column A (you'll only need half the number of rows since you're using one row instead of two).

    If you really want to use a macro, which can be done, you'll have to specify where you want the results, and how you want to see them (one cell, two cells, etc.).

  3. #3
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483
    hey thanks for that, i guess that did answer my question...
    but i dont think its going to work even with a macro only because i get various rows on various days etc....

    thanks anyway! job welldone

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    I'm pretty sure we can get it to work with or without a macro. If the number of rows changes that's easy enough to overcome in either case.

    If you let us know your worksheet layout(s) we can certainly get you up and running more efficiently.

  5. #5
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483
    the file is over 100kb for me to send via this forum.
    & if i shrink it down, it wouldnt explain the whole story...

+ 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. Append multiple workbooks with multiple worksheets
    By samirz10 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2008, 02:28 PM
  2. Append Cell Values To Text Files
    By Stefan.S. in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-17-2008, 11:09 AM
  3. Replies: 3
    Last Post: 02-05-2008, 11:13 AM
  4. How to append and delete from sheets
    By Alok.Behria in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-20-2007, 05:18 AM
  5. [SOLVED] Need to know to append data from more than 4 sheets
    By all4excel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-15-2007, 06:56 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