Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I have a list of items (cells A1 to A7) that are counted in cell B2 (whose value is currently 7), B2's formula is something like =COUNTA(A1:A10000). That way if I add some value in cell A8, the count is updated to 8 in cell B2. And so on and so forth when values are filled in cells A9, A10, ... etc, the count in cell B2 always keeps track of the current number of items in the list.
It would be very handy to have the ability of creating a named range, called items for instance, based on the count in cell B2 using

=OFFSET(sheet!$A$1,0,0,sheet!$B$2,1)

or

=ArrayFormula(OFFSET(sheet!$A$1,0,0,sheet!$B$2,1))

to define the named range.

That way items could be used anywhere and would get dynamically updated when the item list is modified. This is the way it can be done in Excel, but what would be the corresponding approach using Google speadsheets?

share|improve this question
    
Perhaps you can share a doc with us and show us the expected result. –  Jacob Jan Tuinstra Mar 27 '13 at 11:08
add comment

1 Answer 1

Could this be helpful? http://anandexcels.wordpress.com/tag/offset-function-in-google-docs/

If it is really just A1:A7 then maybe you could select the first 100 cells in Column A or something.

share|improve this answer
1  
No I'm afraid this just explains what the offset function is. I am more than confortable with it, I just want to know if a named range can be defined from such as function to make it dynamic. –  mksd Mar 26 '13 at 7:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.