Im trying to find a Row based on a value, and count the number of entries (Max 5) in that row.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | John | 2 | 2 | 5 | 4 | ||
| 2 | Mary | 1 | 3 | 1 | 6 | 7 |
=COUNTA(B1:GZ) will work if I knew the row for "John",
but im trying to get the row based on a value from another cell ...
| Z | |
|---|---|
| 10 | John |
In this case Z10 pseudo: =COUNTA(Find Z10 in Col A, then count entries in Row starting at B to Z)
Any ideas ? Thanks.


=ArrayFormula(countif(A:A&(B:Z<>""),AB2&True))whereAB2- is the cell with the name you are looking for - Sergey