Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
samccaskill
 
Posts: n/a
Default HELP!!!! Cell Value in a Cell Address


HELP!!!

This may be a basic question, but it's giving me trouble.

I'm trying to set up a worksheet where by inputing a value in a cell,
it changes the value reference in another cell to a new
address.....(confused yet?)

Ex:

in A1, the person would input "24"
then, the value in B2 would equal the value in C24

if they put in "13" into A1, the value in B2 would equal the value in
C13

Does that make sense?

Also, can I use a simple equation in it....like subtraction

Ex:

in A1, the person would input "52"
then, the value in B2 would equal the value in C12, which is 52-40

in A1 the person would input "68"
then the value in B2 would equal the value in C28, which is 68-40

Thanks for your help everyone!!!

Sam


--
samccaskill
------------------------------------------------------------------------
samccaskill's Profile: http://www.excelforum.com/member.php...o&userid=27805
View this thread: http://www.excelforum.com/showthread...hreadid=473143

  #2   Report Post  
swatsp0p
 
Posts: n/a
Default


Use the INDIRECT function, as such:

for your first question:

=INDIRECT("C"&A1,1)

for your second question

=INDIRECT("C"&(A1-40),1)

--OR--

=INDIRECT("C"&(A1-A2),1) where A2 holds the value 40 (or whatever value
you choose--this would save having to modify the formula if you need to
change the subtraction value).

Does this work for you?


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=473143

  #3   Report Post  
samccaskill
 
Posts: n/a
Default


The only change is that I think yours changes the column reference, and
I needed the row reference changed.

ie:

changing the value in A1 would give you a new value in B1

like A1=x, then B1=Cx

A1=14, B1=c14

Does that make sense?

There would be a huge list of values in column C, and by putting a
different number into A1, the value in B1 would then seek out the
corresponding C column value.


--
samccaskill
------------------------------------------------------------------------
samccaskill's Profile: http://www.excelforum.com/member.php...o&userid=27805
View this thread: http://www.excelforum.com/showthread...hreadid=473143

  #4   Report Post  
samccaskill
 
Posts: n/a
Default


I dropped the "1" off the end and got it to work.

Thanks for your help!!!

Sam


--
samccaskill
------------------------------------------------------------------------
samccaskill's Profile: http://www.excelforum.com/member.php...o&userid=27805
View this thread: http://www.excelforum.com/showthread...hreadid=473143

  #5   Report Post  
swatsp0p
 
Posts: n/a
Default


Glad you got it to work for you. Thanks for the feedback, it is always
appreciated.

Cheers!


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=473143



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
Replace a spreadsheets named cells/ranges with exact cell address. David McRitchie Excel Discussion (Misc queries) 0 September 28th 05 08:59 PM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
ADDRESS function - dynamic input cell claytorm Excel Discussion (Misc queries) 1 June 28th 05 02:05 PM
How do I find the contents of a cell using the "ADDRESS" function. sweeney Excel Worksheet Functions 2 April 5th 05 03:23 AM


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