CS: Indexing across mulitple pages

Arcady

New Member
Joined
Oct 30, 2009
Messages
42
This is probably more information than is strictly necessary, but my project in question is a model of a game. The idea is to calculate the current state at any given time. The workbook contains pages labeled P01 through P99. I have a specific column of data (column DV) that I need to pull from all 99 sheets and compile into a list on one page while removing the blank spaces. I think I've figured out how to accomplish the task by calling each cell individually with this formula:

=IF(ISERROR(INDIRECT("P01!A1")), "", IF('P01'!$DV64="", "", 'P01'!$DV64))

I'm using INDIRECT because the actual number of pages in the workbook is user defined. I would then use a VLOOKUP formula to compress the list and remove the blanks.

The first problem here is that each page can calculate up to 1000 turns (more really, but 1000 should be plenty) So that's 1000 turns of data stretched across 99 pages, so about 100,000 formulas just to rebuild the list. Add another 100k for the VLOOKUP addressing and this gets very large indeed. Now, in all actuality, the number of items in the final list most likely won't exceed 10,000. My goal is to find a formula that I can use 10,000 times and index all the pages properly while removing the blanks, but I'm not sure what I can do about that.

The second problem with the above idea is that I would almost have to manually edit all of the formulas to increment 'P01' through the rest of the worksheets.

And then of course there is the 64k row limit, so I would have to break it up a bit, though I don't think that would be a true problem.

Well, here's a link to the project. http://www.mediafire.com/?sharekey=129af724f086724690a82c7bb0fad7ade04e75f6e8ebb871
Just keep in mind that it's still under construction.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hmm, the above linked workbook has a slight error with one of the formulas, specifically with calling <= when it should be calling only <

I can't see how to edit the post and I'm assuming it's not possible. The fixed version is here: http://www.mediafire.com/?ykjqnyjje2w

Sorry for the confusion, I need to go to bed anyhow :P
 
Upvote 0
Well I don't know how well I can restate my question other than:

I have about 100 pages that have a single column of text data spread across 1000 rows. Some of these rows (most really) will be blank. I need to find a way to condense all 100 pages of 1000 rows onto one single page. The single page list shouldn't need to exceed 10,000 list items. I know I can do it by rebuilding the entire list as a whole including the blank cells from all 100 pages, but I would like to find a formula that can index all 1000 rows across the 100 pages without bringing in the blank cells. It's really the indexing across multiple pages that I'm having trouble with.

I can probably find a way to stack some formulas and at least decrease my formula count to some degree. Don't know if I'm making myself any clearer here, but I'll continue on my current path and maybe something will strike me.
 
Upvote 0
Here's one way, maybe this will get you started.

Consider using a macro that
1) Deals with each sheet in turn
2) Applies Data Filter to the entire sheet
3) Filters out blank cells
4) Copies the non-blank cells to the target sheet
5) Undoes the Data Filter
6) Repeats for the next sheet, and so on.
 
Upvote 0
I appreciate the reply for sure. I'm trying to stay away from VB as much as possible both for compatibility reasons and its extremely slow calculating speed. I may still see how it works and go from there. Even so, thanks for the idea.
 
Upvote 0

Forum statistics

Threads
1,223,483
Messages
6,172,537
Members
452,463
Latest member
Debz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top