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 16th, 2002, 05:42 AM   #1
ajsmith
New Member
 
Join Date: May 2002
Posts: 6
Default

The idea of this is to display summary data from another spreadsheed based on criteria selected in this spreadsheet. This is important, because the formula is used to get data from several sources that cannot be held on the same spreadsheet for security reasons, but summary information is required.

The formula is -

=SUMIF('path[MySpreadsheet.xls]Data'!$N:$N,$J$3&$J$4,'path[MySpreadsheet.xls]Data'!$F:$F)

It works fine if I have all the linked spreadsheets open, but if I open the summary sheet on its own and update the links I get the #VALUE error.

Does anyone have any ideas on solution or workarounds?

[ This Message was edited by: ajsmith on 2002-05-16 04:44 ]
ajsmith is offline   Reply With Quote
Old May 16th, 2002, 11:49 AM   #2
Dave Patton
Board Regular
 
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
Default

[quote]
On 2002-05-16 04:42, ajsmith wrote:
The idea of this is to display summary data from another spreadsheed based on criteria selected in this spreadsheet. This is important, because the formula is used to get data from several sources that cannot be held on the same spreadsheet for security reasons, but summary information is required.

try SumProduct
- use defined range or a dynamic range (Do not use entire columns)

=SUMPRODUCT(('E:Data02Tech02[mySpreadsheet.xls]Data'!$N$1:$N$12=J3)*('E:Data02Tech02[mySpreadsheet.xls]Data'!$F$1:$F$12))

Dave Patton is offline   Reply With Quote
Old May 16th, 2002, 03:14 PM   #3
ajsmith
New Member
 
Join Date: May 2002
Posts: 6
Default

[quote]
On 2002-05-16 10:49, Dave Patton wrote:
Quote:
On 2002-05-16 04:42, ajsmith wrote:
The idea of this is to display summary data from another spreadsheed based on criteria selected in this spreadsheet. This is important, because the formula is used to get data from several sources that cannot be held on the same spreadsheet for security reasons, but summary information is required.

try SumProduct
- use defined range or a dynamic range (Do not use entire columns)

=SUMPRODUCT(('E:Data02Tech02[mySpreadsheet.xls]Data'!$N$1:$N$12=J3)*('E:Data02Tech02[mySpreadsheet.xls]Data'!$F$1:$F$12))

ajsmith is offline   Reply With Quote
Old May 16th, 2002, 03:23 PM   #4
ajsmith
New Member
 
Join Date: May 2002
Posts: 6
Default

I do get a result using SUMPRODUCT, but it's not the result I need. I am not sure what it's doing, but it aint what I want (sum of the values where criteria is met).
Can I get SUMPRODUCT to produce the result I want?

ajsmith is offline   Reply With Quote
Old May 16th, 2002, 03:30 PM   #5
Dave Patton
Board Regular
 
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
Default

[quote]
On 2002-05-16 14:23, ajsmith wrote:
I do get a result using SUMPRODUCT, but it's not the result I need. I am not sure what it's doing, but it aint what I want (sum of the values where criteria is met).
Can I get SUMPRODUCT to produce the result I want?

SumProduct will probably provide the sum that you require. You did not provide information so that I can extend the formula.

Could you supply a concise example and indicate the expected result?

consider the following:
=SUMPRODUCT(('E:Data02Tech02[mySpreadsheet.xls]Data'!$N$1:$N$12={"A","B"})*('E:Data02Tech02[mySpreadsheet.xls]Data'!$F$1:$F$12))

or

=SUMPRODUCT((('E:Data02Tech02[mySpreadsheet.xls]Data'!$N$1:$N$12=J3)+('E:Data02Tech02[mySpreadsheet.xls]Data'!$N$1:$N$12=J4))*('E:Data02Tech02[mySpreadsheet.xls]Data'!$F$1:$F$12))

REVISE the path and range to fit your information.

Dave Patton is offline   Reply With Quote
Old May 16th, 2002, 03:52 PM   #6
ajsmith
New Member
 
Join Date: May 2002
Posts: 6
Default

Here goes -

The detail sheet gives values of business in the pipeline that an agent fills in. He enters the date of the prospect, a description and the value. This date is then split in hidden cells to extract the year and the month (e.g. 2002 and 3). If business does not come through he enters NTU (not taken up) in another cell on the same row. I have another hidden column that uses the following formula to display the concatonated numeric date only if NTU is entered -
=IF(H2="NTU",J2&I2,"")
I can now identify all NTU for a given year / month.

The summary sheet user wants an idea how much business is being lost out of these leads for a particular month. I have set up the summary sheet so that he can dynamically select a year and month in different cells from drop down lists. This then privides the necassary info to sum matching NTU values in the detail sheet.

Thanks for your patience, I hope this makes sense. I would be happy to email the stuff to you if you have the time and it will help.
ajsmith is offline   Reply With Quote
Old May 16th, 2002, 03:53 PM   #7
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-05-16 14:23, ajsmith wrote:
I do get a result using SUMPRODUCT, but it's not the result I need. I am not sure what it's doing, but it aint what I want (sum of the values where criteria is met).
Can I get SUMPRODUCT to produce the result I want?

SumIf function does not appear to work with the data in closed workbooks. But utilizing SumProduct function does work even when the workbook with data is/are closed.
Now in regard to making SumProduct function produce the result you want, I suggest you first use develop the SumProduct function formulation in the same workbook where the data resides -- so now you know that you got the formulation right to accomplish what you want,
then go ahead and use the formulation in your new workbook to make it work when the workbook with data is closed.

I hope it makes sense -- otherwise post back with some explanation and let us take it from there.

Regards!
__________________
Regards!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
www.energyefficientbuild.com
Yogi Anand is offline   Reply With Quote
Old May 16th, 2002, 04:00 PM   #8
Asala42
Board Regular
 
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,027
Default

Hey,

Here's a stab:

=SUMPRODUCT(('path[MySpreadsheet.xls]Data'!$N:$N=$J$3&$J$4)*('path[MySpreadsheet.xls]Data'!$F:$F))

Your criteria is a literal concatenation of J3&J4 correct?

Adam
Asala42 is offline   Reply With Quote
Old May 16th, 2002, 04:13 PM   #9
ajsmith
New Member
 
Join Date: May 2002
Posts: 6
Default

Quote:
On 2002-05-16 15:00, Asala42 wrote:
Hey,

Here's a stab:

=SUMPRODUCT(('path[MySpreadsheet.xls]Data'!$N:$N=$J$3&$J$4)*('path[MySpreadsheet.xls]Data'!$F:$F))

Your criteria is a literal concatenation of J3&J4 correct?

Adam
Hi Adam

Concatonation is literal, and that's the exact flavour of the sumproduct formula I tried 1st time round - doesn't seem to give me the correct result. Thanks for the effort, any other ideas appreciated. I though about the possibility of automatically opening all the related spreadsheets in the background (hidden?) when the spreadsheet is opened and then closing them all when it's closed. I don't know if it's possible and what the implications would be if the detail sheets were already open or if excel throws up a load of annoying "do you want to save changes" messages for the detail sheets when it tries to close them. This scenario seems far from ideal.

Ant
ajsmith is offline   Reply With Quote
Old May 16th, 2002, 04:19 PM   #10
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-16 15:13, ajsmith wrote:
Quote:
On 2002-05-16 15:00, Asala42 wrote:
Hey,

Here's a stab:

=SUMPRODUCT(('path[MySpreadsheet.xls]Data'!$N:$N=$J$3&$J$4)*('path[MySpreadsheet.xls]Data'!$F:$F))

Your criteria is a literal concatenation of J3&J4 correct?

Adam
Hi Adam

Concatonation is literal, and that's the exact flavour of the sumproduct formula I tried 1st time round - doesn't seem to give me the correct result. Thanks for the effort, any other ideas appreciated. I though about the possibility of automatically opening all the related spreadsheets in the background (hidden?) when the spreadsheet is opened and then closing them all when it's closed. I don't know if it's possible and what the implications would be if the detail sheets were already open or if excel throws up a load of annoying "do you want to save changes" messages for the detail sheets when it tries to close them. This scenario seems far from ideal.

Ant
If

=SUMIF('path[MySpreadsheet.xls]Data'!$N:$N,$J$3&$J$4,'path[MySpreadsheet.xls]Data'!$F:$F)

works,

=SUMPRODUCT(('path[MySpreadsheet.xls]Data'!$N$2:$N$400=$J$3&$J$4)*('path[MySpreadsheet.xls]Data'!$F$2:$F$400))

will also work (a point Dave Patton made).

Adjust the ranges to suit. This formula cannot work with whole columns.



[ This Message was edited by: Aladin Akyurek on 2002-05-16 15:20 ]
Aladin Akyurek 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 03:11 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