+ Reply to Thread
Results 1 to 6 of 6

Every 5 groups of rows

  1. #1
    Registered User
    Join Date
    08-01-2010
    Location
    Seattle
    MS-Off Ver
    Excel 2003
    Posts
    2

    Every 5 groups of rows

    I don't really know what kind of terms I am looking for so I did my best searching around...

    so I trying to move contents of column A and move to column B
    But I want the 5 cells of A to 1 cell of B
    A1 - A5 to B1
    A6 - A10 to B2
    A11 - A 15 to B3
    .
    .
    .
    thanks for helping..

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Every 5 groups of rows

    ksclans,

    Welcome to the Excel Forum.

    If:
    A1 = 1
    A2 = 11
    A3 = 111
    A4 = 1111
    A5 = 11111

    What will B1 look like?
    1,11,111,1111,11111
    or
    1, 11, 111, 1111, 11111
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    08-01-2010
    Location
    Seattle
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Every 5 groups of rows

    well if B1 can have a new line within the cell when transfer content A1 - 5 that would be better... so looks like
    "
    1
    11
    111
    1111
    11111
    "

    what I am trying to do is to select groups of 5s without using my mouse to select them and counting 1, 2, 3, 4, 5.. if this works then I just need to select one cell.. thanks

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Every 5 groups of rows

    ksclans,

    Can I see a workbook with examples of numbers in column A, A1 thru A15, and what column B will look like?

    Please post your workbook (or a sample) by clicking on the New Post button, then scroll down and click on the Manage Attachments button.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Every 5 groups of rows

    Something like this in B1, then copy that cell downward:

    =INDEX(A:A,((ROW()-1)*5)+1) & INDEX(A:A,((ROW()-1)*5)+2) & INDEX(A:A,((ROW()-1)*5)+3) & INDEX(A:A,((ROW()-1)*5)+4) & INDEX(A:A,(ROW()*5))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Every 5 groups of rows

    Let's get the ball rolling....
    Assuming data is in column A
    Please Login or Register  to view this content.
    Drag/Fill Down

    Just one way to draw teeth...

    [EDIT]
    Apologies Jerry posts crossed
    Last edited by Marcol; 08-02-2010 at 08:06 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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