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 15th, 2002, 03:39 PM   #1
KATHWUN
Board Regular
 
Join Date: Apr 2002
Location: California
Posts: 61
Default

I'm using =SUBTOTAL(3,range)to count occurances of each value in a column (as I filter for each value, e.g. "Active" or "Inactive"). I have two problems:

PROBLEM #1: SUBTOTALS DO NOT = TOTAL
The range of rows 3-418 (under the header)total 416: Using the formula,
"Active" subtotals to 243,
"Inactive" subtotals to 172. That = 415.
In trying to account for the 1 missing from the 416 total, I examined the Filter menu which shows: (ALL),(TOP 10),(CUSTOM),ACTIVE, INACTIVE,#NAME?. No blanks or mispellings. Range of Q3-Q418 displays accurately. Can you help solve this anomaly?

PROBLEM 2: COPYING FORMULA
When I copy the above formula to a different column (into same row using same range of
3-418), the totals CHANGE. Shouldn't the (ALL) count remain the same if the range is constant? AND Shouldn't the subtotals add up to the total?
TIA for your Magic -- Kath

KATHWUN is offline   Reply With Quote
Old May 15th, 2002, 04:16 PM   #2
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

does Q3 to Q418 contain your filtered "active/inactive" or does it contain numbers or something OTHER than what you're filtering on ?

any hidden rows ?
any merged cells ?
Chris Davison is offline   Reply With Quote
Old May 15th, 2002, 04:35 PM   #3
KATHWUN
Board Regular
 
Join Date: Apr 2002
Location: California
Posts: 61
Default

Q3-Q418 cells contain text only, no numbers. That's why I quoted the filter menu, which would reveal any other content than intended. The "active/inactive" is generated from a formula reading dates in other columns. This MrE-MB provided that for me.
No hidden rows or merged cells, Chris.
BTW, what does #NAME? mean? Could that be it?

FORMULA: =IF(OR(AND(T3>0,T3<$A$1,U3=""), AND(V3>0,U3<$A$1,V3<$A$1)),"Active","Inactive")
KATHWUN is offline   Reply With Quote
Old May 15th, 2002, 05:14 PM   #4
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Quote:
On 2002-05-15 15:35, KATHWUN wrote:
Q3-Q418 cells contain text only, no numbers. That's why I quoted the filter menu, which would reveal any other content than intended. The "active/inactive" is generated from a formula reading dates in other columns. This MrE-MB provided that for me.
No hidden rows or merged cells, Chris.
BTW, what does #NAME? mean? Could that be it?

FORMULA: =IF(OR(AND(T3>0,T3<$A$1,U3=""), AND(V3>0,U3<$A$1,V3<$A$1)),"Active","Inactive")
It's not impossible...


Actually, I hate ands and ors. It's not that space you have in the middle there is it ?

shown here with an @ sign :

=IF(OR(AND(T3>0,T3<$A$1,U3=""),@AND(V3>0,U3<$A$1,V3<$A$1)),"Active","Inactive")


The help file on #NAME is as follows :

What does the error #NAME? mean?

The #NAME? error value occurs when Microsoft Excel doesn't recognize text in a formula.

Possible cause Suggested action
Deleting a name used in the formula, or using a name that does not exist. Make sure the name exists. On the Insert menu, point to Name, and then click Define. If the name is not listed, add the name by using the Define command.
Misspelling the name. Correct the spelling.To insert the correct name in the formula, you can select the name in the formula bar, point to Name on the Insert menu, and then click Paste. In the Paste Name dialog box, click the name you want to use, and then click OK.
Misspelling the name of a function. Correct the spelling. Insert the correct function name into the formula by using the Formula Palette.If the worksheet function is part of an add-in program, the add-in program must be loaded. For more information about using add-in programs, click .
Entering text in a formula without enclosing the text in double quotation marks. Microsoft Excel tries to interpret your entry as a name even though you intended it to be used as text. Enclose text in the formula in double quotation marks. For example, the following formula joins a piece of text "The total amount is " with the value in cell B50:="The total amount is "&B50
Omitting a colon ( in a range reference. Make sure all range references in the formula use a colon (, for example, SUM(A1:C10).
__________________
:: Pharma Z - Family drugstore ::
Chris Davison is offline   Reply With Quote
Old May 15th, 2002, 06:54 PM   #5
KATHWUN
Board Regular
 
Join Date: Apr 2002
Location: California
Posts: 61
Default

Thanks for the DIRECTION on the Error, Chris.
I'll study this further.

Re the space in the formula, it appears to make no difference whether it's there or removed.
Thanks again.
Kath
KATHWUN 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 05:13 PM.


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