Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
nme nme is offline
external usenet poster
 
Posts: 1
Default Prevent cell/array references from changing when altering/moving thecell/array

Hello,

In Sheet1, I have a reference like this: =SUM(Sheet2!A1:A100)

Sheet2 contains 100 rows of static data, no formulas, copied and
pasted into the sheet from another system.

However, when I delete and/or manipulate the data in Sheet2, the
reference on Sheet1 is sometimes modified.

(e.g. when I delete a row in the middle of Sheet2, the reference on
Sheet1 now only refers to A1:A99.

Is it possible to avoid this behaviour? I want the A1:A100 reference
to be absolute, and never change (unless I do it manually) - no matter
what I do in Sheet2.

Same thing happens when I refer to a single cell, e.g. C1, and then
cut and paste the C1 cell to C3. The reference now points to C3, even
though I still want it to point to C1 (even though C1 now is empty).

Thanks for any help :-)


Kind regards,
Nils Magnus
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Prevent cell/array references from changing when altering/moving the cell/array

Niles,

You can use the INDIRECT function to absolutely freeze a reference:

=SUM(INDIRECT("Sheet2!A1:A100"))

HTH,
Bernie
MS Excel MVP


"nme" wrote in message
...
Hello,

In Sheet1, I have a reference like this: =SUM(Sheet2!A1:A100)

Sheet2 contains 100 rows of static data, no formulas, copied and
pasted into the sheet from another system.

However, when I delete and/or manipulate the data in Sheet2, the
reference on Sheet1 is sometimes modified.

(e.g. when I delete a row in the middle of Sheet2, the reference on
Sheet1 now only refers to A1:A99.

Is it possible to avoid this behaviour? I want the A1:A100 reference
to be absolute, and never change (unless I do it manually) - no matter
what I do in Sheet2.

Same thing happens when I refer to a single cell, e.g. C1, and then
cut and paste the C1 cell to C3. The reference now points to C3, even
though I still want it to point to C1 (even though C1 now is empty).

Thanks for any help :-)


Kind regards,
Nils Magnus



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
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
Display an array of references andy62 Excel Worksheet Functions 1 July 6th 06 03:36 AM
How to copy an array without changing relative cell refferences? Dmitry Excel Worksheet Functions 12 June 20th 06 02:07 PM
How to copy an array without changing relative cell references? Dmitry Excel Worksheet Functions 10 June 20th 06 01:11 PM
How to copy an array without changing relative cell references? Dmitry Excel Worksheet Functions 0 June 19th 06 03:08 PM


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