» Finding the Maximal / Minimal String, Based on Alphabetic Order
CATEGORY - Lookup Formulas
VERSION - All Microsoft Excel Versions
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:
- The 22 Immutable Laws of Marketing : Exposed and Explained by the World's Two
- Business Plans Kit for Dummies (With CD-ROM)
- Yes, You Can Time the Market!
- VBA for Modelers: Developing Decision Support Systems Using Microsoft« Excel
- MP Managerial Accounting w/ Topic Tackler, Net Tutor, & PowerWeb
- The Financial Numbers Game: Detecting Creative Accounting Practices
No comments have been submitted.

