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 13th, 2002, 03:01 PM   #1
LMF
Board Regular
 
Join Date: Mar 2002
Posts: 73
Default

I have tried methods that i know, but it doesn't work, so i hope there is an expert with this who can help me out with this bit!
ok, i got two column with these data:

Round Pos
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 Incompleted
1 Incompleted
1 Incompleted
2 1
2 2
2 3
2 4
2 5
2 6
2 7
2 8
2 Incompleted
2 Incompleted
2 Incompleted

I want the number of ppl with a Position (mean every1 except those who incompleted it). for round both round 1 and 2.

So the experted result is :

Round 1 10 ppl finished it
Round 2 8 ppl finished it

but of course i need to do this excel, can anyone pls teach me how i can do this please?

please help

LMF is offline   Reply With Quote
Old Apr 13th, 2002, 03:04 PM   #2
LMF
Board Regular
 
Join Date: Mar 2002
Posts: 73
Default

By the way, please note that the data in such list may not be in order, that mean some result of round 1 could be at the bottom of the result list and some of them could well be at the very top... and please note that i cannot sort this list.

is there anyway around this still?

pls help
LMF is offline   Reply With Quote
Old Apr 13th, 2002, 03:05 PM   #3
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-13 14:01, LMF wrote:
I have tried methods that i know, but it doesn't work, so i hope there is an expert with this who can help me out with this bit!
ok, i got two column with these data:

Round Pos
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 Incompleted
1 Incompleted
1 Incompleted
2 1
2 2
2 3
2 4
2 5
2 6
2 7
2 8
2 Incompleted
2 Incompleted
2 Incompleted

I want the number of ppl with a Position (mean every1 except those who incompleted it). for round both round 1 and 2.

So the experted result is :

Round 1 10 ppl finished it
Round 2 8 ppl finished it

but of course i need to do this excel, can anyone pls teach me how i can do this please?

please help

[img]/board/images/smiles/icon_frown.gif[/img]
=COUNTIF(A2:A50,1)-COUNTIF(B2:B50,"Incompleted)

=COUNTIF(A2:A50,2)-COUNTIF(B2:B50,"Incompleted)

where A2:A50 houses the round data and B2:B50 the pos data. Adjust to suit,


Aladin Akyurek is offline   Reply With Quote
Old Apr 13th, 2002, 03:09 PM   #4
LMF
Board Regular
 
Join Date: Mar 2002
Posts: 73
Default

thanks for helping, but
it doesn't seem to work because:

=COUNTIF(A2:A50,1) will be 13

-COUNTIF(B2:B50,"Incompleted) will be 6

but actually there are only 3 incompleted in round 1, so this won't work...

but pls think of any other solution about this please?
LMF is offline   Reply With Quote
Old Apr 13th, 2002, 03:18 PM   #5
Ricky Morris
Board Regular
 
Join Date: Mar 2002
Posts: 363
Default

assuming that the data you're working with is in a range named "Data" try the following:

in cell F1 enter "Round"
in cell F3 enter "1"
in cell G1 enter "Round"
in cell G3 enter "2"
# of people finished in round 1 is:
=DMAX(Data,"Pos",F1:F2)

# of people finished in round 2 is:
=DMAX(Data,"Pos",G1:G2)

__________________
It's never too late to learn something new.

Ricky
Ricky Morris is offline   Reply With Quote
Old Apr 13th, 2002, 03:20 PM   #6
Ricky Morris
Board Regular
 
Join Date: Mar 2002
Posts: 363
Default

Oops!

I meant in F2 enter "1" and in G2 enter "2"

__________________
It's never too late to learn something new.

Ricky
Ricky Morris is offline   Reply With Quote
Old Apr 13th, 2002, 03:22 PM   #7
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-13 14:09, LMF wrote:
thanks for helping, but
it doesn't seem to work because:

=COUNTIF(A2:A50,1) will be 13

-COUNTIF(B2:B50,"Incompleted) will be 6

but actually there are only 3 incompleted in round 1, so this won't work...

but pls think of any other solution about this please?
You're right. How disturbing!

=COUNTIF(A2:A50,1)-SUMPRODUCT((A2:A50=1)*(B2:B50="Incompleted"))

The same logic for Round value of 2.

Improved version: Since Yogi Anand provided a DCOUNT version, I'll take up just the SUMPRODUCT version, which should be shortened to:

SUMPRODUCT((A2:A50=1)*(B2:B50<>"Incompleted"))

Aladin


[ This Message was edited by: Aladin Akyurek on 2002-04-13 15:53 ]
Aladin Akyurek is offline   Reply With Quote
Old Apr 13th, 2002, 03:28 PM   #8
LMF
Board Regular
 
Join Date: Mar 2002
Posts: 73
Default

yo, Ricky, the Dmax thing doesn't seem to work when the list is not in order...

as i said:

please note that the data in such list may not be in order, that mean some result of round 1 could be at the bottom of the result list and some of them could well be at the very top... and please note that i cannot sort this list.
LMF is offline   Reply With Quote
Old Apr 13th, 2002, 03:30 PM   #9
LMF
Board Regular
 
Join Date: Mar 2002
Posts: 73
Default

Aladin, your method makes it works.

thank you very much for your help!



thanks to Ricky too
LMF is offline   Reply With Quote
Old Apr 13th, 2002, 03:31 PM   #10
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Hi LMF:
Try the formula:

=COUNTIF(B1:B25,">=1")
this will give you 18 for those who have completed both rounds 1 and 2
HTH

__________________
Regards!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
www.energyefficientbuild.com
Yogi Anand 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:48 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