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 Mar 29th, 2002, 08:49 AM   #1
SharonDrumm
New Member
 
Join Date: Mar 2002
Posts: 3
Default

I am trying to create a formula in a new cell that says if any of three other cells are not blank, then fill the contents of new cell with same text as in a different cell, otherwise don't put anything in the new cell.

I can't write the correct formula. What's more, I cannot figure out how to cycle through more than one set of the formulae in each cell. This is important because I don't want to leave a blank cell (and therefore in this instance, a blank row) for every instance when the argument is true (all are blank).

Any help is really appreciated. My skills are just not this developed, although I can conceive of what I want to do!

Sharon
SharonDrumm is offline   Reply With Quote
Old Mar 29th, 2002, 08:55 AM   #2
lenze
MrExcel MVP
 
lenze's Avatar
 
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
Default

Instead of ISBLANK, try using COUNT or COUNTA. Maybe something like =IF(COUNTA(ThreeCells)>0,CellAddress,"")

[ This Message was edited by: lenze on 2002-03-29 07:56 ]
lenze is offline   Reply With Quote
Old Mar 29th, 2002, 08:58 AM   #3
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-03-29 07:49, SharonDrumm wrote:
I am trying to create a formula in a new cell that says if any of three other cells are not blank, then fill the contents of new cell with same text as in a different cell, otherwise don't put anything in the new cell.

I can't write the correct formula. What's more, I cannot figure out how to cycle through more than one set of the formulae in each cell. This is important because I don't want to leave a blank cell (and therefore in this instance, a blank row) for every instance when the argument is true (all are blank).

Any help is really appreciated. My skills are just not this developed, although I can conceive of what I want to do!

Sharon
Lets say that A1, B1, and C1 are the cells we want to test for being blank in D1 and E1 contains the relevant text:

=IF(OR(LEN(A1),LEN(B1),LEN(C1)),E1,"")
Aladin Akyurek is offline   Reply With Quote
Old Mar 29th, 2002, 09:05 AM   #4
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-03-29 07:49, SharonDrumm wrote:
I am trying to create a formula in a new cell that says if any of three other cells are not blank, then fill the contents of new cell with same text as in a different cell, otherwise don't put anything in the new cell.

I can't write the correct formula. What's more, I cannot figure out how to cycle through more than one set of the formulae in each cell. This is important because I don't want to leave a blank cell (and therefore in this instance, a blank row) for every instance when the argument is true (all are blank).

Any help is really appreciated. My skills are just not this developed, although I can conceive of what I want to do!

Sharon
Hi Sharon:
We need a little bit of more specificity here -- "when you say any of three other cells are not blank" -- Do you mean all three (each one of them is not blank), or any (any one of them is not blank).
Well anyway, here is a small example I have for you to consider:
A5=Great!
Cell C5=1
D5=2
E5=3
in cell F5 I am going to write a formula that checks whether all (each one of C5, D5, and E5) is blank -- if this condition is met, put in the value in cell A5 -- otherwise leave it blank

'=IF(AND(ISBLANK(C5),ISBLANK(D5),ISBLANK(E5)),A5,"")

HTH
Please post back if it works for you ... otherwise explain a little further and let us take it from there!

_________________
Yogi Anand

Edit: Deleted inactive website from hardcoded signature

[ This Message was edited by: Yogi Anand on 2003-01-19 14:16 ]
Yogi Anand is offline   Reply With Quote
Old Mar 29th, 2002, 09:07 AM   #5
wi_guy
Board Regular
 
Join Date: Mar 2002
Posts: 50
Default

Assuming data is in cells a1,a2,a3, and cells to reference are a4 and a5


=IF(AND(ISBLANK(A1),ISBLANK(A2),ISBLANK(A3)),A4,A5)
wi_guy is offline   Reply With Quote
Old Mar 29th, 2002, 09:08 AM   #6
wi_guy
Board Regular
 
Join Date: Mar 2002
Posts: 50
Default

Sheesh....you "MASTERS" are quick!!
wi_guy is offline   Reply With Quote
Old Mar 29th, 2002, 09:17 AM   #7
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Yogi & wi_guy,

Put in one of the target cells,

=IF(ZX,1,"") [ ZX must be an "untouched" cell ]

then try the ISBLANK formula you suggested.

Aladin
Aladin Akyurek is offline   Reply With Quote
Old Mar 29th, 2002, 09:46 AM   #8
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-03-29 08:17, Aladin Akyurek wrote:
Yogi & wi_guy,

Put in one of the target cells,

=IF(ZX,1,"") [ ZX must be an "untouched" cell ]

then try the ISBLANK formula you suggested.

Aladin
Hi Aladin:
I see your point that with the scenario you proposed, the affected target cell would appear to be blank -- but it really wouldn't be blank -- it will have a formula in it. So the formula that my cyber-buddy wi_guy and I proposed works as expected. I hope I am not missing some thing here!
Yogi Anand is offline   Reply With Quote
Old Mar 29th, 2002, 10:17 AM   #9
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-03-29 08:46, Yogi Anand wrote:
Quote:
On 2002-03-29 08:17, Aladin Akyurek wrote:
Yogi & wi_guy,

Put in one of the target cells,

=IF(ZX,1,"") [ ZX must be an "untouched" cell ]

then try the ISBLANK formula you suggested.

Aladin
Hi Aladin:
I see your point that with the scenario you proposed, the affected target cell would appear to be blank -- but it really wouldn't be blank -- it will have a formula in it. So the formula that my cyber-buddy wi_guy and I proposed works as expected. I hope I am not missing some thing here!
In A1 enter:

=IF(ZX,1,"") [ ZX must be an "untouched" cell ]

B1 is a untouched cell (nothing in it)

C1 is a untouched cell (nothing in it)

In E1 enter: Great

In D1 enter:

=IF(AND(ISBLANK(A1),ISBLANK(B1),ISBLANK(C1)),E1,"")

Note. What Sharon wants is I think something different, but that's not the issue here.

What do you get?

Aladin

Aladin Akyurek is offline   Reply With Quote
Old Mar 29th, 2002, 10:40 AM   #10
SharonDrumm
New Member
 
Join Date: Mar 2002
Posts: 3
Default

IF(AND(ISBLANK(C5),ISBLANK(D5),ISBLANK(E5)),A5,"")
HTH
Please post back if it works for you ... otherwise explain a little further and let us take it from there!

_________________
Yogi Anand
ANAND Enterprises
http://www.handtech.com/anand yogia@hotmail.com

[ This Message was edited by: Yogi Anand on 2002-03-29 08:07 ]
[/quote]

Thank you! This worked. Now, the second part of my problem is not fixed. The idea is that on one worksheet, I have a checklist users will fill out. If certain criteria are met (some columns are checked), then I want that row value to appear on the next worksheet, where the user will go through another check-off exercise.

Using the formula you describe above, I can fill in the cells down one column, referencing the work done on the previous worksheet. Problem is, if none of the criteria are met for one cell, the whole row is left blank. Do you get my drift? If the criteria are met for only one observation on the previous worksheet, I could conceivably have 4 rows filled in interspersed with 20 blank rows on the new worksheet.

Any thoughts on this problem? Again, thanks for the formula!

Sharon

[ This Message was edited by: SharonDrumm on 2002-03-29 09:41 ]
SharonDrumm 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 12:33 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