Solved

Excel Question regarding formulas

Posted on 2006-07-20
3
162 Views
Last Modified: 2010-04-30
I am using the following formula to compute the average of a set of numbers from a column if an associated number is greater then or equal to 4.

I would like to do the same thing but find the Min, Max and Median for Column B.

Column A and B are next to each other so if the number in A is greater than or equal to 4, I take the number next to it in column B and do the computation.

Any help would be appriciated, this stuff gives me a headache sometimes.

The formula I am using for Average of thes number is listed below and works fine.

Thanks,


=SUMIF(A1:A10,">=4",B1:B10)/COUNTIF(A1:A10,">=4")
0
Comment
Question by:wvbeaner
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
mwharff earned 250 total points
ID: 17148373
{=MAX(IF(a1:a10>4,b1:b10,""))}
{=MIN(IF(a1:a10>4,b1:b10,""))}
{=MEDIAN(a1:a10>4,b1:b10,""))}

These are array formulas.  Use Ctrl-Shift-Enter instead of just typing enter.

Hope this helps.

Mike
0
 

Author Comment

by:wvbeaner
ID: 17148645
Works Beautifully.  

Thanks for the quick response.
0
 
LVL 6

Expert Comment

by:mwharff
ID: 17148709
Thanks for the points and the grade.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Opening Remote & Local Data Connection 2 51
VB error "Type mismatch" 2 51
Microsoft Access combo box help 2 38
Getting warning: You are about to delete 1 row(s) 9 43
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now