+ Reply to Thread
Results 1 to 14 of 14

How to find max value for every other column in a row that contains numbers and letters.

  1. #1
    Registered User
    Join Date
    06-09-2014
    Posts
    4

    How to find max value for every other column in a row that contains numbers and letters.

    I want to be able to have column C return the maximum value whether it be a number or a letter (In the case that there are both the number would be of higher value) for every other column in a row.

    I have attached a spreadsheet to help explain the problem further.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to find max value for every other column in a row that contains numbers and letter

    what column are you starting from
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-09-2014
    Posts
    4

    Re: How to find max value for every other column in a row that contains numbers and letter

    Hey,

    I want to start the formula for column E and finish at column W.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to find max value for every other column in a row that contains numbers and letter

    so you just want the revision number since all of column e is a number and that will be higher than any letter?

  5. #5
    Registered User
    Join Date
    06-09-2014
    Posts
    4

    Re: How to find max value for every other column in a row that contains numbers and letter

    Sometimes the revisions can be labeled with letters only, if there is a project with both a revision number and a letter in its row then yes I just would like for the composite column to give the largest revision number. But at the same time if the project had only letters in the row I would want the composite revision cell to give me the largest letter value. Hope that helps some.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to find max value for every other column in a row that contains numbers and letter

    ARRAY ENTERED
    =IFERROR(IF(MAX(IF(MOD(COLUMN(E9:X9),2),E9:X9)),MAX(IF(MOD(COLUMN(E9:X9),2),E9:X9)),CHAR(MAX(IF(MOD(COLUMN(E9:X9),2),IF(E9:X9="",0,CODE(E9:X9)))))),"") seems to work

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to find max value for every other column in a row that contains numbers and letter

    I made the assumption that all dates would have a value greater than 1000 and all revisions numbers would be less than 1000. This also includes the first revision in column D.

    Array enter this formula in C9 and copy down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by newdoverman; 06-19-2014 at 04:39 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to find max value for every other column in a row that contains numbers and letter

    @newdoverman so what happens if the revisions are just A B C? that gives 0
    Sometimes the revisions can be labeled with letters only
    sic

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to find max value for every other column in a row that contains numbers and letter

    @ martindwilson......true. The possible mix of characters with digits seems impossible.

    I tried your formula before attempting mine and I get the same results

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to find max value for every other column in a row that contains numbers and letter

    well it gave me an idea array entered
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by martindwilson; 06-19-2014 at 05:16 PM.

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to find max value for every other column in a row that contains numbers and letter

    @martindwilson

    How about starting in column G so that the first revision is ignored and only further revisions are considered. This will show a blank if there are no further revisions and show the actual largest character if the revision is alphabetic and the largest digit if numeric.

    This is your formula with suggestions above.

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


    B
    C
    D
    E
    F
    G
    H
    I
    7
    SHEET NAME
    Composite
    Original
    6/15/14
    Rec Date
    #########
    Rec Date
    8
    Rev
    Date
    Rev
    Date
    Rev
    Date
    Rev
    9
    Floor Framing
    4
    08/15/14
    1
    6/2/14
    2
    #########
    4
    10
    Overall Plan Level 06
    10
    06/13/14
    1
    6/2/14
    9
    10
    11
    Floor Framing Plan 1 Level
    06/02/14
    1
    6/2/14
    12
    Floor Framing Plan 2 Level
    2
    07/04/14
    1
    6/2/14
    A
    #########
    B
    13
    Floor Framing Plan 5 Level
    2
    06/29/14
    1
    6/2/14
    2
    14
    Floor Framing Plan 9 Level X
    06/02/14
    1
    6/2/14
    X
    N
    15
    Floor Framing Plan 10 Level
    06/02/14
    1
    6/2/14
    16
    Floor Framing Plan
    2
    06/29/14
    2
    6/2/14
    2

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to find max value for every other column in a row that contains numbers and letter

    yes but op said that sometimes there are just letters so the original may be a letter and may be the only one

  13. #13
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to find max value for every other column in a row that contains numbers and letter

    @martindwilson

    I was mislead by the lack of alpha characters in column E of the example.

    I hope that there are no more variations in what the codes could be.....A2, CC ...etc.

    Your solution indeed does work.

  14. #14
    Registered User
    Join Date
    06-09-2014
    Posts
    4

    Re: How to find max value for every other column in a row that contains numbers and letter

    Thanks you guys for the help. Saved me a ton of time at work.

+ 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. [SOLVED] Find and Delete all letters & leave numbers
    By Patish in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-06-2013, 08:11 AM
  2. Replies: 4
    Last Post: 07-29-2012, 08:40 AM
  3. Replies: 4
    Last Post: 02-04-2012, 01:46 PM
  4. Find all possible combinations of letters and numbers
    By grifter_1229 in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 09-15-2010, 08:09 AM
  5. Replies: 2
    Last Post: 11-15-2008, 03:06 PM

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