The values in A7 and A8 are 1004. In cell D8 I have the following formula:
=IF(A7+1=A8,"AA",ROWS(ADDRESS(ROW(A8)-1,COLUMN(A8),2,1)&":"&ADDRESS(ROW(A8),COLUMN(A8),4,1)))
The formula evaluator shows the ROWS function evaluating to ROWS(A$7:A8) which then evaluates ultimately to 1 instead of 2 rows.
In E8 I entered ROWS(A$7:A8) and it is returning 2 like it should.
So why is the ROWS function returning only 1 instead of 2, when I use it in the IF statement? Does it have something to do with the part that has &":"&?
=IF(A7+1=A8,"AA",ROWS(ADDRESS(ROW(A8)-1,COLUMN(A8),2,1)&":"&ADDRESS(ROW(A8),COLUMN(A8),4,1)))
The formula evaluator shows the ROWS function evaluating to ROWS(A$7:A8) which then evaluates ultimately to 1 instead of 2 rows.
In E8 I entered ROWS(A$7:A8) and it is returning 2 like it should.
So why is the ROWS function returning only 1 instead of 2, when I use it in the IF statement? Does it have something to do with the part that has &":"&?