Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
s s is offline
external usenet poster
 
Posts: 36
Default Finding the highest alphabetic name in a list of names

Hi,

I wonder if anyone can help me. I've tried to use the max function but it
only seems to work with numbers.

Is it even possible to do what I want to do. I have a list of names and I
want to find Zachary for example as its the last name alphabetically in an
unsorted list of names.

I need to do this in a formula versus sorting.

Any help greatly appreciated.

Thanks

S
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Finding the highest alphabetic name in a list of names

Let's say all the last name in A2:A100
Create a helper column B
In B2 =Code(A2)
Copy down to B100

In C2 =INDEX(A2:A100,MATCH(MAX(B2:B100),B2:B100,0))


"S" wrote:

Hi,

I wonder if anyone can help me. I've tried to use the max function but it
only seems to work with numbers.

Is it even possible to do what I want to do. I have a list of names and I
want to find Zachary for example as its the last name alphabetically in an
unsorted list of names.

I need to do this in a formula versus sorting.

Any help greatly appreciated.

Thanks

S

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Finding the highest alphabetic name in a list of names

S,

You'll need to use a helper column of formulas.

Assuming that your list of names starts in cell A2 and continues down column A to cell A100, in cell
B2 use the formula

=IF(SUMPRODUCT((A2<$A$2:$A$100)*1)=0,"Highest","")

and copy down to cell B100.

Then use the formula

=INDEX(A:A,MATCH("Highest",B:B,FALSE))

to pull the name.

HTH,
Bernie
MS Excel MVP


"S" wrote in message
...
Hi,

I wonder if anyone can help me. I've tried to use the max function but it
only seems to work with numbers.

Is it even possible to do what I want to do. I have a list of names and I
want to find Zachary for example as its the last name alphabetically in an
unsorted list of names.

I need to do this in a formula versus sorting.

Any help greatly appreciated.

Thanks

S



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Finding the highest alphabetic name in a list of names

Hello,

Try a helper column:
If your names are in cells A1:A999, then enter into B1:
=COUNTIF($A$1:$A$999,""&A1)+COUNTIF($A$1:$A1,A1)
and copy down to B999.
Now search for value 1 in B1:B999. The corresponding cell in column A
is your alphabetic max.

Please notice that if you have two or more identical alphabetic
maximums, then value 1 will be shown only for the occurence with the
lowest row number (omit the second COUNTIF and look for value 0 if you
need to see all occurrences of the max).

HTH,
Bernd



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Finding the highest alphabetic name in a list of names

Try this:

Array entered using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

If there will *NEVER* be any empty cells within the range:

=INDEX(A$1:A$20,MATCH(LARGE(COUNTIF(A$1:A$20,"<"&A $1:A$20),1),COUNTIF(A$1:A$20,"<"&A$1:A$20),0))

If there may be empty cells within the range:

=INDEX(A$1:A$20,MATCH(LARGE(IF(A$1:A$20<"",COUNTI F(A$1:A$20,"<"&A$1:A$20)),1),IF(A$1:A$20<"",COUNT IF(A$1:A$20,"<"&A$1:A$20)),0))

Biff

"S" wrote in message
...
Hi,

I wonder if anyone can help me. I've tried to use the max function but it
only seems to work with numbers.

Is it even possible to do what I want to do. I have a list of names and I
want to find Zachary for example as its the last name alphabetically in an
unsorted list of names.

I need to do this in a formula versus sorting.

Any help greatly appreciated.

Thanks

S



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Finding the highest alphabetic name in a list of names

Tammy
Trish
Tim
Tony

Which one is the "highest"?

Biff

"Teethless mama" wrote in message
...
Let's say all the last name in A2:A100
Create a helper column B
In B2 =Code(A2)
Copy down to B100

In C2 =INDEX(A2:A100,MATCH(MAX(B2:B100),B2:B100,0))


"S" wrote:

Hi,

I wonder if anyone can help me. I've tried to use the max function but it
only seems to work with numbers.

Is it even possible to do what I want to do. I have a list of names and I
want to find Zachary for example as its the last name alphabetically in
an
unsorted list of names.

I need to do this in a formula versus sorting.

Any help greatly appreciated.

Thanks

S



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 196
Default Finding the highest alphabetic name in a list of names

Or maybe:

=INDEX($A$1:$A$20,MATCH(0,COUNTIF($A$1:$A$20,""&$ A$1:$A$20),0))

Again array entered (ie CSE).

Richard





T. Valko wrote:
Try this:

Array entered using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

If there will *NEVER* be any empty cells within the range:

=INDEX(A$1:A$20,MATCH(LARGE(COUNTIF(A$1:A$20,"<"&A $1:A$20),1),COUNTIF(A$1:A$20,"<"&A$1:A$20),0))

If there may be empty cells within the range:

=INDEX(A$1:A$20,MATCH(LARGE(IF(A$1:A$20<"",COUNTI F(A$1:A$20,"<"&A$1:A$20)),1),IF(A$1:A$20<"",COUNT IF(A$1:A$20,"<"&A$1:A$20)),0))

Biff

"S" wrote in message
...
Hi,

I wonder if anyone can help me. I've tried to use the max function but it
only seems to work with numbers.

Is it even possible to do what I want to do. I have a list of names and I
want to find Zachary for example as its the last name alphabetically in an
unsorted list of names.

I need to do this in a formula versus sorting.

Any help greatly appreciated.

Thanks

S


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Finding the highest alphabetic name in a list of names

Yeah, that'll work. And to account for possible empty cells and/or formula
blanks:

=INDEX(A1:A20,MATCH(0,IF(A1:A20<"",COUNTIF(A1:A20 ,""&A1:A20)),0))

Biff

"RichardSchollar" wrote in message
ups.com...
Or maybe:

=INDEX($A$1:$A$20,MATCH(0,COUNTIF($A$1:$A$20,""&$ A$1:$A$20),0))

Again array entered (ie CSE).

Richard





T. Valko wrote:
Try this:

Array entered using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

If there will *NEVER* be any empty cells within the range:

=INDEX(A$1:A$20,MATCH(LARGE(COUNTIF(A$1:A$20,"<"&A $1:A$20),1),COUNTIF(A$1:A$20,"<"&A$1:A$20),0))

If there may be empty cells within the range:

=INDEX(A$1:A$20,MATCH(LARGE(IF(A$1:A$20<"",COUNTI F(A$1:A$20,"<"&A$1:A$20)),1),IF(A$1:A$20<"",COUNT IF(A$1:A$20,"<"&A$1:A$20)),0))

Biff

"S" wrote in message
...
Hi,

I wonder if anyone can help me. I've tried to use the max function but
it
only seems to work with numbers.

Is it even possible to do what I want to do. I have a list of names and
I
want to find Zachary for example as its the last name alphabetically in
an
unsorted list of names.

I need to do this in a formula versus sorting.

Any help greatly appreciated.

Thanks

S




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 196
Default Finding the highest alphabetic name in a list of names

This is fun. The following also works (and doesn't need to be array
entered):

=LOOKUP(2,1/((COUNTIF($A$1:$A$20,""&$A$1:$A$20)=0)*($A$1:$A$2 0<"")),$A$1:$A$20)

Richard


T. Valko wrote:
Yeah, that'll work. And to account for possible empty cells and/or formula
blanks:

=INDEX(A1:A20,MATCH(0,IF(A1:A20<"",COUNTIF(A1:A20 ,""&A1:A20)),0))

Biff

"RichardSchollar" wrote in message
ups.com...
Or maybe:

=INDEX($A$1:$A$20,MATCH(0,COUNTIF($A$1:$A$20,""&$ A$1:$A$20),0))

Again array entered (ie CSE).

Richard





T. Valko wrote:
Try this:

Array entered using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

If there will *NEVER* be any empty cells within the range:

=INDEX(A$1:A$20,MATCH(LARGE(COUNTIF(A$1:A$20,"<"&A $1:A$20),1),COUNTIF(A$1:A$20,"<"&A$1:A$20),0))

If there may be empty cells within the range:

=INDEX(A$1:A$20,MATCH(LARGE(IF(A$1:A$20<"",COUNTI F(A$1:A$20,"<"&A$1:A$20)),1),IF(A$1:A$20<"",COUNT IF(A$1:A$20,"<"&A$1:A$20)),0))

Biff

"S" wrote in message
...
Hi,

I wonder if anyone can help me. I've tried to use the max function but
it
only seems to work with numbers.

Is it even possible to do what I want to do. I have a list of names and
I
want to find Zachary for example as its the last name alphabetically in
an
unsorted list of names.

I need to do this in a formula versus sorting.

Any help greatly appreciated.

Thanks

S





  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Finding the highest alphabetic name in a list of names

I wonder if that's any faster (calculation-wise) vs the array version?

Biff

"RichardSchollar" wrote in message
oups.com...
This is fun. The following also works (and doesn't need to be array
entered):

=LOOKUP(2,1/((COUNTIF($A$1:$A$20,""&$A$1:$A$20)=0)*($A$1:$A$2 0<"")),$A$1:$A$20)

Richard


T. Valko wrote:
Yeah, that'll work. And to account for possible empty cells and/or
formula
blanks:

=INDEX(A1:A20,MATCH(0,IF(A1:A20<"",COUNTIF(A1:A20 ,""&A1:A20)),0))

Biff

"RichardSchollar" wrote in message
ups.com...
Or maybe:

=INDEX($A$1:$A$20,MATCH(0,COUNTIF($A$1:$A$20,""&$ A$1:$A$20),0))

Again array entered (ie CSE).

Richard





T. Valko wrote:
Try this:

Array entered using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

If there will *NEVER* be any empty cells within the range:

=INDEX(A$1:A$20,MATCH(LARGE(COUNTIF(A$1:A$20,"<"&A $1:A$20),1),COUNTIF(A$1:A$20,"<"&A$1:A$20),0))

If there may be empty cells within the range:

=INDEX(A$1:A$20,MATCH(LARGE(IF(A$1:A$20<"",COUNTI F(A$1:A$20,"<"&A$1:A$20)),1),IF(A$1:A$20<"",COUNT IF(A$1:A$20,"<"&A$1:A$20)),0))

Biff

"S" wrote in message
...
Hi,

I wonder if anyone can help me. I've tried to use the max function
but
it
only seems to work with numbers.

Is it even possible to do what I want to do. I have a list of names
and
I
want to find Zachary for example as its the last name alphabetically
in
an
unsorted list of names.

I need to do this in a formula versus sorting.

Any help greatly appreciated.

Thanks

S




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
Can I check names in one list agains names in another in excel? John@Hospice of Hope Excel Discussion (Misc queries) 1 August 22nd 06 09:24 AM
comparing names in a list ferde Excel Discussion (Misc queries) 6 March 22nd 06 05:11 AM
How- seperate a combined list by filtering out first list of names Briana Excel Worksheet Functions 1 March 21st 06 03:16 PM
looking up names in a list macca Excel Worksheet Functions 1 November 15th 05 02:29 AM
How to determine second (and then third) highest value in a list Scott M. Lyon Excel Discussion (Misc queries) 4 September 12th 05 08:51 PM


All times are GMT +1. The time now is 05:46 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"