Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

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

Solved
Jump to Solution
74 2
cancel
Showing results for 
Search instead for 
Did you mean: 
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

@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

@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"))))

Yep, that worked 🥇