Hi,
The fundamental problem is that you are using the Row() function to compare against the count of rows on other sheets. Nothing wrong with that of course but on the summary sheet the ROW() function when copied down is returning the row number in which the formula appears. So if it's in B5 it returns the value 5, and compares this with a count of the rows on sheet1. So for B5:B19 that's fine. However on the next row which needs to pick up the first value from sheet2, that value is on Row 5 on sheet2 but the ROW() bit of the formula now in B20 on the summary will return the value 20. But since you're using this as the INDEX reference for sheet 2 you need to deduct 15 in order that the Index will be 5 and hence you'll pick up B5 on sheet2.
The same applies for the next sheet3 but this time you have to adjust the ROW() result by the counts of both sheet1 & sheet2, i.e. 27.
Since all these COUNTA() functions make the overall formula quite large and cumbersome it therefore makes sense to use a helper cell for each sheet which contains the count and simply refer to these helper cells in the formula.
So in the attached I've added three helper cells A4:A6 which count the number of values in each sheet. A4 for instance is =COUNTA(Sheet1!B:B)-1 . The minus 1 is because there's a column label in each sheet in B4 and you don't want to include this when comparing the summary row with the sheet row. You can of course hold these formulae anywhere, and it might be a smart move to give each a name so that you can use the name in the formula.
Now in B4 on the Summary you can have a shortened formula thus:
Formula:
=IF(ROW()-4<=$A$4,INDEX(Sheet1!B:B,ROW()),IF(ROW()<=$A$4+$A$5+4,INDEX(Sheet2!B:B,ROW()-$A$4),IF(ROW()<=$A$4+$A$5+$A$6+4,INDEX(Sheet3!B:B,ROW()-$A$4-$A$5),"")))
I've only updated column B but it should be a simple matter to follow the same idea across into columns C:E. I think you can simply copy them across since the formula I believe does have the right mix of absolute and relative cell refs. but double check anyway.
Bookmarks