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 Feb 23rd, 2002, 11:27 AM   #1
BIGHAIR
New Member
 
Join Date: Feb 2002
Posts: 3
Default

Can some one show me how to show the cell position on the worksheet that meets a specific critieria. I tried doing "What ifs" and the formula came to a hault after 9 or 10 "What ifs".
Example: I need to show cells that are >0.
A1=1,A2=0,A3=1,A4=0,A5=0,A6=1/2
Answer:
A1,A3,A6
I would use the values in each answer, A1,A3,A6 in my calculation.
My objective is to calculate the amount of time that's alotted in a 8 hour period for a person to walk from point to point and back a pre- calculated number of frequencies.
In the case of the example, a person would walk the distance from A1 to A3 100% of the time, and walk from A3 to A6 50% of the time. If the pre-calculated time alotted to walk between each cell is 3.8 minutes / 8 hours, then the end result to the example problem would total to 13.3 minutes / 8 hours.
I hope this is clear.

Thank you.


[ This Message was edited by: BIGHAIR on 2002-02-23 10:27 ]

[ This Message was edited by: BIGHAIR on 2002-02-23 10:44 ]

[ This Message was edited by: BIGHAIR on 2002-02-23 10:47 ]
BIGHAIR is offline   Reply With Quote
Old Feb 23rd, 2002, 11:42 AM   #2
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

Hi

Your hitting a limit of 7 ifs in one formula more and the formula will fail!

You and nest ifs with AND also OR if that helps, stick arround some wonderful gurus of the formula are on this board.

You need a to adjust the way your formuling but sadly a bit beyond me.

HTH
Rgds
==========
Jack
Jack in the UK is offline   Reply With Quote
Old Feb 23rd, 2002, 11:52 AM   #3
BIGHAIR
New Member
 
Join Date: Feb 2002
Posts: 3
Default

Thanks. I didn't realize I would get a response so quickly. I was still editing my message. I will try the ANDs or ORs. That's a lot of formulation. I have to cover 80 cells or distances.
BIGHAIR is offline   Reply With Quote
Old Feb 23rd, 2002, 12:24 PM   #4
Anne Troy
MrExcel MVP
 
Anne Troy's Avatar
 
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
Default

I'm not sure I understand the second part, but for the first part, can you use:

=SUMIF(A1:A6,">0")
__________________
~Anne Troy
Anne Troy is offline   Reply With Quote
Old Feb 23rd, 2002, 01:09 PM   #5
BIGHAIR
New Member
 
Join Date: Feb 2002
Posts: 3
Default

The SUMIF will only tell me the sum of the cells >0. I need a formula to tell me which cells are >0. i.e. Cell "A1" = a value greater than 0, so the answer in the cell with the formula will read "A1". Can this be done? If it can, I can use the answer "A1" in an other formula. I think?
BIGHAIR is offline   Reply With Quote
Old Feb 23rd, 2002, 01:26 PM   #6
Anne Troy
MrExcel MVP
 
Anne Troy's Avatar
 
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
Default

I've just reviewed the site and am unable to find the terms I agreed to so please don't *fire* me, Bill, if I'm not allowed to offer this:

BigHair: Feel free to email your file to dreamboat@thewordexpert.com if you want me to have a look-see.
__________________
~Anne Troy
Anne Troy is offline   Reply With Quote
Old Feb 23rd, 2002, 03:56 PM   #7
Anne Troy
MrExcel MVP
 
Anne Troy's Avatar
 
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
Default

I've looked over your file pretty extensively, Bighair. I apologize, but it would take me forever to figure it all out. Now that you've already written the email, however, perhaps someone better than me could help you with it faster. And there are many better than me, I'm sure!

Sorry if I wasted your time!
__________________
~Anne Troy
Anne Troy is offline   Reply With Quote
Old Feb 23rd, 2002, 07:40 PM   #8
Albert 1
Board Regular
 
Join Date: Feb 2002
Posts: 390
Default

To show the cells > 0:
In B1, type: =IF(A1>0,ADDRESS(ROW(A1),1),"")
Copy this formula down, so in B2 comes: =IF(A2>0,ADDRESS(ROW(A2),1),"")
etc.


[ This Message was edited by: Albert 1 on 2002-02-23 18:51 ]
Albert 1 is offline   Reply With Quote
Old Feb 23rd, 2002, 11:00 PM   #9
Rocky E
Board Regular
 
Join Date: Feb 2002
Location: North Alabama, USA
Posts: 105
Default

OK I admit I don't fully understand your problem, but the first thing I try to do is analysis of the data. Either added a sort column with line numbers or make a copy to fiddle with. Then sort the whole thing to group the rows. This may give you some insight if the amount of data is not too great.

Excel has a feature call array formulas that is useful on large data sets. Kind of a super sum if with multiple and, or abilities. Search for it or give me a better example.
http://www.cpearson.com/excel/array.htm has a good expiation of array formula.

HTH

Rocky...

PS Another post reminded me they are also called CSE formula for Control-Shift-Enter. Because to enter one you must end with CSE. So you can just search for CSE.

[ This Message was edited by: Rocky E on 2002-02-23 22:05 ]

[ This Message was edited by: Rocky E on 2002-02-23 22:05 ]
Rocky E 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:03 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