#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Name Ranges

I have a worksheet where I use multiple named ranges (Excel 2003
)
=OFFSET(Sheet1!$G$1,0,0,COUNTA(Sheet1!$A:$A),1)

When I remove old data from Sheet1, with the exception of the column
headers, row 1, and add new data I have to update all my name ranges and it
is always the cell it references.

In the example above I would have to update the $G$1 because it would read
after I delete the data and add new:
=OFFSET(Sheet1!$REF!,0,0,COUNTA(Sheet1!$A:$A),1)

Is there a way to avoid having to update these every time I delete the my
old data and add new, it is time consuming to update all the ranges and they
are needed

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default Name Ranges

One way:

=OFFSET(INDIRECT("Sheet1!G1"),,,COUNTA(Sheet1!$A:$ A))

Note that that will *always* refer to Sheet1!G1. If you inserted new columns
or rows and G1 was no longer the "anchor" cell that formula *won't* update to
reflect the action.

--
Biff
Microsoft Excel MVP


"Jen_T" wrote:

I have a worksheet where I use multiple named ranges (Excel 2003
)
=OFFSET(Sheet1!$G$1,0,0,COUNTA(Sheet1!$A:$A),1)

When I remove old data from Sheet1, with the exception of the column
headers, row 1, and add new data I have to update all my name ranges and it
is always the cell it references.

In the example above I would have to update the $G$1 because it would read
after I delete the data and add new:
=OFFSET(Sheet1!$REF!,0,0,COUNTA(Sheet1!$A:$A),1)

Is there a way to avoid having to update these every time I delete the my
old data and add new, it is time consuming to update all the ranges and they
are needed

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Name Ranges

Do I still include the,0,0

For example:
=OFFSET(INDIRECT("Sheet1!$G$1"),0,0,COUNTA(Sheet1! $A:$A),1)

"T. Valko" wrote:

One way:

=OFFSET(INDIRECT("Sheet1!G1"),,,COUNTA(Sheet1!$A:$ A))

Note that that will *always* refer to Sheet1!G1. If you inserted new columns
or rows and G1 was no longer the "anchor" cell that formula *won't* update to
reflect the action.

--
Biff
Microsoft Excel MVP


"Jen_T" wrote:

I have a worksheet where I use multiple named ranges (Excel 2003
)
=OFFSET(Sheet1!$G$1,0,0,COUNTA(Sheet1!$A:$A),1)

When I remove old data from Sheet1, with the exception of the column
headers, row 1, and add new data I have to update all my name ranges and it
is always the cell it references.

In the example above I would have to update the $G$1 because it would read
after I delete the data and add new:
=OFFSET(Sheet1!$REF!,0,0,COUNTA(Sheet1!$A:$A),1)

Is there a way to avoid having to update these every time I delete the my
old data and add new, it is time consuming to update all the ranges and they
are needed

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default Name Ranges

You can if you want to.

The way I wrote it:

=OFFSET(INDIRECT("Sheet1!G1"),,,COUNTA(Sheet1!$A:$ A))

Those arguments are empty so they default to 0.

These 2 formulas do *exactly* the same thing:

=OFFSET(INDIRECT("Sheet1!$G$1"),0,0,COUNTA(Sheet1! $A:$A),1)

=OFFSET(INDIRECT("Sheet1!G1"),,,COUNTA(Sheet1!$A:$ A))


--
Biff
Microsoft Excel MVP


"Jen_T" wrote:

Do I still include the,0,0

For example:
=OFFSET(INDIRECT("Sheet1!$G$1"),0,0,COUNTA(Sheet1! $A:$A),1)

"T. Valko" wrote:

One way:

=OFFSET(INDIRECT("Sheet1!G1"),,,COUNTA(Sheet1!$A:$ A))

Note that that will *always* refer to Sheet1!G1. If you inserted new columns
or rows and G1 was no longer the "anchor" cell that formula *won't* update to
reflect the action.

--
Biff
Microsoft Excel MVP


"Jen_T" wrote:

I have a worksheet where I use multiple named ranges (Excel 2003
)
=OFFSET(Sheet1!$G$1,0,0,COUNTA(Sheet1!$A:$A),1)

When I remove old data from Sheet1, with the exception of the column
headers, row 1, and add new data I have to update all my name ranges and it
is always the cell it references.

In the example above I would have to update the $G$1 because it would read
after I delete the data and add new:
=OFFSET(Sheet1!$REF!,0,0,COUNTA(Sheet1!$A:$A),1)

Is there a way to avoid having to update these every time I delete the my
old data and add new, it is time consuming to update all the ranges and they
are needed

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Name Ranges

I only get that error if I delete G1 (row 1 or column G)

How are you deleting the old data?

Maybe clearing the range (or clearing contents) would be ok.

Jen_T wrote:

I have a worksheet where I use multiple named ranges (Excel 2003
)
=OFFSET(Sheet1!$G$1,0,0,COUNTA(Sheet1!$A:$A),1)

When I remove old data from Sheet1, with the exception of the column
headers, row 1, and add new data I have to update all my name ranges and it
is always the cell it references.

In the example above I would have to update the $G$1 because it would read
after I delete the data and add new:
=OFFSET(Sheet1!$REF!,0,0,COUNTA(Sheet1!$A:$A),1)

Is there a way to avoid having to update these every time I delete the my
old data and add new, it is time consuming to update all the ranges and they
are needed


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Name Ranges

I highlight all the data from a2 down and delete those rows. Then when I
paste the new data in row a2I get that error.

"Dave Peterson" wrote:

I only get that error if I delete G1 (row 1 or column G)

How are you deleting the old data?

Maybe clearing the range (or clearing contents) would be ok.

Jen_T wrote:

I have a worksheet where I use multiple named ranges (Excel 2003
)
=OFFSET(Sheet1!$G$1,0,0,COUNTA(Sheet1!$A:$A),1)

When I remove old data from Sheet1, with the exception of the column
headers, row 1, and add new data I have to update all my name ranges and it
is always the cell it references.

In the example above I would have to update the $G$1 because it would read
after I delete the data and add new:
=OFFSET(Sheet1!$REF!,0,0,COUNTA(Sheet1!$A:$A),1)

Is there a way to avoid having to update these every time I delete the my
old data and add new, it is time consuming to update all the ranges and they
are needed


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Name Ranges

I still can't duplicate this.

I couldn't break it no matter what I tried. Do you use merged cells?

I tried a couple variations and it still worked, but maybe I didn't try merged
cells like you're using?

(Merged cells can be trouble!)

Jen_T wrote:

I highlight all the data from a2 down and delete those rows. Then when I
paste the new data in row a2I get that error.

"Dave Peterson" wrote:

I only get that error if I delete G1 (row 1 or column G)

How are you deleting the old data?

Maybe clearing the range (or clearing contents) would be ok.

Jen_T wrote:

I have a worksheet where I use multiple named ranges (Excel 2003
)
=OFFSET(Sheet1!$G$1,0,0,COUNTA(Sheet1!$A:$A),1)

When I remove old data from Sheet1, with the exception of the column
headers, row 1, and add new data I have to update all my name ranges and it
is always the cell it references.

In the example above I would have to update the $G$1 because it would read
after I delete the data and add new:
=OFFSET(Sheet1!$REF!,0,0,COUNTA(Sheet1!$A:$A),1)

Is there a way to avoid having to update these every time I delete the my
old data and add new, it is time consuming to update all the ranges and they
are needed


--

Dave Peterson


--

Dave Peterson
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
how copy formula that contains ranges so ranges do not overlap Patty Excel Worksheet Functions 1 November 20th 08 04:15 PM
Looking in Ranges [email protected] Excel Discussion (Misc queries) 1 April 18th 07 04:24 PM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM
using ranges Guido Excel Worksheet Functions 1 February 18th 05 03:53 PM
Ranges Mona Excel Discussion (Misc queries) 1 December 17th 04 06:23 AM


All times are GMT +1. The time now is 07:40 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"