Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SD SD is offline
external usenet poster
 
Posts: 24
Default Reference a changing range

Hi there,

I am trying to reference a range that changes as each day goes by.
Currently its A2:A500....Tomorrow it will be A2:A501 etc etc.

So I am trying something like this but its not working A2:Count(A2:A10000).
I think i might need to use offset but not sure.

Thanks a lot

SD
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Reference a changing range

I'm going to assume that there are no blank rows in column A until the last
entry and that A1 has an entry.

Try
=offset(A1,1,0,counta(A:A)-1,1)

"SD" wrote:

Hi there,

I am trying to reference a range that changes as each day goes by.
Currently its A2:A500....Tomorrow it will be A2:A501 etc etc.

So I am trying something like this but its not working A2:Count(A2:A10000).
I think i might need to use offset but not sure.

Thanks a lot

SD

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SD SD is offline
external usenet poster
 
Posts: 24
Default Reference a changing range

Thanks for that but not sure if its working...I want to do a linest function
on the range from a2 to last value in column A as y. So i wanted to
reference A2:A500 (if A500 is last cell with any values). Not sure if this
forumal works? Thanks.

"Barb Reinhardt" wrote:

I'm going to assume that there are no blank rows in column A until the last
entry and that A1 has an entry.

Try
=offset(A1,1,0,counta(A:A)-1,1)

"SD" wrote:

Hi there,

I am trying to reference a range that changes as each day goes by.
Currently its A2:A500....Tomorrow it will be A2:A501 etc etc.

So I am trying something like this but its not working A2:Count(A2:A10000).
I think i might need to use offset but not sure.

Thanks a lot

SD

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Reference a changing range

It should do. I think Barb assumed there was a heading in A1.

You would use that formula inside another function, like so

=SUM(OFFSET(A1,1,0,COUNTA(A:A)-1,1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"SD" wrote in message
...
Thanks for that but not sure if its working...I want to do a linest
function
on the range from a2 to last value in column A as y. So i wanted to
reference A2:A500 (if A500 is last cell with any values). Not sure if
this
forumal works? Thanks.

"Barb Reinhardt" wrote:

I'm going to assume that there are no blank rows in column A until the
last
entry and that A1 has an entry.

Try
=offset(A1,1,0,counta(A:A)-1,1)

"SD" wrote:

Hi there,

I am trying to reference a range that changes as each day goes by.
Currently its A2:A500....Tomorrow it will be A2:A501 etc etc.

So I am trying something like this but its not working
A2:Count(A2:A10000).
I think i might need to use offset but not sure.

Thanks a lot

SD



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Reference a changing range

See if this helps:

http://contextures.com/xlNames01.html#Dynamic

Biff

"SD" wrote in message
...
Hi there,

I am trying to reference a range that changes as each day goes by.
Currently its A2:A500....Tomorrow it will be A2:A501 etc etc.

So I am trying something like this but its not working
A2:Count(A2:A10000).
I think i might need to use offset but not sure.

Thanks a lot

SD





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Cat Cat is offline
external usenet poster
 
Posts: 63
Default Reference a changing range

Do you know how I would enter a range reference that would subtract col b
from col a (I am in col C) but the rows would change each time I rerun the
reporrt. I'm trying to write a macro to automate everything and I'm ok if my
data is static...

I'm feeling very lost

Thanks

"T. Valko" wrote:

See if this helps:

http://contextures.com/xlNames01.html#Dynamic

Biff

"SD" wrote in message
...
Hi there,

I am trying to reference a range that changes as each day goes by.
Currently its A2:A500....Tomorrow it will be A2:A501 etc etc.

So I am trying something like this but its not working
A2:Count(A2:A10000).
I think i might need to use offset but not sure.

Thanks a lot

SD




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
automatic range - named range give me circular reference... George Thorogood Excel Discussion (Misc queries) 0 February 22nd 07 07:53 PM
Prevent formula reference from changing ScottyC Excel Discussion (Misc queries) 3 February 9th 07 03:06 AM
Changing named range reference depending on a cell's content cparaske Excel Discussion (Misc queries) 1 July 29th 05 07:06 PM
changing the formula's row reference redb Excel Discussion (Misc queries) 5 April 26th 05 08:37 PM
A cell reference in a formula changing knemitz Excel Worksheet Functions 1 February 28th 05 06:10 PM


All times are GMT +1. The time now is 02:00 AM.

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"