cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

How to create a formula column to find the maximum of several columns

I have several columns of numeric data (see example below) and I would like to create a formula column to find the maximum value for each row across the columns.  Any help would be appreciated.  Thank you!

Value 1      Value 2      Value 3      Max Value (I would put the formula in this column)

1                    9               6                    9

2                    1               5                    5

3                    7               4                    7

4                    2               6                    6

10 REPLIES 10
jetpeach
Level II

Re: How to create a formula column to find the maximum of several columns

i'm not sure why, but txnelsons code didn't work for me.

after debugging, i had to change last line to:

namelist[ Loc( as list(maxes`), Max( maxes ) )[1] ];

 

now it seems working