Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tx12345
 
Posts: n/a
Default Changing a cell reference within a formula w/another cell


Hi

Let's say I have this formula in A1:

=if(A2=2,"Hello","")

But let's say I want to make the location of where the '2' has to be to
trigger the 'Hello' in A1 conditioned on a value in B1, and let's say B1
changes to 5. So now instead of the formula in A1 saying
=if(A2=2,"Hello","") I will want it to say =if(A5=2,"Hello","").

Many thanks as always

tx


--
tx12345
------------------------------------------------------------------------
tx12345's Profile: http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=519578

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
davesexcel
 
Posts: n/a
Default Changing a cell reference within a formula w/another cell


I am confused, are you asking for 2 formulas in one cell, this can be
done I just want to be sure that is what you are asking:
for example
=if(A2=2,"Hello",if(A5=2,"Hello",""))
Is this what you mean??


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=519578

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default Changing a cell reference within a formula w/another cell

=IF(INDIRECT("A"&B1)=2,"Hello","")

Vaya con Dios,
Chuck, CABGx3


"tx12345" wrote in
message ...

Hi

Let's say I have this formula in A1:

=if(A2=2,"Hello","")

But let's say I want to make the location of where the '2' has to be to
trigger the 'Hello' in A1 conditioned on a value in B1, and let's say B1
changes to 5. So now instead of the formula in A1 saying
=if(A2=2,"Hello","") I will want it to say =if(A5=2,"Hello","").

Many thanks as always

tx


--
tx12345
------------------------------------------------------------------------
tx12345's Profile:

http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=519578



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Changing a cell reference within a formula w/another cell

One way, think we could use in A1:
=IF(INDIRECT("A"&B1)=2,"Hello","")
where B1 will contain the row reference
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"tx12345" wrote in
message ...

Hi

Let's say I have this formula in A1:

=if(A2=2,"Hello","")

But let's say I want to make the location of where the '2' has to be to
trigger the 'Hello' in A1 conditioned on a value in B1, and let's say B1
changes to 5. So now instead of the formula in A1 saying
=if(A2=2,"Hello","") I will want it to say =if(A5=2,"Hello","").

Many thanks as always

tx


--
tx12345
------------------------------------------------------------------------
tx12345's Profile:

http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=519578



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tx12345
 
Posts: n/a
Default Changing a cell reference within a formula w/another cell


CLR

Works great, thank you.

tx


--
tx12345
------------------------------------------------------------------------
tx12345's Profile: http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=519578



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default Changing a cell reference within a formula w/another cell

You're quite welcome, thanks for the feedback......

Vaya con Dios,
Chuck, CABGx3


"tx12345" wrote in
message ...

CLR

Works great, thank you.

tx


--
tx12345
------------------------------------------------------------------------
tx12345's Profile:

http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=519578



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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Changing a cell referent in a formula several at a time... johnexcel New Users to Excel 3 August 27th 05 05:15 PM
HOW DO I COPY FORMULA WITHOUT CHANGING CELL REFERENCE anantth Excel Discussion (Misc queries) 4 February 6th 05 12:25 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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