Ok, so there are a bunch of posts on this and went through 3 pages of them, but could not resolve my issue.
I did find the following array formula which works, but only if I limit it to the games which have results.
=LOOKUP("zz",G891:G925)&COUNTA(G891:G925)-IFERROR(MATCH(2,INDEX(1/(G891:INDEX(G891:G925,MAX(1,COUNTA(G891:G925)-1))<>LOOKUP("zz",G891:G925)),0)),0)
Here's the problem, I use this spreadsheet to track more than 300 teams and their results of their games. The most games any one team can have is 36, so I have 36 rows built in for each team.
Since the schedules change frequently and games are added all the time, I use an array to pull the games, along with the results from another page that I download.
The results for the games which don't have a result are blank, but contain the Array formula.
Imagine this as my results column.
<TBODY>
</TBODY>
If I modify the formula to calculate only the first four rows, then it will return "W2".
If I include the rows which don't have results (Array formula in cell, otherwise blank), it would return "3".
If I remove the formula from the blank cells which contain the Array formula, it will return "W2" properly.
I did find the following array formula which works, but only if I limit it to the games which have results.
=LOOKUP("zz",G891:G925)&COUNTA(G891:G925)-IFERROR(MATCH(2,INDEX(1/(G891:INDEX(G891:G925,MAX(1,COUNTA(G891:G925)-1))<>LOOKUP("zz",G891:G925)),0)),0)
Here's the problem, I use this spreadsheet to track more than 300 teams and their results of their games. The most games any one team can have is 36, so I have 36 rows built in for each team.
Since the schedules change frequently and games are added all the time, I use an array to pull the games, along with the results from another page that I download.
The results for the games which don't have a result are blank, but contain the Array formula.
Imagine this as my results column.
W |
L |
W |
W |
{Array} |
{Array} |
{Array} |
<TBODY>
</TBODY>
If I modify the formula to calculate only the first four rows, then it will return "W2".
If I include the rows which don't have results (Array formula in cell, otherwise blank), it would return "3".
If I remove the formula from the blank cells which contain the Array formula, it will return "W2" properly.