Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-24-2008, 11:56 AM
=?Utf-8?B?T2ZmaWNlTWFuYWdlcg==?=
 
Posts: n/a
Wrapping sheets within a workbook

I am working with raw data in Excel 2003 in a workbook where there are 3-5
sheets completely filled with data, all 65536 rows. There are duplicates
scattered throughout the sheets. Is there a way I can link all the sheets
together so that when I do a sort, it will sort all the rows on each sheet
within the workbook?
Reply With Quote
  #2 (permalink)  
Old 07-24-2008, 03:19 PM
Pete_UK
 
Posts: n/a
Re: Wrapping sheets within a workbook

You would need a macro to do that. This is an example of a Merge Sort
algorithm - you would need to sort each individual sheet, and then you
could look at the topmost item in each sheet and decide which record
should be written to a new sheet (and adjust a counter for the sheet
where that record lies). Then keep repeating this, looking at the
topmost item (as defined by the counters in each sheet), writing the
record to a new sheet and adjusting the appropriate counter. Another
check needs to be made to see how many records have been written to
the new sheet, so that a further new sheet can be used after 65536
records. It would be possible to remove duplicates as part of this
process.

You would end up with 3 - 5 sheets, where the first might cover A-E,
then F-L, then M-R etc.

I don't recall seeing examples of a merge sort algorithm being coded
on any of the usual web-sites.

Hope this helps.

Pete

On Jul 24, 12:56*pm, OfficeManager
<OfficeMana...@discussions.microsoft.com> wrote:
> I am working with raw data in Excel 2003 in a workbook where there are 3-5
> sheets completely filled with data, all 65536 rows. *There are duplicates
> scattered throughout the sheets. *Is there a way I can link all the sheets
> together so that when I do a sort, it will sort all the rows on each sheet
> within the workbook?


Reply With Quote
  #3 (permalink)  
Old 07-24-2008, 03:34 PM
Otto Moehrbach
 
Posts: n/a
Re: Wrapping sheets within a workbook

As Pete said, you would need a good bit of code (programming) to do it all.
One suggestion I would give you is to find someone/computer that has Excel
2007. 2007 has over a million rows and could handle what you have easily by
putting everything on one sheet and then sorting that one sheet. It
wouldn't be a lot of work to then copy 3-5 batches of 65536 rows and paste
them into 3-5 sheets. Then delete the one sheet that has more than 65536
rows of data and save the file as a 2003 file. HTH Otto
"OfficeManager" <OfficeManager@discussions.microsoft.com> wrote in message
news:D7A7DBC5-5D02-41BD-AC11-C0683405734E@microsoft.com...
>I am working with raw data in Excel 2003 in a workbook where there are 3-5
> sheets completely filled with data, all 65536 rows. There are duplicates
> scattered throughout the sheets. Is there a way I can link all the sheets
> together so that when I do a sort, it will sort all the rows on each sheet
> within the workbook?



Reply With Quote
  #4 (permalink)  
Old 07-24-2008, 10:30 PM
smartin
 
Posts: n/a
Re: Wrapping sheets within a workbook

OfficeManager wrote:
> I am working with raw data in Excel 2003 in a workbook where there are 3-5
> sheets completely filled with data, all 65536 rows. There are duplicates
> scattered throughout the sheets. Is there a way I can link all the sheets
> together so that when I do a sort, it will sort all the rows on each sheet
> within the workbook?


At the risk of being labeled a heretic, Excel isn't exactly the right
tool for this job (or this data). You could very quickly and easily
import all these worksheets into a single table in Access, and identify
your duplicates. This would be much faster, I might add, than finding
someone to code a VBA solution.

I you want to keep the data in Excel for some reason, you could easily
migrate the cleansed data back to Excel in manageable chunks.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT. The time now is 12:34 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109