0

I have something like this

Row

1->   1   3   4   2   1   1

2->   2   1   3   4   2   2

I want to find how many values of row 1 are greater than the ones in row 2 and have them in a cell.

The result should be 2 since I want to only compare column A with A, B with B, and not A with B, A with C, etc.

1 Answer 1

1

Please try:

=sum(ArrayFormula((A1:Z1>A2:Z2)*1))

and adjust end column reference to suit.

You could instead try =sum(ArrayFormula((1:1>2:2)*1)) but would then limit use of the first two rows of columns AA onwards without risk of erroneous results.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.