determining the largest value in a sequence of text strings

  • Thread starter Thread starter Dave F
  • Start date Start date
D

Dave F

Given the following sequence:

001A
001B
001C
001D
002A
002B
002C
002D

what formula can return the greatest value, assuming 002A < 002B <
002C < 002D?

The array formula ="00"&(MAXA(--LEFT(D6:D13,3),D6:D13)) would return
002, but this leaves out the letter component.

Any ideas?

Thanks.
 
Hi, thanks for the response.

When I copy and paste that formula into Excel I get an error message
saying that the formula contains an error-but I'm not sure what the
error is. What is this formula attempting to do?

Dave
 
I see you're posting through Google Groups.

Google Groups is notorious for inserting html (?) formatting characters in
formulas.

The formula does exactly what you wanted, it will return the "largest"
*TEXT* entry from the range.

Here's the formula broken into chunks.

=LOOKUP(2,1/((COUNTIF
(D6:D13,">"&D6:D13)=0)*
(D6:D13<>"")),D6:D13)

There are no dashes "-" in the formula.


--
Biff
Microsoft Excel MVP


Hi, thanks for the response.

When I copy and paste that formula into Excel I get an error message
saying that the formula contains an error-but I'm not sure what the
error is. What is this formula attempting to do?

Dave
 
Wow, great that works. Thanks!

I see you're posting through Google Groups.

Google Groups is notorious for inserting html (?) formatting characters in
formulas.

The formula does exactly what you wanted, it will return the "largest"
*TEXT* entry from the range.

Here's the formula broken into chunks.

=LOOKUP(2,1/((COUNTIF
(D6:D13,">"&D6:D13)=0)*
(D6:D13<>"")),D6:D13)

There are no dashes "-" in the formula.

--
Biff
Microsoft Excel MVP


Hi, thanks for the response.

When I copy and paste that formula into Excel I get an error message
saying that the formula contains an error-but I'm not sure what the
error is.  What is this formula attempting to do?

Dave
 
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


Wow, great that works. Thanks!
 
Can someone explain to me how this formula works?

=LOOKUP(2,1/((COUNTIF(D6:D41,">"&D6:D41)=0)*(D6:D41<>"")),D6:D41)

Thanks.

Dave
 

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

Back
Top