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 2nd, 2002, 11:19 AM   #1
investr
New Member
 
Join Date: Apr 2002
Location: C Hawk
Posts: 10
Default

Ok folks..last one.

IF A2>=95% then payout equals 100%
IF A2=94% then payout equals 94%
IF A2=93% then payout equals 93%

So basically I need code to say that if A2 is above 95% the payout is 100%
94 = 94
93 = 93
92 = 92

and so on down to 50%

ALL IN ONE STATEMENT.

Thanks

[ This Message was edited by: investr on 2002-05-02 10:20 ]
investr is offline   Reply With Quote
Old May 2nd, 2002, 11:23 AM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-02 10:19, investr wrote:
Ok folks..last one.

IF A2>=95% then payout equals 100%
IF A2=94% then payout equals 94%
IF A2=93% then payout equals 93%

So basically I need code to say that if A2 is above 95% the payout is 100%
94 = 94
93 = 93
92 = 92

and so on down to 50%

ALL IN ONE STATEMENT.

Thanks [img]/board/images/smiles/icon_smile.gif[/img]

[ This Message was edited by: investr on 2002-05-02 10:20 ]
Is it not:

=(A1>=95%)*100%+(A1<95%)*A1

or, if you like,

=IF(A1>=95%,100%,A1)

Aladin Akyurek is offline   Reply With Quote
Old May 2nd, 2002, 11:29 AM   #3
investr
New Member
 
Join Date: Apr 2002
Location: C Hawk
Posts: 10
Default

I have this
=IF(A9>=95%, 100%, IF(A9=94%, 94%))

but that doesn't help me with 93% = 93% and 92% = 92% etc...

I need this ALL in ONE statement

So if I plug in 96% in A2 then A3 says 100%
if I plug in 94% in A2 then A3 says 94%
and so on..get it?
investr is offline   Reply With Quote
Old May 2nd, 2002, 11:32 AM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-02 10:29, investr wrote:
I have this
=IF(A9>=95%, 100%, IF(A9=94%, 94%))

but that doesn't help me with 93% = 93% and 92% = 92% etc...

I need this ALL in ONE statement

So if I plug in 96% in A2 then A3 says 100%
if I plug in 94% in A2 then A3 says 94%
and so on..get it?
No, I don't get it.

Did you try what I suggested?
Aladin Akyurek is offline   Reply With Quote
Old May 2nd, 2002, 11:43 AM   #5
Asala42
Board Regular
 
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,030
Default

Hey again,

I'm still not sure what's wrong with:

=IF(A2>=95%,100%,A2) '--as you remember this was posted in your other thread as well as Aladin's post above.

Does it have something to do with your lower extreme of 50%? If A2<50% do you want the formula to still output 50%?

For example:
=IF(A2>=95%,100%,IF(A2<50%,50%,A2))

This basically states:
IF A2>=95% then output 100%
IF A2<50% then output 50%
Otherwise output A2 - this seems to fit your description

If this is incorrect then please specify exactly what we're missing - as there appears to be something I'm not quite getting.

Hope that helps
Adam

Asala42 is offline   Reply With Quote
Old May 2nd, 2002, 11:58 AM   #6
investr
New Member
 
Join Date: Apr 2002
Location: C Hawk
Posts: 10
Default

I need this all on ONE formula.

This is what I need cell B2 to have happen..in my laymen terms...

IF A2>=95% then output 100%
IF A2=94% then output 94%
IF A2=93% then output 93%

Down to 85% would be fine.

So if I knew how to combine all those conditions into one I would do it. That is why I am posting one at a time. ) So I need the formula to do all of what I stated above in ONE formula for cell B2

_________________
thanks!
C Hawk

[ This Message was edited by: investr on 2002-05-02 10:58 ]

[ This Message was edited by: investr on 2002-05-02 10:59 ]
investr is offline   Reply With Quote
Old May 2nd, 2002, 12:08 PM   #7
klb
Board Regular
 
Join Date: Apr 2002
Location: Minnesota
Posts: 821
Default

=if(or(a2>.95,a2=.95),1,a2)

This will return the value that is in A2 as your payout if it is less than .95
klb is offline   Reply With Quote
Old May 2nd, 2002, 12:11 PM   #8
investr
New Member
 
Join Date: Apr 2002
Location: C Hawk
Posts: 10
Default

BINGO!!!!!!!!!!

Thanks. Now that is what i needed.
investr is offline   Reply With Quote
Old May 2nd, 2002, 12:14 PM   #9
Asala42
Board Regular
 
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,030
Default

Ok

I'm going to break out your conditions in effort to see where the miscommunication is.

Condition 1:

Based on your description: the output value that you need in B2 appears to be the exact same as the input value in A2 -as long as A2 is <95%.

In Summary for Condition 1:

IF A2<95% then B2=A2

'e.g. if A2=94% then output the value 94% in cell B2. Likewise if A2=65% then B2 outputs 65%. --Does this not agree with your example?

Condition 2:

You want B2 to output 100% if A2 holds a value greater than or equal to 95%. So if A2=95%, then B2 outputs 100%. Likewise if A2=99% then B2 outputs 100%.

In Summary for condition 2:
IF A2>=95% then B2=100%


Total formula:

Therefore merging these 2 conditions into one formula:

=IF(A2>=95%,100%,A2) '-typed in B2

I'm really not seeing any difference in explanations between your last few posts. This formula seems to cover all requested conditions.

Any help?
Adam

Asala42 is offline   Reply With Quote
Old May 2nd, 2002, 12:15 PM   #10
Asala42
Board Regular
 
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,030
Default

lol!

Nevermind
Asala42 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 01:10 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