[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
nkvasan
General User

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

 Posted: Thu May 31, 2007 3:55 am    Post subject: Lookup a Cell Value 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
noranthon
Super User

Joined: 07 Jul 2005
Posts: 3318

 Posted: Thu May 31, 2007 4:10 am    Post subject: 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
nkvasan
General User

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

 Posted: Thu May 31, 2007 4:17 am    Post subject: 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
noranthon
Super User

Joined: 07 Jul 2005
Posts: 3318

 Posted: Thu May 31, 2007 4:23 am    Post subject: The INDEX function is what you want. For your examples: =INDEX(MyTable;30;4) =INDEX(MyTable;40;2)_________________ search forum by month
nkvasan
General User

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

 Posted: Thu May 31, 2007 9:47 pm    Post subject: Thanks. I was able use the function with Match function to identify the column and row._________________Krithivasan
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
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