Identify largest text value in a column using array formula in excel
Array formula in B2:
=IF(ROWS(B2:$B$2)>ROWS(List), "", INDEX(List, MATCH(LARGE(IF(MAX(LEN(List))=LEN(List), (LEN(List)&","&ROW(List))*1, ""), ROWS(B2:$B$2)), IF(MAX(LEN(List))=LEN(List), (LEN(List)&","&ROW(List))*1, ""), 0))) + CTRL + SHIFT + ENTER copied down as far as needed.
Named ranges
List (A2:A19)
What is named ranges?
How to customize the formula to your excel spreadsheet
Change the named range. If your unique list starts at F3, change B2:$B$2 in the above array formula to $F$2:F2
Download excel sample file for this tutorial.
Largest text values.xls
(Excel 97-2003 Workbook *.xls)
Functions in this article:
MATCH(lookup_value;lookup_array; [match_type]
Returns the relative position of an item in an array that matches a specified value
INDEX(array,row_num,[column_num])
Returns a value or reference of the cell at the intersection of a particular row and column, in a given range
IF(logical_test;[value_if:true];[value_if_false])
Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE
ROW(reference) returns the rownumber of a reference
COUNTIF(range,criteria)
Counts the number of cells within a range that meet the given condition
MAX(number1,[number2],)
Returns the largest value in a set of values. Ignores logical values and text.
NOT(logical)
Changes FALSE to TRUE or TRUE to FALSE
LEN(text)
Returns the number of characters in a text string
LARGE(array,k) returns the k-th largest row number in this data set
ROWS(array) returns the number of rows in a reference or an array
Related posts:
- Extract largest values from two columns using array formula in excel
- Find the largest number in a dynamic column using excel formula
- Sort text values by length using array formula in excel
- Extract numbers and text from a range using array formula in excel
- Create unique distinct list sorted based on text length using array formula in excel
- Identify missing values in a column using excel formula
- Filter common text values in range 1 and in range 2 using array formula in excel
- Filter a column and create a new unique list sorted from A to Z using array formula in excel
- Filter text values existing in range 1 but not in range 2 using array formula in excel
- Create a list of all numbers or text in a column in excel



November 6th, 2009 at 5:44 pm
Dear Sir
I have a text name coloumn, there will be only 1 value to be listed in 1 coloumn in any cell i want tha the text come to be on top of coloum like we use the =min formula for a coloumn values in numaric data
like if data is numaric we put formula =MIN(E5:E20) but in this case datais text
plz help
Thanks
babar
November 7th, 2009 at 11:33 pm
See this blog post: http://www.get-digital-help.com/2009/11/07/text-to-be-on-top-of-column-in-excel/
November 8th, 2009 at 5:33 am
Oscar... I just looked at the blog post referenced by your link and thought you would want to know I just posted a shorter formula as a comment over there.