'Use specific syntax with Sheets

I have this:

enter image description here

So now, what I want is this logic but I don't write everytime in each cellul :

  • In B3 : =SI(A3>B1;1;0)
  • In C3 : =SI(A3>C1;1;0)
  • In D3 : =SI(A3>D1;1;0)
  • In B4 : =SI(A4>B1;1;0)
  • In C4 : =SI(A4>C1;1;0)
  • In D4 : =SI(A4>D1;1;0)

I just need to retrieve each cellul column A and compare to each cellul ligne 1

Someone can help me



Solution 1:[1]

use:

=INDEX(IF(A2:A5>B1:D1; 1; 0))

enter image description here

Solution 2:[2]

Try this:

=IF($A3>B2,1,0)

Once the absolute reference is set just drag the formula to the whole row:

enter image description here

Once done you just need to drag the formula down and it will be applied as you like to all the remaining cells:

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 player0
Solution 2 Gabriel Carballo