MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 1st, 2002, 03:25 AM   #1
Ampleford
Board Regular
 
Ampleford's Avatar
 
Join Date: Mar 2002
Location: Scotland
Posts: 341
Default

I would like to refer to a series of tabs in a workbook by grouping them into periods - eg Tabs 1,2,3,4 would be week numbers so Period 1 would relate to the sum of those. Rather than create 13 periodic worksheets, can I refer to a tab (or series of tabs) by using formulae / references on 1 worksheet. eg entering "1" in the Period reference box would sum these tabs, where entering "2" would sum tabs 5-8 etc. I find it impossible to work out the syntax. To refer to cells, or to refer to areas is easy, but to refer to tabs seems beyond me.

I know I'm not explaing this very well but I've been working on this for ages and my brain is fried......
Ampleford is offline   Reply With Quote
Old May 1st, 2002, 04:00 AM   #2
s-o-s
Board Regular
 
s-o-s's Avatar
 
Join Date: Apr 2002
Location: Kissimmee, Florida
Posts: 384
Default

Ampleford,

There is a great work around
Create a Tab Start1 (this can be blank)
Create a Tab Stop1 (Also Blank)
On your Tab Period1 enter in B3 the formula:

=SUM(Start1:Stop1!B3)

Copy this to all the cells that you want summing on your template. Then drag and drop the Tabs for Period 1 between the Start and Stop.

WORD of WARNING...Do not put PERIOD1 between Start1 & Stop1 you will create serious Circular References!!!

Just repeat above with Start2, 3...until you have them all

Ps This is great if you have Departmental budgets with say 20 Depts. in one division then your boss decides that Dept 666 is now going to Move from Sales to Marketing...The Change takes 2 seconds just drag the tab 666 between the new dummy place holders and away you go.
s-o-s is offline   Reply With Quote
Old May 1st, 2002, 05:06 AM   #3
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-05-01 02:25, Ampleford wrote:
I would like to refer to a series of tabs in a workbook by grouping them into periods - eg Tabs 1,2,3,4 would be week numbers so Period 1 would relate to the sum of those. Rather than create 13 periodic worksheets, can I refer to a tab (or series of tabs) by using formulae / references on 1 worksheet. eg entering "1" in the Period reference box would sum these tabs, where entering "2" would sum tabs 5-8 etc. I find it impossible to work out the syntax. To refer to cells, or to refer to areas is easy, but to refer to tabs seems beyond me.

I know I'm not explaing this very well but I've been working on this for ages and my brain is fried......
I'm unsure of where you'd like the results to be.
Would they be on a summary sheet at the front/back of the book?
Are all of the 'Periods' going to be on the Front/Back sheet?

Or, is the result of the first 4 going to be on Sheet1 of the 1,2,3 & 4, then sheet5 hold the sum of 5,6,7 & 8?

I can provide an answer for both.
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old May 1st, 2002, 05:19 AM   #4
Ampleford
Board Regular
 
Ampleford's Avatar
 
Join Date: Mar 2002
Location: Scotland
Posts: 341
Default

I could have another 13 tabs with sums of the relevenat tabs on them, but this is more about references to tabs than about the actual spreadsheet.

To refer to a tab from a spread I need to use the syntax:-
'Tab1'!A1

To refer to a number of tabs I need to use:-
'Tab1:Tab4'!A1

I want to be able to drop a number (in this case a period which relates to a set number of weeks) on a cell which will influence the number(s) in the tab references.

eg Period 1 = Weeks 1-4, Period 2 = Weeks 5-8 etc etc

If I enter Period 7 I want it to drop data from tabs 25-28 which would be referred to by:-

'Tab25:Tab28'!A1

So that if I change it to Period 8 the reference changes to:-

'Tab29:Tab32'!A1

I know I'm not making this clear but the workbook is 16MB and slow to open / close (because of a lot of conditional formatting) so I don't really want to add any more tabs than I need.

(Also I love when there's a problem I don't think I can solve - then whoosh - it all becomes clear - usually with the help of you guys...)

)

Ampleford is offline   Reply With Quote
Old May 1st, 2002, 05:21 AM   #5
Ampleford
Board Regular
 
Ampleford's Avatar
 
Join Date: Mar 2002
Location: Scotland
Posts: 341
Default

ps - Can I also just say to S-O-S that the reply he sent, although not what I'm loking for here, is a brilliant workaround for grouping spreads.


Cheers

Ampleford is offline   Reply With Quote
Old May 1st, 2002, 09:25 AM   #6
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-05-01 04:19, Ampleford wrote:
I could have another 13 tabs with sums of the relevenat tabs on them, but this is more about references to tabs than about the actual spreadsheet.

To refer to a tab from a spread I need to use the syntax:-
'Tab1'!A1

To refer to a number of tabs I need to use:-
'Tab1:Tab4'!A1

I want to be able to drop a number (in this case a period which relates to a set number of weeks) on a cell which will influence the number(s) in the tab references.

eg Period 1 = Weeks 1-4, Period 2 = Weeks 5-8 etc etc

If I enter Period 7 I want it to drop data from tabs 25-28 which would be referred to by:-

'Tab25:Tab28'!A1

So that if I change it to Period 8 the reference changes to:-

'Tab29:Tab32'!A1

I know I'm not making this clear but the workbook is 16MB and slow to open / close (because of a lot of conditional formatting) so I don't really want to add any more tabs than I need.

(Also I love when there's a problem I don't think I can solve - then whoosh - it all becomes clear - usually with the help of you guys...)

)

Rather than explainig complicated thing, I've set up a Workbook with 2 possible answers. If you want I'll mail it to you
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old May 1st, 2002, 09:28 AM   #7
Ampleford
Board Regular
 
Ampleford's Avatar
 
Join Date: Mar 2002
Location: Scotland
Posts: 341
Default

Cheers - My EMail is trevor.ampleford@somerfield.co.uk


Ampleford is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:27 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes