OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Lookup a Cell Value

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
nkvasan
General User
General User


Joined: 02 Apr 2007
Posts: 36
Location: Chennai, India

PostPosted: Thu May 31, 2007 3:55 am    Post subject: Lookup a Cell Value Reply with quote

I have a table in which first row and first column represents the index. Based on row / column value, I want the lookup the cell where they intersect. I there a formula for doing this lookup?
_________________
Krithivasan
Back to top
View user's profile Send private message Send e-mail
noranthon
Super User
Super User


Joined: 07 Jul 2005
Posts: 3318

PostPosted: Thu May 31, 2007 4:10 am    Post subject: Reply with quote

It isn't clear to me what you intend but the INDEX function may serve. You could also look at the MATCH, VLOOKUP, HLOOKUP and LOOKUP functions.
_________________
search forum by month
Back to top
View user's profile Send private message
nkvasan
General User
General User


Joined: 02 Apr 2007
Posts: 36
Location: Chennai, India

PostPosted: Thu May 31, 2007 4:17 am    Post subject: Reply with quote

I have a table like this:

2 4 6 8 10 12
10 0 5 7 9 12 13
20 5 8 9 10 17 14
30 4 3 2 7 8 2
40 7 7 3 9 7 8
50 9 8 7 6 5 4

First row and first coloum represents the key that will be entered. For example, If I enter key as 30 (row key) and 4 (column key), the result should be 3. In case I enter 40 and 2, the result should be 7.

Hope I am clear
_________________
Krithivasan
Back to top
View user's profile Send private message Send e-mail
noranthon
Super User
Super User


Joined: 07 Jul 2005
Posts: 3318

PostPosted: Thu May 31, 2007 4:23 am    Post subject: Reply with quote

The INDEX function is what you want. For your examples: =INDEX(MyTable;30;4) =INDEX(MyTable;40;2)
_________________
search forum by month
Back to top
View user's profile Send private message
nkvasan
General User
General User


Joined: 02 Apr 2007
Posts: 36
Location: Chennai, India

PostPosted: Thu May 31, 2007 9:47 pm    Post subject: Reply with quote

Thanks. I was able use the function with Match function to identify the column and row.
_________________
Krithivasan
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group