Solved

Excel formula to get the max value based on a condition

Posted on 2007-03-22
1
1,237 Views
Last Modified: 2009-07-04
Hi,

I have a list of values in Excel as follows.

10506
10810
21085
10259
20735
31082
20133
31000
10616
10084
20515
30365
10395

The number range from 10000 to 40000. I need a formula that will calculate the max value of the list based on a given condition. For example, I want the maximum value of all the values between 10000 and 20000. I've tried using combination of IF and MAX functions without much success. I guess what I need is something like a MAXIF function (similar to COUNTIF and SUMIF). Sorting based on the number is not an option as this list is constantly updated and the formula needs to robust enough to handle this without requiring a resort.

Appreciate any ideas you guys may have. Thanks
0
Comment
Question by:java-bean
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
seistante earned 500 total points
ID: 18769732
Hi, Java-bean

Assuming your range is in column A ,
On  column B enter following,
( (A1>=10000)*(A1<=20000) ) and copy down...
On Column C enter following
=B1*A1 and copy down
From Column C extract,  Max

Hope this helps

Pedro

Pedro
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

738 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