Is LOOKUP the correct function for this

N

nigel p

I wish to have Excel 2000 look along a row of letters and return the
highest letter (latest in the alphabet) to a cell at the left in the
same row. How do I do this?

Example:

Result Entries in columns
F A B C D E F
D A B C D

Thank you in anticipation
 
H

Harlan Grove

nigel p said:
I wish to have Excel 2000 look along a row of letters and return the
highest letter (latest in the alphabet) to a cell at the left in the
same row. How do I do this?

Example:

Result Entries in columns
F A B C D E F
D A B C D

If they're all single letters, try something like the array formula

=CHAR(MAX(IF(C2:IV2<>"",CODE(C2:IV2))))

If they could be arbitrary strings, try the array formula

=INDEX(C2:IV2,MATCH(MAX(COUNTIF(C2:IV2,"<"&C2:IV2)),
COUNTIF(C2:IV2,"<"&C2:IV2),0))
 
N

nigel p

Thank you Harlan but neither give me the right result. The first
gives me #value and the second gives me #N/A. I am not experienced in
excel and do not know how to experiment with formulas like these. Can
you help any more?
 
D

Dana DeLouis

Use Harlan's code, but enter the equation with Ctrl+Shift+Enter at the same
time.
This is an Array formula.

Instead of just Enter, hit Ctrl+Shift+Enter.
 
H

Harlan Grove

could a HLOOKUP be used in this case?

Try it. I mean this in all seriousness. If you get it to do what the OP wants,
show everyone your discovery. If you can't, you'll still learn something from
trying.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top