ExcelTip.com
ExcelTip.com
Account Icon Account Icon Account Icon
Google Exceltip.com
JOIN OUR NEWSLETTER
  and receive for joining:
Free eBook Learn More!
Free Excel ADD-IN
Free Weekly Excel Tip
4 e-books in cd-rom
F1 Formulas & Functions
F1 Formulas & Functions
F1 EXCEL
F1 eBook (Spanish)
F1 EXCEL
Financial Statements.xls
 

» Find the maximum numerical value in a list based on a criteria in Microsoft Excel


The following values appear in cells A1:A8

A1
A 0.573
A2
N 0.580
A3
N 0.578
A4
X 0.525
A5
Y 0.581
A6
A 0.612
A7
Y 0.556
A8
X 0.551


To find the maximum numerical number in the range which the first character starts with Y, perform the following steps:
  1. Select column A
  2. From the data menu choose Text to Columns
  3. At step 1 of 3 select Delimited then press Next
  4. At step 2 of 3 select Space, and press Next
  5. At step 3 of 3 press finish

The Result

column A
column B
A
0.573
N
0.580
N
0.578
X
0.525
Y
0.581
A
0.612
Y
0.556
X
0.551

Enter the following criteria in cell C1: Y

Enter the formula in cell D1: {=MAX((A1:A8=C1)*(B1:B8))}

The result = 0.581


Please note: The formula is an Array Formula, after entering the formula in the cell, press F2 and than press Ctrl+Shift+Enter

Rate this tip
12 34 5
  RATING: 3.14
  VIEWS: 24309

READER COMMENTS (view all comments)


No comments have been submitted.


REGISTERED USERS - Click here to post comments


GUESTS (Click here to register)
Name
Comment Title
Comments

Who Moved My Cheese? An Amazing Way to Deal with Change in Your Work and in Your Life

Learn MS Excel 2002 VBA/XML Programming

Rich Dad's Guide to Investing: What the Rich Invest in, That the Poor and the Middle Class Do Not!

Microsoft Outlook 2002 for Dummies

VBA for Modelers: Developing Decision Support Systems Using Microsoft« Excel

Writing Excel Macros with VBA, 2nd Edition

RELATED MICROSOFT EXCEL TIPS


Convert PDF Files to Excel


Excel VBA books
Accounting books
Business Plans
MS Office books
Taxes books

VIEW ALL BOOKS