#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default lookup

Hi, if i have a table of numbers, eg a times table laid out with
numbers 1 to 12 across and 1 to 12 down. How do i look to see, when
selecting say, 5 along the top line and 6 in the first column, were
these cross and what the answer is. Hope that makes sense.
1 3 3 4 5 6 7 8 9 10 11 12
2 ¦
3 ¦
4 ¦
5 ¦
6 ----------30-------
7 ¦
8 ¦
9
10
11
12

Regards Robert

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default lookup


Dim c as Long, r as Long, rng as Range
c = 5
r = 6
set rng = intersect(columns(c),rows(r))
msgbox rng.Address & " - " & rng.Value

--
Regards,
Tom Ogilvy


" wrote:

Hi, if i have a table of numbers, eg a times table laid out with
numbers 1 to 12 across and 1 to 12 down. How do i look to see, when
selecting say, 5 along the top line and 6 in the first column, were
these cross and what the answer is. Hope that makes sense.
1 3 3 4 5 6 7 8 9 10 11 12
2 ¦
3 ¦
4 ¦
5 ¦
6 ----------30-------
7 ¦
8 ¦
9
10
11
12

Regards Robert


  #4   Report Post  
Posted to microsoft.public.excel.programming
Nyq Nyq is offline
external usenet poster
 
Posts: 1
Default lookup


Have you considered the Intersection Operator? It works on name
ranges;

for example "=(RowName ColumnName)" returns the cell at th
intersection of that row and column. The operator is simply the spac
between the names.

Regard

--
Ny
-----------------------------------------------------------------------
Nyq's Profile: http://www.excelforum.com/member.php...fo&userid=3538
View this thread: http://www.excelforum.com/showthread.php?threadid=55149

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default lookup

Thanyou both for your replys. Thats great.
Regards Robert

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
lookup help. lookup result based on data in 2 columns lcc Excel Worksheet Functions 3 April 6th 10 01:20 PM
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Excel Discussion (Misc queries) 5 June 26th 09 09:15 PM
Lookup looks to the prior column if zero appears in the lookup col kenbquik Excel Discussion (Misc queries) 2 March 12th 09 03:41 AM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM


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