Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Confusion with INDEX & MATCH

I have a list of numbers on sheet 1 and need to add a code in the next column.
On sheet 2 the first column has the codes, and the next 30 columns have
numbers.
I created named ranges for the first column as "mealtable" and the next 30
columns as "lookupvalueh".
I tried the following formula without success:
=INDEX(MEALTABLE;MAX(ROW(MEALTABLE)*(B20=LOOKUPVAL UEH));)

B20 is the value I want to look for in the table, bringing back the code
from the first column of the row with the value in.

any help in putting me on the right track would be appreciated. As you can
see I am not an expert, but work on trial and error. I did press control
shift & enter to put the formula in brackets.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Confusion with INDEX & MATCH

Hi,
Not very clear what you need, you want to look for a table and bring a code
made of 30 columns numbers ??, could you give an example thanks

"thomsonpa" wrote:

I have a list of numbers on sheet 1 and need to add a code in the next column.
On sheet 2 the first column has the codes, and the next 30 columns have
numbers.
I created named ranges for the first column as "mealtable" and the next 30
columns as "lookupvalueh".
I tried the following formula without success:
=INDEX(MEALTABLE;MAX(ROW(MEALTABLE)*(B20=LOOKUPVAL UEH));)

B20 is the value I want to look for in the table, bringing back the code
from the first column of the row with the value in.

any help in putting me on the right track would be appreciated. As you can
see I am not an expert, but work on trial and error. I did press control
shift & enter to put the formula in brackets.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Confusion with INDEX & MATCH

Sorry, I did not ask for notification of reply, and thought nobody had replied.

below is an example of part of the table.

FEA FB DCC S LH3 LH3 SIN
FEA FM DCC LH3 LH3 MNL
FEA FM DCC S LH3 LH3
FEA FB S LH4 LH4 BKK
FEA FM S LH4 LH4 DME MSQ
EUR MH FB MH1 MH1 ALA IST ATH
EUR MH FM MH1 MH1 TSE

I want to look up a value (ie: IST) and bring back the result from the first
column (ie EUR MH FB MH!) from the matching row. Is this possible? I thought
it would be easier to use named ranges so I could expand the range easier
than changing all the formulas for Match.


"Eduardo" wrote:

Hi,
Not very clear what you need, you want to look for a table and bring a code
made of 30 columns numbers ??, could you give an example thanks

"thomsonpa" wrote:

I have a list of numbers on sheet 1 and need to add a code in the next column.
On sheet 2 the first column has the codes, and the next 30 columns have
numbers.
I created named ranges for the first column as "mealtable" and the next 30
columns as "lookupvalueh".
I tried the following formula without success:
=INDEX(MEALTABLE;MAX(ROW(MEALTABLE)*(B20=LOOKUPVAL UEH));)

B20 is the value I want to look for in the table, bringing back the code
from the first column of the row with the value in.

any help in putting me on the right track would be appreciated. As you can
see I am not an expert, but work on trial and error. I did press control
shift & enter to put the formula in brackets.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Confusion with INDEX & MATCH

Assuming lst is in col G and j1 is the cell to match
col a
=INDEX(A:A,MATCH(J1,G:G,0))
col a & b
=INDEX(A:A,MATCH(J1,G:G,0)) & " " & INDEX(B:B,MATCH(J1,G:G,0))

a macro to make a string
Sub getdata()
mr = Application.Match(Range("j1"), Columns("G"), 0)
'MsgBox mr
For i = 1 To 4
msg = msg & Cells(mr, i) & " "
Next i
MsgBox msg
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"thomsonpa" wrote in message
...
Sorry, I did not ask for notification of reply, and thought nobody had
replied.

below is an example of part of the table.

FEA FB DCC S LH3 LH3 SIN
FEA FM DCC LH3 LH3 MNL
FEA FM DCC S LH3 LH3
FEA FB S LH4 LH4 BKK
FEA FM S LH4 LH4 DME MSQ
EUR MH FB MH1 MH1 ALA IST ATH
EUR MH FM MH1 MH1 TSE

I want to look up a value (ie: IST) and bring back the result from the
first
column (ie EUR MH FB MH!) from the matching row. Is this possible? I
thought
it would be easier to use named ranges so I could expand the range easier
than changing all the formulas for Match.


"Eduardo" wrote:

Hi,
Not very clear what you need, you want to look for a table and bring a
code
made of 30 columns numbers ??, could you give an example thanks

"thomsonpa" wrote:

I have a list of numbers on sheet 1 and need to add a code in the next
column.
On sheet 2 the first column has the codes, and the next 30 columns have
numbers.
I created named ranges for the first column as "mealtable" and the next
30
columns as "lookupvalueh".
I tried the following formula without success:
=INDEX(MEALTABLE;MAX(ROW(MEALTABLE)*(B20=LOOKUPVAL UEH));)

B20 is the value I want to look for in the table, bringing back the
code
from the first column of the row with the value in.

any help in putting me on the right track would be appreciated. As you
can
see I am not an expert, but work on trial and error. I did press
control
shift & enter to put the formula in brackets.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Confusion with INDEX & MATCH

I tried the following formula without success

Can you be more specific as to what that means? Did you get an error? Did
you get a result but it was not the result you expected?

How about telling us what the actual range addresses are for MEALTABLE and
LOOKUPVALUEH.

--
Biff
Microsoft Excel MVP


"thomsonpa" wrote in message
...
I have a list of numbers on sheet 1 and need to add a code in the next
column.
On sheet 2 the first column has the codes, and the next 30 columns have
numbers.
I created named ranges for the first column as "mealtable" and the next 30
columns as "lookupvalueh".
I tried the following formula without success:
=INDEX(MEALTABLE;MAX(ROW(MEALTABLE)*(B20=LOOKUPVAL UEH));)

B20 is the value I want to look for in the table, bringing back the code
from the first column of the row with the value in.

any help in putting me on the right track would be appreciated. As you can
see I am not an expert, but work on trial and error. I did press control
shift & enter to put the formula in brackets.





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:41 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"