Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 386
Default Match and Index for Tables

Can anyone tell me how to get the match and index functions to work for an
8x8 table?

So for example I would like the function to take a given text string ec for
example, search for its position in the first table, then look at the second
table and return the value the corresponds to the text string located in the
first box.

Examples - I ask the function to find the value corresponding to; ec the
function returns the value 99, for bh - 4, for ga- 78.

The text string to match is in cell m10, and the top left corner of the
tables begins in cell N10.

Tables below

a b c d e f g h
a aa ba ca da ea fa ga ha
b ab bb cb db eb fb gb hb
c ac bc cc dc ec fc gc hc
d ad bd cd dd ed fd gd hd
e ae be ce de ee fe ge he
f af bf cf df ef ff gf hf
g ag bg cg dg eg fg gg hg
h ah bh ch dh eh fh gh hh

a b c d e f g h
a 20 11 30 33 44 40 78 54
b 20 20 20 20 20 20 20 20
c 20 43 5 90 99 67 60 56
d 20 20 20 20 20 20 20 20
e 20 20 20 20 20 20 20 20
f 20 20 20 20 20 20 20 20
g 20 23 21 12 12 12 12 12
h 20 4 4 4 4 50 43 80

Anyone know? I can't figure out how to get match to look at tables rather
than columns.

Thanks a million
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Match and Index for Tables

You don't need the top table, just the bottom

Assume the bottom table is within N20:V28
Input in M10, eg: ec

Then in say, M9:
=INDEX(O21:V28,MATCH(RIGHT(M10),N21:N28,0),MATCH(L EFT(M10),O20:V20,0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500 Files:358 Subscribers:55
xdemechanik
---
"LiAD" wrote:
Can anyone tell me how to get the match and index functions to work for an
8x8 table?

So for example I would like the function to take a given text string ec for
example, search for its position in the first table, then look at the second
table and return the value the corresponds to the text string located in the
first box.

Examples - I ask the function to find the value corresponding to; ec the
function returns the value 99, for bh - 4, for ga- 78.

The text string to match is in cell m10, and the top left corner of the
tables begins in cell N10.

Tables below

a b c d e f g h
a aa ba ca da ea fa ga ha
b ab bb cb db eb fb gb hb
c ac bc cc dc ec fc gc hc
d ad bd cd dd ed fd gd hd
e ae be ce de ee fe ge he
f af bf cf df ef ff gf hf
g ag bg cg dg eg fg gg hg
h ah bh ch dh eh fh gh hh

a b c d e f g h
a 20 11 30 33 44 40 78 54
b 20 20 20 20 20 20 20 20
c 20 43 5 90 99 67 60 56
d 20 20 20 20 20 20 20 20
e 20 20 20 20 20 20 20 20
f 20 20 20 20 20 20 20 20
g 20 23 21 12 12 12 12 12
h 20 4 4 4 4 50 43 80

Anyone know? I can't figure out how to get match to look at tables rather
than columns.

Thanks a million

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 386
Default Match and Index for Tables

works well, except for the fact that list i want to match it to is from a
validation list, so its a preselected list which the user selects a b or c
etc. I cannot get match to work unless the value is actually typed into a
cell by itself. Even if i set another cell = to the validation cell its
doesn't work.

Any ideas how to get round this one also?

Thanks
LD

"Max" wrote:

You don't need the top table, just the bottom

Assume the bottom table is within N20:V28
Input in M10, eg: ec

Then in say, M9:
=INDEX(O21:V28,MATCH(RIGHT(M10),N21:N28,0),MATCH(L EFT(M10),O20:V20,0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500 Files:358 Subscribers:55
xdemechanik
---
"LiAD" wrote:
Can anyone tell me how to get the match and index functions to work for an
8x8 table?

So for example I would like the function to take a given text string ec for
example, search for its position in the first table, then look at the second
table and return the value the corresponds to the text string located in the
first box.

Examples - I ask the function to find the value corresponding to; ec the
function returns the value 99, for bh - 4, for ga- 78.

The text string to match is in cell m10, and the top left corner of the
tables begins in cell N10.

Tables below

a b c d e f g h
a aa ba ca da ea fa ga ha
b ab bb cb db eb fb gb hb
c ac bc cc dc ec fc gc hc
d ad bd cd dd ed fd gd hd
e ae be ce de ee fe ge he
f af bf cf df ef ff gf hf
g ag bg cg dg eg fg gg hg
h ah bh ch dh eh fh gh hh

a b c d e f g h
a 20 11 30 33 44 40 78 54
b 20 20 20 20 20 20 20 20
c 20 43 5 90 99 67 60 56
d 20 20 20 20 20 20 20 20
e 20 20 20 20 20 20 20 20
f 20 20 20 20 20 20 20 20
g 20 23 21 12 12 12 12 12
h 20 4 4 4 4 50 43 80

Anyone know? I can't figure out how to get match to look at tables rather
than columns.

Thanks a million

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Match and Index for Tables

Think its much easier to debug the data inconsistencies (that's the problem
you face) by looking at your actual sample ..

Can you upload your sample file using a free filehost,
then post a link to it here?

For example, you could use this free filehost to upload:
http://www.freefilehosting.net/

Copy the "direct link" which is generated after you upload,
then paste it here

(Desensitize your sample as appropriate)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500 Files:358 Subscribers:55
xdemechanik
---
"LiAD" wrote:
works well, except for the fact that list i want to match it to is from a
validation list, so its a preselected list which the user selects a b or c
etc. I cannot get match to work unless the value is actually typed into a
cell by itself. Even if i set another cell = to the validation cell its
doesn't work.

Any ideas how to get round this one also?

Thanks
LD



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Match and Index for Tables

Hi
Max's formula works just fine, and returns the correct result.
If you are saying the user chooses from a dropdown list, which only has
a,b,c etc., to give the column offset, there must be a second choice to
choose the row offset.

Perhaps if the one choice is in say cell N8 and the other in N9, all you
need in cell N10 is
=N8&N9
--
Regards
Roger Govier

"LiAD" wrote in message
...
works well, except for the fact that list i want to match it to is from a
validation list, so its a preselected list which the user selects a b or c
etc. I cannot get match to work unless the value is actually typed into a
cell by itself. Even if i set another cell = to the validation cell its
doesn't work.

Any ideas how to get round this one also?

Thanks
LD

"Max" wrote:

You don't need the top table, just the bottom

Assume the bottom table is within N20:V28
Input in M10, eg: ec

Then in say, M9:
=INDEX(O21:V28,MATCH(RIGHT(M10),N21:N28,0),MATCH(L EFT(M10),O20:V20,0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500 Files:358 Subscribers:55
xdemechanik
---
"LiAD" wrote:
Can anyone tell me how to get the match and index functions to work for
an
8x8 table?

So for example I would like the function to take a given text string ec
for
example, search for its position in the first table, then look at the
second
table and return the value the corresponds to the text string located
in the
first box.

Examples - I ask the function to find the value corresponding to; ec
the
function returns the value 99, for bh - 4, for ga- 78.

The text string to match is in cell m10, and the top left corner of the
tables begins in cell N10.

Tables below

a b c d e f g h
a aa ba ca da ea fa ga ha
b ab bb cb db eb fb gb hb
c ac bc cc dc ec fc gc hc
d ad bd cd dd ed fd gd hd
e ae be ce de ee fe ge he
f af bf cf df ef ff gf hf
g ag bg cg dg eg fg gg hg
h ah bh ch dh eh fh gh hh

a b c d e f g h
a 20 11 30 33 44 40 78 54
b 20 20 20 20 20 20 20 20
c 20 43 5 90 99 67 60 56
d 20 20 20 20 20 20 20 20
e 20 20 20 20 20 20 20 20
f 20 20 20 20 20 20 20 20
g 20 23 21 12 12 12 12 12
h 20 4 4 4 4 50 43 80

Anyone know? I can't figure out how to get match to look at tables
rather
than columns.

Thanks a million


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
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


All times are GMT +1. The time now is 11:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"