MrExcel Message Board

PDF to Excel


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Notices

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 Jun 20th, 2003, 12:18 PM   #1
Rains
New Member
 
Join Date: Jun 2003
Posts: 9
Default IF formula

I am currently struggling with a formula within excel. I have created a list box and a list of dates with the cell link in cell F1. i have a value in cell E7 and a number in AH4. my formula is :-

=if(and(F1=1,E7>0),AH4+1,AH4)

What i'm trying to achieve is that if F1 does not = 1 and E7 is not > 0 then display nothing, zilch..... but it will always display the value in AH4 ???


Help anybody please.....

[/b]
Rains is offline   Reply With Quote
Old Jun 20th, 2003, 12:27 PM   #2
LTunnicliffe
Board Regular
 
LTunnicliffe's Avatar
 
Join Date: May 2003
Location: Round Rock, TX
Posts: 767
Default Re: IF formula

Well, try:

=if(and(F1=1, E7<0),YourFormula,0)

I'm not sure what your formula is but you can put it in there. Hope this helps!
__________________
Loren

The numbers don't lie, but sometimes they don't tell the whole truth.
LTunnicliffe is offline   Reply With Quote
Old Jun 20th, 2003, 12:38 PM   #3
TheClayTaurus
Board Regular
 
Join Date: May 2003
Location: Severna Park
Posts: 170
Default Re: IF formula

you haven't put anything in to tell it to put "zilch" in

right now its always going to either output AH4+1 or AH4

make sense?
TheClayTaurus is offline   Reply With Quote
Old Jun 20th, 2003, 12:59 PM   #4
HalfAce
MrExcel MVP
 
HalfAce's Avatar
 
Join Date: Apr 2003
Location: Alaska
Posts: 8,670
Default Re: IF formula

Try this:

=IF(AND(F1=1,E7>0),AH4+1,””)

Hope it helps.
HalfAce is offline   Reply With Quote
Old Jun 23rd, 2003, 10:40 AM   #5
Rains
New Member
 
Join Date: Jun 2003
Posts: 9
Default Re: IF formula

Thank you all for you responses but maybe i should elaborate further :-

=IF(AND(F1=1,E7>0),AH4+1,””) works fine but what i really want is to say that

=IF(AND(F1=1,E7>0),AH4+1,AH4,"") what i want is a 3rd statement ???

i don't what the cell to show any figures if F1=1, E7>0 is false bit if true then i want either AH4+1 or AH4...

I know this sounds confusing but it would be easier to show than explain!!!

Rains is offline   Reply With Quote
Old Jun 23rd, 2003, 10:55 AM   #6
Northerner
Board Regular
 
Join Date: Nov 2002
Posts: 149
Default Re: IF formula

Not sure what you third requirement is but Nest your IFs.
IF(AND(A1=1,B1=1),"A1+B1=1",IF(and(A1=1,B1=2),"A1=1 and B1=2"),"Nothing")

You can 'Nest' up to 7 IFs within themselves.
Hope this helps
Northerner is offline   Reply With Quote
Old Jun 23rd, 2003, 12:45 PM   #7
bosco_yip
Board Regular
 
Join Date: Dec 2002
Posts: 1,144
Default Re: IF formula

1) Your F1 appeared not a value, so that the formula cannot be worked

2) Try :
=IF(AND(F1=1&"",E7>0),AH4+1,AH4)

Hope can helps

Regards
Bosco
bosco_yip 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 08:40 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