ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I reference one OR another worksheet? (https://www.excelbanter.com/excel-discussion-misc-queries/448398-how-do-i-reference-one-another-worksheet.html)

svongal

How do I reference one OR another worksheet?
 
I have three worksheets at the bottom.
'Assumptions'- where info is filled out
'Results 1'- depending on the model, this results tab may be used
'Results 2'- depending on the model, this results tab may be used

In the Assumptions tab, I want to reference cells in either the results 1 tab or results 2 tab depending on which model is being used. How do I use an IF or Vlookup or indirect function to do this?

This is my formula: (which works great unless I delete 'results 1' in which case, I want it to look at the same cell in 'results 2') =(-1*0.26*($D$2*'results 1'!$C$3*$D$5*$D$53*(1-$D$4)))*0.5

[email protected]

How do I reference one OR another worksheet?
 
On Wednesday, March 13, 2013 3:48:21 PM UTC-5, svongal wrote:
I have three worksheets at the bottom. 'Assumptions'- where info is filled out 'Results 1'- depending on the model, this results tab may be used 'Results 2'- depending on the model, this results tab may be used In the Assumptions tab, I want to reference cells in either the results 1 tab or results 2 tab depending on which model is being used. How do I use an IF or Vlookup or indirect function to do this? This is my formula: (which works great unless I delete 'results 1' in which case, I want it to look at the same cell in 'results 2') =(-1*0.26*($D$2*'results 1'!$C$3*$D$5*$D$53*(1-$D$4)))*0.5 -- svongal


svongal
try this:
=if(model = 1,(-1*0.26*($D$2*'results 1'!$C$3*$D$5*$D$53*(1-$D$4)))*0.5,(-1*0.26*($D$2*'results 2'!$C$3*$D$5*$D$53*(1-$D$4)))*0.5)

Glen



Claus Busch

How do I reference one OR another worksheet?
 
hi,

Am Wed, 13 Mar 2013 20:48:21 +0000 schrieb svongal:

I have three worksheets at the bottom.
'Assumptions'- where info is filled out
'Results 1'- depending on the model, this results tab may be used
'Results 2'- depending on the model, this results tab may be used

In the Assumptions tab, I want to reference cells in either the results
1 tab or results 2 tab depending on which model is being used. How do I
use an IF or Vlookup or indirect function to do this?


if you have the model number in sheet "Assumptions" e.g. in A2 you can
use INDIRECT:
=(-1*0.26*($D$2*INDIRECT("'Results "&A2&"'!$C$3")*$D$5*$D$53*(1-$D$4)))-0.5


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2


All times are GMT +1. The time now is 12:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com