Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tzvarza`
 
Posts: n/a
Default is there a function for getting the content of a cell?


I have 2 variables which determine the row and the column of a cell. I
need to find out the number in that cell.

For example, if I have i=4 and j=2 then I need the number in B4. But I
can't write "=B4" because i and j are variables therefore I need
something like this "=cell_content(4;2)".


--
tzvarza`
------------------------------------------------------------------------
tzvarza`'s Profile: http://www.excelforum.com/member.php...o&userid=28765
View this thread: http://www.excelforum.com/showthread...hreadid=484522

  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default is there a function for getting the content of a cell?

On Sat, 12 Nov 2005 07:28:16 -0600, tzvarza`
wrote:


I have 2 variables which determine the row and the column of a cell. I
need to find out the number in that cell.

For example, if I have i=4 and j=2 then I need the number in B4. But I
can't write "=B4" because i and j are variables therefore I need
something like this "=cell_content(4;2)".



=INDIRECT(ADDRESS(row_num,col_num))


--ron
  #4   Report Post  
Ron Coderre
 
Posts: n/a
Default is there a function for getting the content of a cell?


Will this work for you?:
=OFFSET($A$1,I1-1,J1-1)

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=484522

  #5   Report Post  
tzvarza`
 
Posts: n/a
Default is there a function for getting the content of a cell?


The function ADDRESS is what I tried to use, but didn't manage to get
the actual number.

Now I tested INDIRECT(ADDRESS(row_num,col_num)) and it works just fine
:D

10x for your help


--
tzvarza`
------------------------------------------------------------------------
tzvarza`'s Profile: http://www.excelforum.com/member.php...o&userid=28765
View this thread: http://www.excelforum.com/showthread...hreadid=484522



  #6   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default is there a function for getting the content of a cell?

On Sat, 12 Nov 2005 07:55:25 -0600, tzvarza`
wrote:


The function ADDRESS is what I tried to use, but didn't manage to get
the actual number.

Now I tested INDIRECT(ADDRESS(row_num,col_num)) and it works just fine
:D

10x for your help



You're welcome. Thanks for the feedback.

--ron
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
indirect function to reference cell on different sheet Dolemite Excel Worksheet Functions 2 August 19th 05 05:25 PM
Use Cell Content to Build Link flattire00101 Excel Worksheet Functions 1 June 17th 05 05:40 PM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Numeric content in one cell ( implicit formula ) and the result in another one PeDevillers Excel Discussion (Misc queries) 7 March 2nd 05 07:40 AM


All times are GMT +1. The time now is 11:30 AM.

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"