Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pat
 
Posts: n/a
Default Change cell referance based on value

A1 in sheet1 contains a reference to a cell in sheet2:

=sheet2!G4

what I want to include in the above formula is a reference to a cell value
in sheet1 B1:

=IF(NOT(B1="option1"),=sheet2!G4,(B1="option2"),=s heet2!K7)

The above is clearly not correct but is only a way to illustrate what I am
trying to explain. If you find it difficult to make sense of it I will try
to explain in a better way.

Pat


  #2   Report Post  
bj
 
Posts: n/a
Default

I am not sure on your "Not"
but try
=if(sheet1!B1="option1",sheet2!G4,if(sheet1!B1="op tion2",sheet2!K7,"otherwise"))
Note I used the same lowercase "sheet" you did, Make sure they match your
actual sheet names.

this equation has the cell equal sheet2!G4 if sheet1!B1="option1"
I could interpret you equation in other ways.

Also if the equation is on sheet 1 you do not have to have the sheet1! in
the equation.

"Pat" wrote:

A1 in sheet1 contains a reference to a cell in sheet2:

=sheet2!G4

what I want to include in the above formula is a reference to a cell value
in sheet1 B1:

=IF(NOT(B1="option1"),=sheet2!G4,(B1="option2"),=s heet2!K7)

The above is clearly not correct but is only a way to illustrate what I am
trying to explain. If you find it difficult to make sense of it I will try
to explain in a better way.

Pat



  #3   Report Post  
Pat
 
Posts: n/a
Default

Thankyou BJ


"bj" wrote in message
...
I am not sure on your "Not"
but try
=if(sheet1!B1="option1",sheet2!G4,if(sheet1!B1="op tion2",sheet2!K7,"otherwise"))
Note I used the same lowercase "sheet" you did, Make sure they match your
actual sheet names.

this equation has the cell equal sheet2!G4 if sheet1!B1="option1"
I could interpret you equation in other ways.

Also if the equation is on sheet 1 you do not have to have the sheet1! in
the equation.

"Pat" wrote:

A1 in sheet1 contains a reference to a cell in sheet2:

=sheet2!G4

what I want to include in the above formula is a reference to a cell
value
in sheet1 B1:

=IF(NOT(B1="option1"),=sheet2!G4,(B1="option2"),=s heet2!K7)

The above is clearly not correct but is only a way to illustrate what I
am
trying to explain. If you find it difficult to make sense of it I will
try
to explain in a better way.

Pat





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
Format cell in column B based on value in the next cell (column c) Nicole Excel Discussion (Misc queries) 7 May 18th 05 10:19 PM
Can an excel cell automatically change fill colors based on values John Clark Excel Discussion (Misc queries) 1 February 5th 05 05:21 PM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM
Delete Cell Value Based on Another Cell T or F DocuMike Excel Discussion (Misc queries) 3 January 5th 05 08:46 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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