+ Reply to Thread
Results 1 to 15 of 15

Get the highest value when all values consist of letters AND numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Get the highest value when all values consist of letters AND numbers

    Hi,

    I have thousands of drawings listed in colums and each in the row has revisions P01 to P10 for Proposal and C01 to C10 For Construction.
    Is there a way of getting the highest revision of all listed in a row without turning them into numbers when P is older than C , but 1 is older than 10?
    MAX function doesnt count when value consists of both - number and letter.

    Please help.... Manualy selecting the highes revision will cost me weeks... and brain damage.. as I have thousands of drawings and more are coming...

    Thank you!
    Lina

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,162

    Re: Get the highest value when all values consist of letters AND numbers

    You can use an Array Formula:
    Formula: copy to clipboard
    =MAX(IF($A$2:$A$100<>"",--RIGHT($A$2:$A$100,LEN($A$2:$A$100)-1)))

    Committed with Ctrl-Shift-Enter rather than just Enter.

    Adjust the range as necessary.

    You will see:
    Formula: copy to clipboard
    {=MAX(IF($A$2:$A$100<>"",--RIGHT($A$2:$A$100,LEN($A$2:$A$100)-1)))}



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,162

    Re: Get the highest value when all values consist of letters AND numbers

    Thanks for the rep

  4. #4
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Get the highest value when all values consist of letters AND numbers

    Sorry, I am still confused...

    My drawings revisions are listed in K2:U2. Revisions are P01,P02,...,P10,C01,C02,...,C10 (that is from oldest to newest).
    Not all drawings have all listed revisions, some have just three revisions, some were revised 10 times.
    In Cell H I have to select the latest revision of all listed in K2:U2.

    it is something like max if "P01"<"P02"<"P03"<"P04"<"P05"<"C01"<"C02"<"C03"<"C04"<"C05"

    please help

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,162

    Re: Get the highest value when all values consist of letters AND numbers

    H2:
    Formula: copy to clipboard
    =MAX(IF($K$2:$U$2<>"",IF($K$2:$U$2<>"...",--RIGHT($K$2:$U$2,LEN($K$2:$U$2)-1))))



    Array Entered with Ctrl-Shift-Enter

    See the example

    Regards, TMS
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Get the highest value when all values consist of letters AND numbers

    It says #VALUE..

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,162

    Re: Get the highest value when all values consist of letters AND numbers

    Array Entered with Ctrl-Shift-Enter
    ???

    Suggest you post a sample workbook indicating what you' ex got and what you need/expect

  8. #8
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Get the highest value when all values consist of letters AND numbers

    I should have started with attachment in the beginning. sorry.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Get the highest value when all values consist of letters AND numbers

    In Column 'Latest Revision' I need to select the latest revision out of listed between columns K and U
    assuming that P01-P10 are older than C01-C10 and 01 is older than 10

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,162

    Re: Get the highest value when all values consist of letters AND numbers

    You don't make life easy for yourself or others, do you?

    The columns don't match your description but hey, look at the example and see if that's what you want.

    Regards, TMS
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Get the highest value when all values consist of letters AND numbers

    Thank You very Much! You saved me from a very boring task. It is exactly what I needed for now. There will be more drawings coming
    in and more revisions will be listed. Next idea will probably be recognizing P revisions and C. As it can be P03 and C03 in the same row. And
    C03 will be newer than P03.

    Oh and sorry for making it harder. I deleted (instead of hiding) some columns before attaching file (#blond)..

    Regards, Lina

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,162

    Re: Get the highest value when all values consist of letters AND numbers

    Hello blond lady

    See the attached updated workbook. I've added a couple of columns which separate out the P and the C values. Basically, the same as before but with an extra check. And then I've added a comparison. See if you like ...

    Regards, TMS
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Get the highest value when all values consist of letters AND numbers

    Wow...

    I must admit, first it looked like bunch of swear words.. lol

    This is perfect. Thank You very much. How do you learn all this??

    Regards,
    Lina

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,162

    Re: Get the highest value when all values consist of letters AND numbers

    How do you learn all this??
    Well, I've spent quite a bit of time on it, maybe 18+ years. Using Excel, reading books about Excel, asking question about Excel, answering questions about Excel, and seeing the answers that others have provided. And, as time goes on, if I'm not sure how to do something, I know how to phrase the question in Google. The Internet is a wonderful thing

    Regards, TMS

  15. #15
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Get the highest value when all values consist of letters AND numbers

    Quote Originally Posted by TMShucks View Post
    The Internet is a wonderful thing
    agreed to that thanks for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 9
    Last Post: 07-19-2012, 07:16 AM
  2. highest average of 6 continuous values from a row containing much more numbers
    By FATboven in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-23-2011, 08:21 AM
  3. Replies: 6
    Last Post: 02-24-2010, 11:48 PM
  4. Replies: 2
    Last Post: 11-15-2008, 03:06 PM
  5. Finding most common occurence of values in cells containing letters and numbers
    By sparklyballs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2006, 07:20 AM

Tags for this Thread

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