Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dawn
 
Posts: n/a
Default How to convert a repeating row of information to fit in 3 columns

I have a spreadsheet with 300 rows and colums up to IR.

The columns repeat- #, description, size. I need to convert the spreadsheet
sp that it is 3 colums wide only with the title above and have all of the
information drop down into these.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default How to convert a repeating row of information to fit in 3 columns

"dawn" wrote:
I have a spreadsheet with 300 rows and colums up to IR.
The columns repeat- #, description, size. I need to convert the spreadsheet
so that it is 3 columns wide only with the title above and have all of the
information drop down into these.


Here's one quick play to try ..

Assuming source data is in sheet: X, cols A to IR (84 sets),
col headers in row1, data in row2 to 301

In another sheet: Y (say)
With 1 set of headers in A1:C1, put:

In A2:
=OFFSET(X!$A$2,MOD(ROW(A1)-1,300),INT((ROW(A1)-1)/300)*3)

In B2:
=OFFSET(X!$B$2,MOD(ROW(A1)-1,300),INT((ROW(A1)-1)/300)*3)

In C2:
=OFFSET(X!$C$2,MOD(ROW(A1)-1,300),INT((ROW(A1)-1)/300)*3)

Then just select A2:C2, copy down to C25201
(84 sets x 300 rows per set = 25,200)

The above will return the desired results.

If required, select cols A to C and freeze the values in Y
via an in-place:
Copy Paste special Check "Values" OK

For easy try-out, just rename your actual source sheet to: X,
then copy n paste the 3 formulas as-is into a new sheet.
Get it working first. Then just restore / rename
the source sheet back to its former name, and
leave it to Excel to auto-update the sheetname in the formulas.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dawn
 
Posts: n/a
Default How to convert a repeating row of information to fit in 3 colu

Thankyou I will try this right now and let you know.

"Max" wrote:

"dawn" wrote:
I have a spreadsheet with 300 rows and colums up to IR.
The columns repeat- #, description, size. I need to convert the spreadsheet
so that it is 3 columns wide only with the title above and have all of the
information drop down into these.


Here's one quick play to try ..

Assuming source data is in sheet: X, cols A to IR (84 sets),
col headers in row1, data in row2 to 301

In another sheet: Y (say)
With 1 set of headers in A1:C1, put:

In A2:
=OFFSET(X!$A$2,MOD(ROW(A1)-1,300),INT((ROW(A1)-1)/300)*3)

In B2:
=OFFSET(X!$B$2,MOD(ROW(A1)-1,300),INT((ROW(A1)-1)/300)*3)

In C2:
=OFFSET(X!$C$2,MOD(ROW(A1)-1,300),INT((ROW(A1)-1)/300)*3)

Then just select A2:C2, copy down to C25201
(84 sets x 300 rows per set = 25,200)

The above will return the desired results.

If required, select cols A to C and freeze the values in Y
via an in-place:
Copy Paste special Check "Values" OK

For easy try-out, just rename your actual source sheet to: X,
then copy n paste the 3 formulas as-is into a new sheet.
Get it working first. Then just restore / rename
the source sheet back to its former name, and
leave it to Excel to auto-update the sheetname in the formulas.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default How to convert a repeating row of information to fit in 3 colu

"dawn" wrote:
Thank you I will try this right now and let you know.


You're welcome !
Thanks for the feedback ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I print repeating columns on the Right? Simon999 Excel Discussion (Misc queries) 1 May 10th 06 05:51 PM
tab delimited file convert to columns 1coach9 Excel Discussion (Misc queries) 1 April 18th 06 04:19 PM
add information from two columns MaryDVT Excel Discussion (Misc queries) 0 September 8th 05 07:45 PM
Excel convert 1 row 5 words INTO 1 row 5 columns Kassie Excel Worksheet Functions 0 August 31st 05 07:03 AM
Clearing information in certain columns jolly_lolly Excel Discussion (Misc queries) 1 April 22nd 05 02:41 AM


All times are GMT +1. The time now is 11:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"