Share via

How do you get a MAX value from a Row that has both alpha and numeric data?

Anonymous
2023-12-06T05:18:25+00:00

In the inserted image the Yellow cells has this formula to find the MAX value, leaving the cell blank if value is 0 =IF(MAX(D5:ZZ5)=0, "", MAX(D5:ZZ5))

This is great for numeric values, but I have alphabetical values in the row.

In the Orange cell I tried this formula to try recognise the alphabetical characters

=INDEX(D6:ZZ6,MATCH(MAX(IF(ISNUMBER(D6:ZZ6),D6:ZZ6)),IF(ISNUMBER(D6:ZZ6),D6:ZZ6),0)) but this did not work.

How can I get the 'Current Revision' to recognise the alphabetical characters as numbers, but still return an alphabetical character in the 'Current Revision' column?

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2023-12-06T05:49:36+00:00

    This formula will get the verison number in max column which has value in it.

    =INDEX(D6:ZZ6,MAX(COLUMN(D6:ZZ6)*(D6:ZZ6<>""))-3)

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-12-07T06:26:17+00:00

    Use this one will show #Value! as Blank.

    =iferror(IF(D6="","",LET(a,VSTACK(TEXT(SEQUENCE(100),"00"),CHAR(SEQUENCE(26,1,65,1))),INDEX(a,MAX(IFERROR(MATCH(D6:ZZ6,a,0),0))))),"")

    Yes, you can assign a any text to a number value in another sheet then, you can use max formula on it.

    =Iferror(INDEX(Sheet1!A:A,MATCH(MAX(IFERROR(INDEX(Sheet1!B:B,MATCH(D6:ZZ6,Sheet1!A:A,0)),0)),Sheet1!B:B,0)),"")

    0 comments No comments
  3. Anonymous
    2023-12-07T06:10:53+00:00

    this is the error message when I try to enter this formula in.

    Would it be possible to assign a numerical value to the Alphabetical characters under the 'Revision or Issue Number' column, but they still appear as letters? Then apply a MAX value formula that returned both letters and numbers and a blank cell if no data in that row? Below is the actual data I am attempting to apply this to. Would I have to have a separate tab in the Workbook that lists the alphabetical characters and their numeric value?

    0 comments No comments
  4. Anonymous
    2023-12-06T07:06:05+00:00

    Try this one. It will work till version Z.

    =IF(D6="","",LET(a,VSTACK(TEXT(SEQUENCE(100),"00"),CHAR(SEQUENCE(26,1,65,1))),INDEX(a,MAX(IFERROR(MATCH(D6:ZZ6,a,0),0)))))

    0 comments No comments
  5. Anonymous
    2023-12-06T06:45:12+00:00

    Thank you. The above worked great.

    Just a few queries based on results shown in below image.

    • If there is no data in the Row, how do we return a blank instead of the #VALUE! error
    • In the 6th Row the result is showing A even though there is a D in the row

    0 comments No comments