+ Reply to Thread
Results 1 to 8 of 8

Move 1st Row out of 9 to Column A, Move 2nd Row of 9 to Column B, etc.

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Exclamation Move 1st Row out of 9 to Column A, Move 2nd Row of 9 to Column B, etc.

    Hi All,

    I imported some contact data from a PDF and now all the data is in one column. The order of the data is
    row 1: Name
    row 2: Title
    row 3: Address 1
    row 4: Address 2
    row 5: P: Phone
    row 6: F: fax
    Row 7: E: Email
    Row 8: www. Website

    and it repeats for the following entries, with no spaces. I added the P, F, E and www. because these labels are in front of each phone, fax, email and website entry, giving us a constant in the data.

    I am trying to create a rule where the 1st row out of every 8 moves to column A, the 2nd row out of every 8 moves to column B, etc. This way all names will appear in one column, titles in another, etc.

    How can I create a rule for Excel to move the data in this fashion?

    Also, the data unfortunately has some inconsistencies, because it is also sorted by state, so certain entries also have State above the contact information entry, throwing off the order of the data. Is there a way to factor in this variable as well? The state, as I indicated, is underlined, which could form the basis for a possible exception to a rule.

    Thanks in advance for any help.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Move 1st Row out of 9 to Column A, Move 2nd Row of 9 to Column B, etc.

    Take a look at this post from yesterday:

    http://www.excelforum.com/excel-gene...o-columns.html

    Hope this helps.

    Pete

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Move 1st Row out of 9 to Column A, Move 2nd Row of 9 to Column B, etc.

    Hi,

    If you can't for whatever reason work out how to adapt the method Pete points out to suit your needs, then, assuming that your data is in A2:A100 and that you wish it to be transposed to columns B-I, enter this array formula (confirm with CTRL+SHIFT+ENTER, not just ENTER) in cell B2 and copy across and down as required:

    =IFERROR(INDEX($A$2:$A$100,SMALL(IF($A$2:$A$100<>"State",ROW($A$2:$A$100)-MIN(ROW($A$2:$A$100))+1),8*(ROWS($1:1)-1)+COLUMNS($A:A))),"")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Registered User
    Join Date
    08-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Move 1st Row out of 9 to Column A, Move 2nd Row of 9 to Column B, etc.

    Great, thank you!I really appreciate it!

    I have one more question. On some of the lines, the title of the person is in the same line as their name, and I want to create a rule that will move their title to a new row. All of the people's titles start with "Superintendent" followed by the name of the school, i.e. "Jane Doe Superintendent - School Name." Is there a way to create a rule where every time there is the word 'Superintendent' on the same line as the person's name, it moves the word 'Superintendent' and everything else that follows it in the cell to the row below?

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Move 1st Row out of 9 to Column A, Move 2nd Row of 9 to Column B, etc.

    Ok, I'm sure that would be possible, but that one may require a sheet to play around with. Can you knock up a small sample with your intentions clearly outlined? Obviously remove/amend any sensitive data.

    Regards

  6. #6
    Registered User
    Join Date
    08-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Move 1st Row out of 9 to Column A, Move 2nd Row of 9 to Column B, etc.

    I've attached a short example. In the actual spreadsheet, some of the names in the list already have the title in the appropriate place, a row below the person's name. Some in the list have names and titles combined.

    Thanks for your help!
    Attached Files Attached Files

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Move 1st Row out of 9 to Column A, Move 2nd Row of 9 to Column B, etc.

    Hi,

    "The order of the data is

    row 1: Name
    row 2: Title
    row 3: Address 1
    row 4: Address 2
    row 5: P: Phone
    row 6: F: fax
    row 7: E: Email
    row 8: www. Website

    and it repeats for the following entries, with no spaces
    "

    Where are the websites in the sample you posted? If there is actually to be no such entry, so that we are actually talking about repeating after 7 rows (columns), not 8, then this is something I need to know.

    Regards

  8. #8
    Registered User
    Join Date
    08-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Move 1st Row out of 9 to Column A, Move 2nd Row of 9 to Column B, etc.

    Thanks for your reply! I decided to remove the websites and edited the formula you posted above to account for the change.

+ 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. HELP: Move values from column to rows based on Column A
    By ExceJunkie in forum Excel General
    Replies: 2
    Last Post: 05-30-2013, 08:09 AM
  2. date wise move of cell value of one column to another column
    By abid1142 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-13-2013, 08:43 AM
  3. [SOLVED] Why does the formula move when I move the column
    By ag6 in forum Excel General
    Replies: 5
    Last Post: 04-21-2012, 04:56 PM
  4. Copy/move a word from a cell in a column to another column and autofill
    By excelaspire0219 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2009, 03:54 PM
  5. [SOLVED] move contents of column C based on criteria related to column A
    By Debra in forum Excel General
    Replies: 2
    Last Post: 12-27-2005, 06:30 PM

Tags for this Thread

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