How do I reference one OR another worksheet?

S

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 result
1 tab or results 2 tab depending on which model is being used. How do
use an IF or Vlookup or indirect function to do this?

This is my formula: (which works great unless I delete 'results 1' i
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.
 
G

glenn.mettler.ctr

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
 
C

Claus Busch

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top