+ Reply to Thread
Results 1 to 5 of 5

Moving down a specific number of rows - Offset

  1. #1
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Moving down a specific number of rows - Offset

    Good day.

    I copied information from a website to an Excel sheet, and it did not format in the way that I require. Everything came up in column A as different sets of information (name, address, city, contact person, phone number). It appears as such:
    A5:A9 (name, address, city, contact person, phone number)
    A10 is blank
    A11:A15 is the next set of information (name, address, city, contact person, phone number)
    A16 is blank
    A17:A21 is the next set and so on.

    I want the information to appear in columns.
    A5= Name B5=address C5=city D5=contact person e5=phone number

    When I try to copy it down, it is not copying the cell reference properly. I believe I need to use an OFFSET and ROW formula but I do not know how to do it. Can anyone assist?

    Thanks in advance

  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,765

    Re: Moving down a specific number of rows - Offset

    It would help if you attached a sample Excel workbook, so that we can see exactly how your data is laid out and how you want it to appear (you might want it in a new sheet).

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    I am going out soon, but I'll take a look later on (unless someone else chips in).

    Hope this helps.

    Pete

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Moving down a specific number of rows - Offset

    It sounds like since you have a variable amount of data that a VB solution might be appropriate. I've seen cases similar to this where if say the address is missing, you either have a blank row or the next row contains whatever the next piece of available data is. In other words, the number of rows in the record isn't fixed. We'd have to see the actual data to see what exceptions (if any) have to be handled.

    Please attach a sample workbook. Thanks.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Moving down a specific number of rows - Offset

    Hi guys,

    Sorry, but I am at work and unable to attach documents.

    THIS IS HOW IT CURRENTLY APPEARS:

    A
    5 NAME
    6 ADDRESS
    7 CITY
    8 CONTACT
    9 PHONE
    10
    11 NAME
    12 ADDRESS
    13 CITY
    14 CONTACT
    15 PHONE
    16
    17 NAME
    18 ADDRESS
    19 CITY
    20 CONTACT
    21 PHONE

    THIS IS HOW I WANT IT TO APPEAR:
    A B C D E
    5 NAME ADDRESS CITY CONTACT PHONE
    6 NAME ADDRESS CITY CONTACT PHONE
    7 NAME ADDRESS CITY CONTACT PHONE

    Hope this makes it clearer.

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

    Re: Moving down a specific number of rows - Offset

    With your data in that format, you can put this formula in A5 of Sheet2:

    =INDEX(Sheet1!$A:$A,(ROWS($1:1)-1)*6 + COLUMNS($A:A) + 4)

    Copy across into B5:E5, then copy A5:E5 down as far as you need to.

    Hope this helps.

    Pete

+ 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. Taking rows containing specific text and moving to specific tab.
    By X82 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-11-2016, 11:53 AM
  2. [SOLVED] Moving specific data from rows below to top row only
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-31-2015, 01:48 PM
  3. [SOLVED] Moving Rows to a specific table on another sheet
    By warri0r in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2013, 04:30 AM
  4. Moving specific rows within sheet
    By WasWodge in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2011, 05:59 PM
  5. Moving a row if a specific cell contains a number
    By LionTamer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2011, 04:12 AM
  6. Moving Rows into specific column...
    By Kb24 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-13-2009, 06:52 PM
  7. Moving specific rows
    By strangedenial in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2009, 10:10 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