Solved

Combine  rows

Posted on 2013-05-12
5
268 Views
Last Modified: 2014-05-23
I have a spreadsheet 6000 thousand lines long,  1st row A to G is header names, rows  2-6 is data.   (no math/no formulas).
I want to move data in rows 3,4,5,6  to row 2 starting at column/cell H2 , then delete  3,4,5,6  and do it again (until end of sheet)

Sample attached with  "as is"  and desired.
sample-row.xlsx
0
Comment
Question by:tomrector
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39159529
On a new sheet enter this formula in A1

=INDEX(Sheet1!$A:$G,IF(ROW()=1,1,(ROW()-2)*5+2+INT((COLUMN()-1)/7)),MOD(COLUMN()-1,7)+1)

and copy it across to column AI and down as far as needed.
0
 

Author Comment

by:tomrector
ID: 39159593
Maybe ,, but how does this create row 3 from next set of 5 and then row 4 from the next set of 5, etc, etc, etc.

I attached a revised sample to make it more clear.
sample-row.xlsx
0
 

Author Comment

by:tomrector
ID: 39159672
Disregard previous email,  It does work!  Thank you very much for the answer.  After copying down 1200 rows cols A:AL   it pulls the right data.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question