Help

Compare 4 Cells in a row and Return Column name with the highest score

Solved
Jump to Solution
815 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Cunwalker
4 - Data Explorer
4 - Data Explorer
Can someone help me out.
 Type calc Airtable.png
 
I'm want Airtable to return the "Column name" after he compares 4 adjacent cells in the same row.
 
I expected to be something like...
if(@A>@B AND(@A>@C) AND(@A>@D), "A")
if(@B>@A AND(@B>@C) AND(@B>@D), "B")
if(@C>@A AND(@C>@B) AND(@C>@D), "C")
if(@D>@A AND(@D>@B) AND(@D>@C), "A")
 
Thanks in advance!
1 Solution

Accepted Solutions
Andrey_Kovalev
8 - Airtable Astronomer
8 - Airtable Astronomer

@Cunwalker , hello! You can try the following formula

IF(AND(A>B, A>C, A>D), "A", IF(AND(B>A, B>C, B>D), "B", IF(AND(C>A, C>B, D>D), "C", IF(AND(D>A, D>B, D>C), "D", "undefined"))))

See Solution in Thread

2 Replies 2
Andrey_Kovalev
8 - Airtable Astronomer
8 - Airtable Astronomer

@Cunwalker , hello! You can try the following formula

IF(AND(A>B, A>C, A>D), "A", IF(AND(B>A, B>C, B>D), "B", IF(AND(C>A, C>B, D>D), "C", IF(AND(D>A, D>B, D>C), "D", "undefined"))))
Cunwalker
4 - Data Explorer
4 - Data Explorer

Yep, that worked 🥇