Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Colboyfx
 
Posts: n/a
Default lookup function 1

a1 b c d e f g
2 1 2 3 4 5
3 1 10 10 10 10 10
4 2 30 10 10 10 10
5 3 50 30 10 10 10
6 4 70 50 30 10 10
7 5 90 70 50 30 10

hope someone can help me please, i'm trying to build a function that will
allow me to lookup a value based on the row/column ref returned from the
results of another formula. e.g lookup value in col b (3) then lookup value
in row 2 (1) return value where the two results intersect (C5=50), i know how
to create name ranges but can't work out how to create a function that will
return the result i'm looking for

thanks in advance

  #2   Report Post  
Barb Reinhardt
 
Posts: n/a
Default

You can use the INDEX() function to do this. How do you determine the ROW
#? I came up with this, but it needs refinement:

=MATCH(B5,C2:G2,0)
Gives you the "column number" where there is a match for B5 in the array
C2:G2.

=INDEX(C2:G7,3,MATCH(B5,C2:G2,0))



"Colboyfx" wrote in message
...
a1 b c d e f g
2 1 2 3 4 5
3 1 10 10 10 10 10
4 2 30 10 10 10 10
5 3 50 30 10 10 10
6 4 70 50 30 10 10
7 5 90 70 50 30 10

hope someone can help me please, i'm trying to build a function that will
allow me to lookup a value based on the row/column ref returned from the
results of another formula. e.g lookup value in col b (3) then lookup
value
in row 2 (1) return value where the two results intersect (C5=50), i know
how
to create name ranges but can't work out how to create a function that
will
return the result i'm looking for

thanks in advance



  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Take your pick:

A1 = 3
B1 = 1

=VLOOKUP(A1,B2:G7,MATCH(B1,B2:G2,0),0) = C5 = 50

=INDEX(C3:G7,MATCH(A1,B2:B7,0),MATCH(B1,B2:G2,0)) = C5 = 50

I prefer the Vlookup.

Biff


"Colboyfx" wrote in message
...
a1 b c d e f g
2 1 2 3 4 5
3 1 10 10 10 10 10
4 2 30 10 10 10 10
5 3 50 30 10 10 10
6 4 70 50 30 10 10
7 5 90 70 50 30 10

hope someone can help me please, i'm trying to build a function that will
allow me to lookup a value based on the row/column ref returned from the
results of another formula. e.g lookup value in col b (3) then lookup
value
in row 2 (1) return value where the two results intersect (C5=50), i know
how
to create name ranges but can't work out how to create a function that
will
return the result i'm looking for

thanks in advance



  #4   Report Post  
Dana DeLouis
 
Posts: n/a
Default

Does your data follow the same pattern? If so, would this work?
(A1=row #, B1=Column #)

=MAX(20*(A1-B1)+10,10)

HTH
--
Dana DeLouis
Win XP & Office 2003


"Colboyfx" wrote in message
...
a1 b c d e f g
2 1 2 3 4 5
3 1 10 10 10 10 10
4 2 30 10 10 10 10
5 3 50 30 10 10 10
6 4 70 50 30 10 10
7 5 90 70 50 30 10

hope someone can help me please, i'm trying to build a function that will
allow me to lookup a value based on the row/column ref returned from the
results of another formula. e.g lookup value in col b (3) then lookup
value
in row 2 (1) return value where the two results intersect (C5=50), i know
how
to create name ranges but can't work out how to create a function that
will
return the result i'm looking for

thanks in advance



  #5   Report Post  
Colboyfx
 
Posts: n/a
Default

Thanks everybody i'll give all your suggestion a try and get back to you if
i'm successful
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 function returning reference, not value Caligula Excel Worksheet Functions 1 May 28th 05 06:35 PM
How do I use 3 cells to create the string for a lookup function? Bencomo Excel Worksheet Functions 1 May 15th 05 07:17 AM
Lookup Function Error Jacinthe Excel Worksheet Functions 2 March 10th 05 07:37 AM
Lookup Function Problem seve Excel Discussion (Misc queries) 9 February 28th 05 02:46 AM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM


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