» Finding the Maximal / Minimal String, Based on Alphabetic Order
CATEGORY - Lookup Formulas
VERSION - All Microsoft Excel Versions
Problem:Finding the maximal and minimal name (text) within List1 (column A), based on alphabetic order of the first character of each name (text).
Solution:
To retrieve the maximal name within column A, use the INDEX, MATCH, MAX, and COUNTIF functions as shown in the following Array formula:
{=INDEX(A2:A8,MATCH(MAX(COUNTIF(A2:A8,"<"&A2:A8)),COUNTIF(A2:A8,"<"&A2:A8),0))}
To retrieve the minimal name within column A, use the INDEX, MATCH, MIN, and COUNTIF functions as shown in the following Array formula:
{=INDEX(A2:A8,MATCH(MIN(COUNTIF(A2:A8,"<"&A2:A8)),COUNTIF(A2:A8,"<"&A2:A8),0))}
Book Store:
Recommended Books:
- Rich Dad, Poor Dad: What the Rich Teach Their Kids About Money--That the Poor and Middle Class Do Not!
- Microsoft Excel 2002 Visual Basic for Applications Step by Step
- Marketing Plans
- Investments + S&P Card + Powerweb + StockTrak discount coupon
- How to Use Financial Statements: A Guide to Understanding the Numbers
- Adventure Capitalist: The Ultimate Road Trip
No comments have been submitted.

