how to make a column sum of previous column in excel code example Example: minimum value between two columns gives column name in excel =MATCH(MIN(A1:D1),A1:D1,0)