Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Software > Spreadsheets   »   if then sum count quotient?

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Jan 18, 2008, 06:19 PM
smokingbaby
New Member
smokingbaby is offline
 
Join Date: Jan 2008
Posts: 2
smokingbaby See this member's comment history on his/her Profile page.
if then sum count quotient?

I'm a real rookie at this excel stuff. Hope someone can help. Here's what i need... in cells A1,B1,C1,D1,E1 a 1,2, or 3 will be entered in each. I need cell F1 to tell me which number occurred 3 times or more within those cells. If a # didn't occur more than three times I need a 0 displayed in cell F1. Additionally, if cell F1=0,1,or 2 I need the QUOTIENT of (A1+B1+C1+D1+E1)/15 displayed in G1. Is this possible in excel???

Reply With Quote
 
     

Answers
 
 
Old Jan 19, 2008, 05:39 AM   #2  
mdosh01
Junior Member
mdosh01 is offline
 
Join Date: Dec 2007
Posts: 33
mdosh01 See this member's comment history on his/her Profile page.
There are multiple ways to approach this. Let's see if I have the conditions correct. Cells A1 through E1 may contain one number: 1, 2, or 3. You need to know if any number occurs 3 times or more. So if the number 1 occurs 3 or more times, display 1 in cell F1. Otherwise display 0. Also, only if the results in F1 is 0, 1, or 2, sum the numbers in cells A1 thru E1 and divide by 15. However, if F1 equals 3, do not perform this calculation.

An easy way to do this is to use three separate cells to determine if a number occurs more than 3 times.

In cell B3 enter: =COUNTIF(A1:E1,"1")
In cell B4 enter: =COUNTIF(A1:E1,"2")
In cell B5 enter: =COUNTIF(A1:E1,"3")

Now I know how many times each number occurs in the range. The formulas above could be placed anywhere in the spreadsheet.

The formula in F1 becomes:

=IF(B3<3,IF(C3<3,IF(D3<3,0,3),2),1)

So I'm checking to see if the number 1 occurs less than 3 times, if it does, I move on to the number 2. If not, I know no other number can occur more than 3 times so the value becomes "1".

The formula in G1 is:

=IF(F1>=0,IF(F1<3,SUM(A1:E1)/15,""))

If the cell F1 contains a number 0, 1 or 2, I sum(a1:e1) and divide by 15. Otherwise I leave the cell blank. Note that if I want to include the number 3, I would change "F1<3" to "F1<=3".

Many other ways to do this. Hope this one works for you.
  Reply With Quote
 
     
 
 
Old Jan 20, 2008, 08:46 AM   #3  
smokingbaby
New Member
smokingbaby is offline
 
Join Date: Jan 2008
Posts: 2
smokingbaby See this member's comment history on his/her Profile page.
You're a genius big head! Thanks so much!
  Reply With Quote
 
     
 
 
Old Jan 20, 2008, 05:34 PM   #4  
mdosh01
Junior Member
mdosh01 is offline
 
Join Date: Dec 2007
Posts: 33
mdosh01 See this member's comment history on his/her Profile page.
No problem. Glad this worked for you.
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
does it count? Death_Maniac Dating 3 Jun 11, 2008 09:58 AM
Differentiating first principles/Quotient rule dcfcviper Mathematics 4 Dec 10, 2007 12:10 PM
How to keep a Dance Count going on? honeysucklebird2418 Dance 3 May 7, 2007 09:48 PM
Does his in come count? JS29 Family Law 1 Apr 20, 2007 04:56 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 02:47 AM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.