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 16th, 2002, 10:49 PM   #1
Phylis Sophical
New Member
 
Join Date: Jan 2002
Location: Canada
Posts: 42
Default

This is somewhat the same problem I had with a zero value in the divide cell. I am adding up every other cell, then dividing it by a total of several other non consecutive cells. This is my formula so far:
=SUM(B4,B12,B20,B28,B36,B44)/SUM(B9,B17,B25,B33,B41,B49)

I want to do something like what you showed me before with the =IF(A1=0,0,(rest of formula.

Do I have to do the =IF and then list every one of these cells or is there a shorter way?

[ This Message was edited by: Phylis Sophical on 2002-04-16 23:14 ]
Phylis Sophical is offline   Reply With Quote
Old Apr 17th, 2002, 12:12 AM   #2
Phylis Sophical
New Member
 
Join Date: Jan 2002
Location: Canada
Posts: 42
Default

Once again, I think I answered my own question but I would like to know if others think this will work. I won't really know until I have some figures to put into the cells. Here's what I did:
=IF(B4:B49=0,0,(B4,B12,B20,B28,B36,B44)/SUM(B9,B17,B25,B33,B41,B49))
So the first part says to ignore any cells between B4 and B49 if they have a zero value. Otherwise, add the first bunch and divide by the second bunch. Does it look right?
Phylis Sophical is offline   Reply With Quote
Old Apr 17th, 2002, 12:25 AM   #3
Ivan F Moala
MrExcel MVP
 
Ivan F Moala's Avatar
 
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
Default

Quote:
On 2002-04-16 23:12, Phylis Sophical wrote:
Once again, I think I answered my own question but I would like to know if others think this will work. I won't really know until I have some figures to put into the cells. Here's what I did:
=IF(B4:B49=0,0,(B4,B12,B20,B28,B36,B44)/SUM(B9,B17,B25,B33,B41,B49))
So the first part says to ignore any cells between B4 and B49 if they have a zero value. Otherwise, add the first bunch and divide by the second bunch. Does it look right?
Try
=IF(SUM(B9,B17,B25,B33,B41,B49)=0,0,(B4,B12,B20,B28,B36,B44)/SUM(B9,B17,B25,B33,B41,B49))


__________________
Kind Regards,
Ivan F Moala From the City of Sails
Ivan F Moala is offline   Reply With Quote
Old Apr 17th, 2002, 12:27 AM   #4
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-04-16 21:49, Phylis Sophical wrote:
This is somewhat the same problem I had with a zero value in the divide cell. I am adding up every other cell, then dividing it by a total of several other non consecutive cells. This is my formula so far:
=SUM(B4,B12,B20,B28,B36,B44)/SUM(B9,B17,B25,B33,B41,B49)

I want to do something like what you showed me before with the =IF(A1=0,0,(rest of formula.

Do I have to do the =IF and then list every one of these cells or is there a shorter way?

[ This Message was edited by: Phylis Sophical on 2002-04-16 23:14 ]
Hi Phylis,

I'm entirely sure what you're trying to achieve here,
I am adding up every other cell?

=SUM(B4,B12,B20,B28,B36,B44)/SUM(B9,B17,B25,B33,B41,B49)

isn't every other cell?

then dividing it by a total of several other non consecutive cells.

=SUM(B4,B12,B20,B28,B36,B44)/SUM(B9,B17,B25,B33,B41,B49)

What is the relevance of these cells, what makes these cells the ones you need to use?

Would you care to explain a little further. So I can better understand your problem.

Many thanks

__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old Apr 17th, 2002, 01:06 AM   #5
Phylis Sophical
New Member
 
Join Date: Jan 2002
Location: Canada
Posts: 42
Default

Ian please excuse me for not making this more clear. Yes it was more than every other cell. I should know better. Part of the problem I find with Excel is trying to explain oneself as Excel is a language unto it's own. Here is a more detailed explanation:

This is a questionaire that has 6 questions and a possibility of 5 diffrent responses from Outstanding to Poor. B4,12,20,28,36,44 represent Outstanding for each of the 6 questions.

The other series, B9,17,25,33,41,49 represent the total amount of responses to each question. (All the Oustandings, Excellents, Goods, Okay's and Poor's combined)

I am trying to determine what percentage of the total responses are Outstanding. And so on with the others. So I take all the outstandings and devide that by the total number of responses to all 6 questions.

The formula I had, worked out fine except that if there is no value in the divisor cell, I get #DIV/0! in every cell I make this formula in. (1 formula cell for every Outstanding, Excellent, etc. times 12 months. That's 72 cells that I need this formula for a Summary of all questions. That's alot of #DIV/0!'s!!!!

I noticed that people do post their worksheets but this takes up an intire 8 1/2 X 14" sheet.
Phylis Sophical is offline   Reply With Quote
Old Apr 17th, 2002, 07:36 AM   #6
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-04-17 00:06, Phylis Sophical wrote:
Ian please excuse me for not making this more clear. Yes it was more than every other cell. I should know better. Part of the problem I find with Excel is trying to explain oneself as Excel is a language unto it's own. Here is a more detailed explanation:

This is a questionaire that has 6 questions and a possibility of 5 diffrent responses from Outstanding to Poor. B4,12,20,28,36,44 represent Outstanding for each of the 6 questions.

The other series, B9,17,25,33,41,49 represent the total amount of responses to each question. (All the Oustandings, Excellents, Goods, Okay's and Poor's combined)

I am trying to determine what percentage of the total responses are Outstanding. And so on with the others. So I take all the outstandings and devide that by the total number of responses to all 6 questions.

The formula I had, worked out fine except that if there is no value in the divisor cell, I get #DIV/0! in every cell I make this formula in. (1 formula cell for every Outstanding, Excellent, etc. times 12 months. That's 72 cells that I need this formula for a Summary of all questions. That's alot of #DIV/0!'s!!!!

I noticed that people do post their worksheets but this takes up an intire 8 1/2 X 14" sheet.
OK then,

What are the values in the 'outstanding' cells, the 'Excellent' etc.?

I feel this may be better achieved using count. Putting the value into just 1 cell i.e. 1 to 5 = poor-outstanding.

then working with that data.

if you like you could e-mail an example of your problem and I could look further into it, there must a ton ways to achieve the desired result and would like to see which I could suggest.

__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old Apr 17th, 2002, 09:52 AM   #7
Dave Patton
Board Regular
 
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
Default


On the assumption that the two sets of numbers yield a useful Average.

=IF(SUM(B9,B17,B25,B33,B41,B49),(SUM(B4,B12,B20,B28,B36,B44)/SUM(B9,B17,B25,B33,B41,B49)),"")

or name the two sets of numbers

=IF(SUM(rY),SUM(rX)/SUM(rY))
Dave Patton 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 05:09 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