+ Reply to Thread
Results 1 to 6 of 6

Max Value of Array Of Substrings...

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    9

    Max Value of Array Of Substrings...

    Hi,

    I'vd got a table with a column called key that contains a single letter and then a number of any length.

    Capture.JPG

    I want to get the maximum number that exists in the table column, ignoring the letter prefix.

    I've tried array formulas;

    {=MAX(RIGHT(Table1[@Key],LEN(Table1[@Key])-1))} returns 1
    {=MAX(RIGHT(Table1[Key],LEN(Table1[Key])-1))} returns 0

    and non array formulas

    =MAX(RIGHT(Table1[@Key],LEN(Table1[@Key])-1)) returns 1
    =MAX(RIGHT(Table1[Key],LEN(Table1[Key])-1)) returns 1

    I want it to return 6, as this is the maximum...

    Thanks

    Dave
    Last edited by david.nicholls; 05-03-2013 at 05:27 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Max Value of Array Of Substrings...

    Try this...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Max Value of Array Of Substrings...

    Great - had to be entered as an array formula and I replaced the cell references with a table column, and had to amend the "right" formula, but great...

    Please Login or Register  to view this content.
    Last edited by david.nicholls; 05-03-2013 at 05:31 AM.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Max Value of Array Of Substrings...

    It is a non array formula, so normal enter is enough

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Max Value of Array Of Substrings...

    @ sixthsense
    It is a non array formula, so normal enter is enough
    Are you sure, I'd check that out ...

    @ David
    ... that contains a single letter and then a number of any length.
    If the number can vary in length you might be safer with this array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or this non CSE alternative
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Marcol; 05-03-2013 at 05:43 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Max Value of Array Of Substrings...

    Hi david.nicholls

    For Excel 2010, try the aggregate function:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Enter as usual.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

+ 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