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 Apr 3rd, 2002, 10:48 AM   #1
thor10
New Member
 
Join Date: Mar 2002
Posts: 14
Default

I'm trying to so a sumif.

=SUM(IF(B2:B1106="MEDICAID OVERALL",if(d2:d1106='603664'or'701087'or'605424'or'724005',h2:h1106)))

As you can see this will not work!

Trying to add whats in column H
if column b = MEDICAID OVERALL
and if
column d has any of the values listed above.

Any help is greatly appreciated!!
thor10 is offline   Reply With Quote
Old Apr 3rd, 2002, 11:19 AM   #2
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Try this array formula...

{=SUM((B2:B1106="MEDICAID OVERALL")*ISNUMBER(MATCH(D2:D1106,{"603664";"701087";"605424";"724005"},0))*H2:H1106)}

Note: Array formulas must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula.
Mark W. is offline   Reply With Quote
Old Apr 3rd, 2002, 11:23 AM   #3
IML
MrExcel MVP
 
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
Default

It sound like your best bet may be to do a double subtotals or a pivot table. A formula answer could be
=SUMPRODUCT(((B1:B1106)="Medicaid overall")*((D1:D1106=603664)+(D1:D1106=701087)+(D1:D1106=605424)+(D1:D1106=724005)),H1:H1106)

good luck

I didn't see Mark's Post. I like his better anyhoo....

[ This Message was edited by: IML on 2002-04-03 10:23 ]
IML is offline   Reply With Quote
Old Apr 3rd, 2002, 11:48 AM   #4
Dave Patton
Board Regular
 
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
Default


try

=SUMPRODUCT((B2:B1106="MEDICAID OVERALL")*(D2:D1106={"603664","701087","605424","724005"})*(H2:H1106))

The info in D2:D1106 is TEXT.

or if D2:D1106 info is actual numbers

=SUMPRODUCT((B2:B1106="MEDICAID OVERALL")*(D2:D1106={603664,701087,605424,724005})*(H2:H1106))
Dave Patton is offline   Reply With Quote
Old Feb 17th, 2005, 05:06 PM   #5
Jeebs
New Member
 
Join Date: Feb 2005
Posts: 1
Default If Statement

I want to use an if statement. It's been so long since I have used one and forgot how to do it :o .

Here is the scenario. I am creating a worksheet that calculates how much money is left on a contract. ie.

Full Contract Amount $26,676.00
Cost Amount Remaining
FY 03/04
March_2004 $469.79 $26,206.21
April $647.25 $25,558.96
May $587.26 $24,971.70
June $597.25 $24,374.45
FY 04/05
July $587.24 $23,787.21
August $587.26 $23,199.95
September $653.00 $22,546.95
October $1,251.68 $21,295.27
November $589.72 $20,705.55
December $589.73 $20,115.82
January_05 $657.08 $19,458.74
February $19,458.74
March $19,458.74
April $19,458.74

The formulas is just Lets say The column to the far left is one then two then three. Well when information is typed into column two, that amount is subtracted from column three (the last dollar amount left over) I want to carry the formula down (just like i have for feb, march, and april) but I don't want the last total to show up. I only want information to appear when the dollar amount for feb is entered. and so on and so forth. Can anyone please help me out. This is driving me nuts. I have spent all day yesterday and a large portion of today trying to figure this out. I've searched and searched but cannot find an answer.

All help is greatly appreciated
Jeebs 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 04:22 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