#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 61
Default cell reference

I have a sum in one sheet that references data in another sheet.
i.e. =IF($C8='Sheet 2'!$A$5'Sheet2'!$B$5 (it is a lot bigger than this with
IF OR in it so please dont pull me up on the sum part)

The sum is in Sheet 1 cell F8. As can be seen from the sum, if cell C8 on
sheet 1 equals the value of cell A5 in sheet 2, return the value of Cell B5
in sheet 2. The sum works fine, however, if I insert a row in sheet 2, the
sum references on sheet 1 change.
So, if I insert a row in sheet 2 above cell A5, my sum on sheet 1 changes to
$A$6.

My question here is is it possible to disable something in excel so that the
cell reference does not update if changes are made in sheet 2.
I always thoughts as long as the dollar sign was in the sum, the sum would
never change.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default cell reference

Hi,

use indirect

=IF($C8=INDIRECT("Sheet2!$A$5"),INDIRECT("Sheet2!$ B$5"),"Something else")

Mike

"Woodi2" wrote:

I have a sum in one sheet that references data in another sheet.
i.e. =IF($C8='Sheet 2'!$A$5'Sheet2'!$B$5 (it is a lot bigger than this with
IF OR in it so please dont pull me up on the sum part)

The sum is in Sheet 1 cell F8. As can be seen from the sum, if cell C8 on
sheet 1 equals the value of cell A5 in sheet 2, return the value of Cell B5
in sheet 2. The sum works fine, however, if I insert a row in sheet 2, the
sum references on sheet 1 change.
So, if I insert a row in sheet 2 above cell A5, my sum on sheet 1 changes to
$A$6.

My question here is is it possible to disable something in excel so that the
cell reference does not update if changes are made in sheet 2.
I always thoughts as long as the dollar sign was in the sum, the sum would
never change.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default cell reference

--Use INDIRECT() and try the below formula in sheet1
--Make sure your sheet is named as 'Sheet 2' as in your example and not as
'Sheet2' (without space)

=IF($C8=INDIRECT("'Sheet 2'!A5"),INDIRECT("'Sheet 2'!B5"))

If this post helps click Yes
---------------
Jacob Skaria


"Woodi2" wrote:

I have a sum in one sheet that references data in another sheet.
i.e. =IF($C8='Sheet 2'!$A$5'Sheet2'!$B$5 (it is a lot bigger than this with
IF OR in it so please dont pull me up on the sum part)

The sum is in Sheet 1 cell F8. As can be seen from the sum, if cell C8 on
sheet 1 equals the value of cell A5 in sheet 2, return the value of Cell B5
in sheet 2. The sum works fine, however, if I insert a row in sheet 2, the
sum references on sheet 1 change.
So, if I insert a row in sheet 2 above cell A5, my sum on sheet 1 changes to
$A$6.

My question here is is it possible to disable something in excel so that the
cell reference does not update if changes are made in sheet 2.
I always thoughts as long as the dollar sign was in the sum, the sum would
never change.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default cell reference

Use the INDIRECT function, and put your references in quotes.
=IF($C8=INDIRECT("'Sheet 2'!$A$5")...

What the dollar sign does is keep the reference constant when you copy the
formula down (or across). That isn't the same as keeping it constant when
you insert a new row or column.
--
David Biddulph


"Woodi2" wrote in message
...
I have a sum in one sheet that references data in another sheet.
i.e. =IF($C8='Sheet 2'!$A$5'Sheet2'!$B$5 (it is a lot bigger than this
with
IF OR in it so please dont pull me up on the sum part)

The sum is in Sheet 1 cell F8. As can be seen from the sum, if cell C8 on
sheet 1 equals the value of cell A5 in sheet 2, return the value of Cell
B5
in sheet 2. The sum works fine, however, if I insert a row in sheet 2,
the
sum references on sheet 1 change.
So, if I insert a row in sheet 2 above cell A5, my sum on sheet 1 changes
to
$A$6.

My question here is is it possible to disable something in excel so that
the
cell reference does not update if changes are made in sheet 2.
I always thoughts as long as the dollar sign was in the sum, the sum would
never change.



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
Nesting a sheet name reference within a cell reference??? Broyston Excel Discussion (Misc queries) 9 July 8th 08 08:35 PM
Formulas that reference cells that reference another cell Andrea Excel Discussion (Misc queries) 7 October 19th 06 08:14 AM
absolute cell reference A spreadsheet cell reference that does no help Excel Discussion (Misc queries) 1 January 18th 06 06:56 PM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. [email protected] Excel Worksheet Functions 2 December 11th 04 12:05 AM
Problem with =sum(offset(cell reference,w,x,y,z). I want cell reference to be variable [email protected] Excel Worksheet Functions 2 December 11th 04 12:00 AM


All times are GMT +1. The time now is 04:25 AM.

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

About Us

"It's about Microsoft Excel"