Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Offset function and Dynamic Ranges

I just saw an example of this formula in an online newsletter:
=OFFSET(Data!$A$1,0,0,COUNTA(Data!$A$1:$A$19),COUN TA(Data!$1:$1))
I was trying it out and noticed that you have to place it with the upper
left cell in cell A1 of a worksheet for it to reproduce the data that it
refers to. Otherwise the #VALUE error appears. This is not how the OFFSET
function usually works for me and it seems to have something to do with the
COUNTA function appearing in the height and width arguments. I usually don't
use the height and width arguments at all. Could someone explain why this is
so and if there is a way to overcome this restriction?
Thanks for your help,
Sandy

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 380
Default Offset function and Dynamic Ranges

It is not just A1, but any cell that maps onto that dynamic range, as it
gets the value relative to the cell the formula is in.

For example, if the data on the Data worksheet has 10 rows of data in column
A, and 5 columns in row 1, this formula will work in any cell in the range
A1:E10.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"SandyLACA" wrote in message
...
I just saw an example of this formula in an online newsletter:
=OFFSET(Data!$A$1,0,0,COUNTA(Data!$A$1:$A$19),COUN TA(Data!$1:$1))
I was trying it out and noticed that you have to place it with the upper
left cell in cell A1 of a worksheet for it to reproduce the data that it
refers to. Otherwise the #VALUE error appears. This is not how the OFFSET
function usually works for me and it seems to have something to do with

the
COUNTA function appearing in the height and width arguments. I usually

don't
use the height and width arguments at all. Could someone explain why this

is
so and if there is a way to overcome this restriction?
Thanks for your help,
Sandy



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Offset function and Dynamic Ranges


This formula is commonly used to dynamically name ranges of data that
expand and contract (Mostly expand) frequently. This way you can
always reference the data via the range name in formulas and as data
sources for pivot tables etc.


SandyLACA Wrote:
I just saw an example of this formula in an online newsletter:
=OFFSET(Data!$A$1,0,0,COUNTA(Data!$A$1:$A$19),COUN TA(Data!$1:$1))
I was trying it out and noticed that you have to place it with the
upper
left cell in cell A1 of a worksheet for it to reproduce the data that
it
refers to. Otherwise the #VALUE error appears. This is not how the
OFFSET
function usually works for me and it seems to have something to do with
the
COUNTA function appearing in the height and width arguments. I usually
don't
use the height and width arguments at all. Could someone explain why
this is
so and if there is a way to overcome this restriction?
Thanks for your help,
Sandy



--
Excelenator


------------------------------------------------------------------------
Excelenator's Profile: http://www.excelforum.com/member.php...o&userid=36768
View this thread: http://www.excelforum.com/showthread...hreadid=567656

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
dependent drop down boxes and dynamic ranges philcud Excel Worksheet Functions 2 September 1st 05 01:03 PM
Solver and dynamic ranges tim Excel Worksheet Functions 0 May 5th 05 01:29 AM
Dynamic Function Reference Question excel newbie Excel Discussion (Misc queries) 1 April 20th 05 08:09 PM
dynamic offset [email protected] Excel Discussion (Misc queries) 3 March 4th 05 12:38 AM
dynamic ranges Sam Excel Worksheet Functions 2 January 21st 05 07:46 PM


All times are GMT +1. The time now is 07:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"