Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
septillion
 
Posts: n/a
Default Referencing a cell based on the value in another cell


Hi all,

I have issues. What I want to do, if possible, is reference a
particular cell by using the value in another cell. So for example, if
I have the following:


A B C
1 9 3
2 8
3 7
4 6
5 5 =WhatIWant


What I want to be able to do is have another cell somewhere else that
will reference one of the cells A1:5, and that cell is determined by
cell C1. So as it is above, WhatIWant should equal the value in A3
because C1=3, but if I change C1 to a different number, WhatIWant
should change as well.

Any ideas?


--
septillion
------------------------------------------------------------------------
septillion's Profile: http://www.excelforum.com/member.php...o&userid=35882
View this thread: http://www.excelforum.com/showthread...hreadid=556762

  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Referencing a cell based on the value in another cell

Hi!

Try one of these:

=INDEX(A1:A5,C1)

=INDIRECT("A"&C1)

You might want to make sure C1 has a value entered into it:

=IF(C1="","",INDEX(A1:A5,C1))

=IF(C1="","",INDIRECT("A"&C1))

Biff

"septillion" wrote
in message ...

Hi all,

I have issues. What I want to do, if possible, is reference a
particular cell by using the value in another cell. So for example, if
I have the following:


A B C
1 9 3
2 8
3 7
4 6
5 5 =WhatIWant


What I want to be able to do is have another cell somewhere else that
will reference one of the cells A1:5, and that cell is determined by
cell C1. So as it is above, WhatIWant should equal the value in A3
because C1=3, but if I change C1 to a different number, WhatIWant
should change as well.

Any ideas?


--
septillion
------------------------------------------------------------------------
septillion's Profile:
http://www.excelforum.com/member.php...o&userid=35882
View this thread: http://www.excelforum.com/showthread...hreadid=556762



  #3   Report Post  
Posted to microsoft.public.excel.misc
septillion
 
Posts: n/a
Default Referencing a cell based on the value in another cell


Yep, that worked. Cheers, much obliged.


--
septillion
------------------------------------------------------------------------
septillion's Profile: http://www.excelforum.com/member.php...o&userid=35882
View this thread: http://www.excelforum.com/showthread...hreadid=556762

  #4   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Referencing a cell based on the value in another cell

You're welcome!

Biff

"septillion" wrote
in message ...

Yep, that worked. Cheers, much obliged.


--
septillion
------------------------------------------------------------------------
septillion's Profile:
http://www.excelforum.com/member.php...o&userid=35882
View this thread: http://www.excelforum.com/showthread...hreadid=556762



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
Cell Limitations ? Formatting and Size when exporting to Tab based Text file? PaulH_1980 Excel Worksheet Functions 1 March 15th 06 11:51 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Linking a cell to another workbook cell based on a variable name Brian Excel Discussion (Misc queries) 6 June 1st 05 11:54 PM
Returning a Value to a Cell Based on a Range of Uncertain Size amc422 Excel Worksheet Functions 7 November 14th 04 03:03 PM


All times are GMT +1. The time now is 09:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"