+ Reply to Thread
Results 1 to 53 of 53

MAX text

  1. #1
    Forum Contributor
    Join Date
    01-26-2005
    Posts
    108

    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.
    Tony

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    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))

    Hope this helps!

  3. #3
    Sandy Mann
    Guest

    Re: MAX text

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  4. #4
    Harlan Grove
    Guest

    Re: MAX text

    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. #5
    Domenic
    Guest

    Re: MAX text

    Nice one! Thanks Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> 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. #6
    Gord Dibben
    Guest

    Re: MAX text

    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
    <[email protected]> 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. #7
    Harlan Grove
    Guest

    Re: MAX text

    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. #8
    Forum Contributor
    Join Date
    01-26-2005
    Posts
    108
    Thank you all for your suggestions.
    I went with Harlan's.

    Much obliged.

  9. #9
    Harlan Grove
    Guest

    Re: MAX text

    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)


  10. #10
    Harlan Grove
    Guest

    Re: MAX text

    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.


  11. #11
    Gord Dibben
    Guest

    Re: MAX text

    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
    <[email protected]> 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.



  12. #12
    Domenic
    Guest

    Re: MAX text

    Nice one! Thanks Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> 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)


  13. #13
    Sandy Mann
    Guest

    Re: MAX text

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  14. #14
    Sandy Mann
    Guest

    Re: MAX text

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  15. #15
    Harlan Grove
    Guest

    Re: MAX text

    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)


  16. #16
    Domenic
    Guest

    Re: MAX text

    Nice one! Thanks Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> 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)


  17. #17
    Gord Dibben
    Guest

    Re: MAX text

    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
    <[email protected]> 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.



  18. #18
    Harlan Grove
    Guest

    Re: MAX text

    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.


  19. #19
    Domenic
    Guest

    Re: MAX text

    Nice one! Thanks Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> 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)


  20. #20
    Harlan Grove
    Guest

    Re: MAX text

    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)


  21. #21
    Gord Dibben
    Guest

    Re: MAX text

    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
    <[email protected]> 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.



  22. #22
    Harlan Grove
    Guest

    Re: MAX text

    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.


  23. #23
    Sandy Mann
    Guest

    Re: MAX text

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  24. #24
    Harlan Grove
    Guest

    Re: MAX text

    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.


  25. #25
    Gord Dibben
    Guest

    Re: MAX text

    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
    <[email protected]> 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.



  26. #26
    Domenic
    Guest

    Re: MAX text

    Nice one! Thanks Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> 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)


  27. #27
    Harlan Grove
    Guest

    Re: MAX text

    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)


  28. #28
    Sandy Mann
    Guest

    Re: MAX text

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  29. #29
    Sandy Mann
    Guest

    Re: MAX text

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  30. #30
    Harlan Grove
    Guest

    Re: MAX text

    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)


  31. #31
    Domenic
    Guest

    Re: MAX text

    Nice one! Thanks Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> 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)


  32. #32
    Gord Dibben
    Guest

    Re: MAX text

    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
    <[email protected]> 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.



  33. #33
    Harlan Grove
    Guest

    Re: MAX text

    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.


  34. #34
    Sandy Mann
    Guest

    Re: MAX text

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  35. #35
    Harlan Grove
    Guest

    Re: MAX text

    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)


  36. #36
    Domenic
    Guest

    Re: MAX text

    Nice one! Thanks Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> 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)


  37. #37
    Gord Dibben
    Guest

    Re: MAX text

    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
    <[email protected]> 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.



  38. #38
    Harlan Grove
    Guest

    Re: MAX text

    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.


  39. #39
    Sandy Mann
    Guest

    Re: MAX text

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  40. #40
    Harlan Grove
    Guest

    Re: MAX text

    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)


  41. #41
    Domenic
    Guest

    Re: MAX text

    Nice one! Thanks Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> 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)


  42. #42
    Gord Dibben
    Guest

    Re: MAX text

    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
    <[email protected]> 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.



  43. #43
    Harlan Grove
    Guest

    Re: MAX text

    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.


  44. #44
    Sandy Mann
    Guest

    Re: MAX text

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  45. #45
    Harlan Grove
    Guest

    Re: MAX text

    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.


  46. #46
    Gord Dibben
    Guest

    Re: MAX text

    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
    <[email protected]> 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.



  47. #47
    Domenic
    Guest

    Re: MAX text

    Nice one! Thanks Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> 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)


  48. #48
    Harlan Grove
    Guest

    Re: MAX text

    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)


  49. #49
    Harlan Grove
    Guest

    Re: MAX text

    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.


  50. #50
    Gord Dibben
    Guest

    Re: MAX text

    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
    <[email protected]> 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.



  51. #51
    Domenic
    Guest

    Re: MAX text

    Nice one! Thanks Harlan!

    In article <[email protected]>,
    "Harlan Grove" <[email protected]> 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)


  52. #52
    Harlan Grove
    Guest

    Re: MAX text

    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)


  53. #53
    Sandy Mann
    Guest

    Re: MAX text

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1