#1   Report Post  
tonywig
 
Posts: n/a
Default MAX text


I want to find the highest value in a column of text.
MAX (it appears) only deals with numeric values.

MUST be possible surely since I can sort on that column OK.


Any help greatfully received.


--
tonywig


------------------------------------------------------------------------
tonywig's Profile: http://www.excelforum.com/member.php...o&userid=18985
View this thread: http://www.excelforum.com/showthread...hreadid=379061

  #2   Report Post  
Sandy Mann
 
Posts: n/a
Default

If you are just talking about the first letter in the text then
=CHAR(MAX(CODE(LEFT(G1:G4,1))))

array entered (Ctrl + Shift + Enter) will return the *Max* character

I don't know if this is what you want

Regards

"tonywig" wrote in
message ...

I want to find the highest value in a column of text.
MAX (it appears) only deals with numeric values.

MUST be possible surely since I can sort on that column OK.


Any help greatfully received.


--
tonywig


------------------------------------------------------------------------
tonywig's Profile:

http://www.excelforum.com/member.php...o&userid=18985
View this thread: http://www.excelforum.com/showthread...hreadid=379061



  #3   Report Post  
Domenic
 
Posts: n/a
Default


Assuming that A1:A10 contains your text values...

B1, copied down:

=(COUNTIF($A$1:$A$10,""&A1)+1)+(COUNTIF($A$1:A1,A 1)-1)

C1:

=INDEX(A1:A10,MATCH(MIN(B1:B10),B1:B10,0))

Hope this helps!


--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=379061

  #4   Report Post  
Harlan Grove
 
Posts: n/a
Default

Domenic wrote...
Assuming that A1:A10 contains your text values...

B1, copied down:

=(COUNTIF($A$1:$A$10,""&A1)+1)+(COUNTIF($A$1:A1, A1)-1)

C1:

=INDEX(A1:A10,MATCH(MIN(B1:B10),B1:B10,0))

....

Ancillary cells not needed. This can be done with a single nonarray
formula.

=LOOKUP(2,1/(COUNTIF(A1:A10,""&A1:A10)=0),A1:A10)

  #5   Report Post  
Domenic
 
Posts: n/a
Default

Nice one! Thanks Harlan!

In article . com,
"Harlan Grove" wrote:

Domenic wrote...
Assuming that A1:A10 contains your text values...

B1, copied down:

=(COUNTIF($A$1:$A$10,""&A1)+1)+(COUNTIF($A$1:A1, A1)-1)

C1:

=INDEX(A1:A10,MATCH(MIN(B1:B10),B1:B10,0))

...

Ancillary cells not needed. This can be done with a single nonarray
formula.

=LOOKUP(2,1/(COUNTIF(A1:A10,""&A1:A10)=0),A1:A10)



  #6   Report Post  
Gord Dibben
 
Posts: n/a
Default

tony

What do you mean by "highest value" when it comes to text?

Text has no value AFAICT.

Do you mean "which cell has the most text"?

=MAX(LEN(A1:A10)) entered with CTRL + SHIFT + ENTER


Gord Dibben Excel MVP

On Tue, 14 Jun 2005 11:36:38 -0500, tonywig
wrote:


I want to find the highest value in a column of text.
MAX (it appears) only deals with numeric values.

MUST be possible surely since I can sort on that column OK.


Any help greatfully received.


  #7   Report Post  
Harlan Grove
 
Posts: n/a
Default

Gord Dibben wrote...
Text has no value AFAICT.

....

If it can be sorted in a well-defined way (and it can), it at least has
ordinal values, so MAX = last *DOES* have a well-defined meaning.

  #8   Report Post  
tonywig
 
Posts: n/a
Default


Thank you all for your suggestions.
I went with Harlan's.

Much obliged.


--
tonywig


------------------------------------------------------------------------
tonywig's Profile: http://www.excelforum.com/member.php...o&userid=18985
View this thread: http://www.excelforum.com/showthread...hreadid=379061

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting based on Text within Text George Lynch Excel Discussion (Misc queries) 3 May 5th 05 07:58 PM
SUMPRODUCT vs Text??? Ken Excel Worksheet Functions 2 April 9th 05 07:21 PM
Autofitting a row Josephine Excel Discussion (Misc queries) 2 March 3rd 05 03:37 PM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"