Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2004

Tip: Looking for answers? Try searching our database.

Wrapping A Long Row

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Slowhand - 03 Jun 2004 13:47 GMT
I'm a newcommer to Excel and have a sheet with a long row of data (ove
1,000 entries).  It would be nice if there was a way to wrap the lis
into columns on a sheet so that the actual report isn't so many page
with emty space around the data.  Is there a way to do this?
:confused

--
Message posted from http://www.ExcelForum.com
Peo Sjoblom - 03 Jun 2004 14:25 GMT
Maybe this can help

http://www.mvps.org/dmcritchie/excel/snakecol.htm

Signature

For everyone's benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom

> I'm a newcommer to Excel and have a sheet with a long row of data (over
> 1,000 entries).  It would be nice if there was a way to wrap the list
[quoted text clipped - 4 lines]
> ---
> Message posted from http://www.ExcelForum.com/
Gord Dibben - 03 Jun 2004 15:28 GMT
Slowhand

How is the data entered?

There are 256 columns maximum in Excel, so I assume your "over 1000 entries"
are not in separate cells.

Please give an example of your data lay-out of what is in each row.

Description.........not sample file attachment, please.

Gord Dibben Excel MVP

>I'm a newcommer to Excel and have a sheet with a long row of data (over
>1,000 entries).  It would be nice if there was a way to wrap the list
[quoted text clipped - 4 lines]
>---
>Message posted from http://www.ExcelForum.com/
Slowhand - 03 Jun 2004 16:14 GMT
I am probably mixing up columns and rows.  The document was an impor
from Acess with 1,400 entry

--
Message posted from http://www.ExcelForum.com
Gord Dibben - 04 Jun 2004 00:20 GMT
If your data is an column A starting at Cell A1, then the following
formula, entered in Cell B1 and filled across 7 columns and down 200
rows will produce 7 columns of 200 rows.  Any more than 1400 original
rows, you do the math and make alterations.

=INDIRECT("A"&(ROW()+(COLUMN()-2)*200))

The 2 refers to the column of Cell B1; if you're putting the formula in
a different column, use the appropriate number for that column.

Copy>Paste Special(in place) the results then delete the original column A.

VBA Macro to snake the columns top to bottom...1 to 50 down then 51 to 100
down

Public Sub SplitToCols()
   Dim NUMCOLS As Integer
   Dim i As Integer
   Dim colsize As Long
   On Error GoTo fileerror

   NUMCOLS = InputBox("Choose Final Number of Columns")
   colsize = Int((ActiveSheet.UsedRange.Rows.Count + _
           (NUMCOLS - 1)) / NUMCOLS)
   For i = 2 To NUMCOLS
       Cells((i - 1) * colsize + 1, 1).Resize(colsize, 1).Copy Cells(1, i)
   Next i
   Range(Cells(colsize + 1, 1), Cells(Rows.Count, 1)).Clear
fileerror:
End Sub

Gord Dibben Excel MVP

>I am probably mixing up columns and rows.  The document was an import
>from Acess with 1,400 entrys
>
>---
>Message posted from http://www.ExcelForum.com/
Dave Peterson - 03 Jun 2004 22:53 GMT
Another option is to copy that column into MSWord and use its builtin
Format|Columns feature.

> I'm a newcommer to Excel and have a sheet with a long row of data (over
> 1,000 entries).  It would be nice if there was a way to wrap the list
[quoted text clipped - 4 lines]
> ---
> Message posted from http://www.ExcelForum.com/

Signature

Dave Peterson
ec35720@msn.com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.