Using offset more than once on the same sheet

  • Thread starter Thread starter Pat
  • Start date Start date
P

Pat

Could someone tell me is counta the correct function to use on the same
sheet.

Each time a defined range is used more than once on a sheet using the
following formula

=OFFSET(Sheet2!$H$9,0,0,COUNTA(Sheet2!$H:$H),1)

an extra empty cell is included

for example:

=OFFSET(Sheet2!$H$9,0,0,COUNTA(Sheet2!$H:$H),1)
1 empty cells are inluded in the range

=OFFSET(Sheet2!$I$9,0,0,COUNTA(Sheet2!$I:$I),1)
2 empty cells are inluded in the range

=OFFSET(Sheet2!$J$9,0,0,COUNTA(Sheet2!$J:$J),1)
3 empty cells are inluded in the range

Hope you understand what i am trying to discribe.

Pat
 
Just to let you all know i have figured out what I should use, (well it
works for me) here is an example:

=OFFSET(SHEET2!$J$10,0,0,MAX((TRIM(SHEET2!$J$10:$J$100)<>"")*ROW(SHEET2!$J$1
0:$J$100))-ROW(SHEET2!$J$10)+1,1)



Thaks to whoever had a look
Pat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top