Your formula
Correct formula
You were very close. Let's work backwards. The last argument in your function is COUNTA(sheet1$8:$8). This argument is telling Excel how wide you want your final data range to be. You really only want it to be equal to the value you put in A2 so should be Sheet1!$A$2.
Your second argument
is very close. You just need to subtract any cells in row 8 that don't have values in them (including hidden column B). so just subtract 2 from it.
On a side note, your spreadsheet has a lot of errors #DIV/0 which are going to screw up this formula unless you fix them.
Try these changes and see if it works for you. When you are in "Define Name", if you click inside the box that contains your formula, it shows you the exact range with dotted lines that it is looking at.
Good luck
ChemistB
Bookmarks