ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using offset more than once on the same sheet (https://www.excelbanter.com/excel-worksheet-functions/44533-using-offset-more-than-once-same-sheet.html)

Pat

Using offset more than once on the same sheet
 
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




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



"Pat" wrote in message
...
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







All times are GMT +1. The time now is 08:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com