Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using the Match Function?
Hello,
I'm trying to use the Match function to find a value in a large table. I am able to get the match function to work looking in 1 column or 1 row but using it to search more then 1 column or row doesn't work. Basically what I want to happen is to have Match return the column # in which the value resides so that I can use it in the Index function to return the Column heading. The Table has 49 rows and 49 cells. Anyone have any ideas or thoughts. Here is what I have so far. MATCH(C5,Table,0) I keep getting a return of #NA Thanks, Jeff |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using the Match Function?
Hi Jeff,
When I use Index(Match) together I think of the formula this way: =INDEX(Range to Search, ?, ?) where neither column or row are known and therefore, ? becomes MATCH(Cell to Match, Range in which to search for match, FALSE) All together you get: =INDEX(Range to Search,MATCH(Cell to Match, Range in which to search for match, FALSE),MATCH(Cell to Match, Range in which to search for match, FALSE) However, this will only get you a single cell and not the column heading. I hope this helps. -Nicole " wrote: Hello, I'm trying to use the Match function to find a value in a large table. I am able to get the match function to work looking in 1 column or 1 row but using it to search more then 1 column or row doesn't work. Basically what I want to happen is to have Match return the column # in which the value resides so that I can use it in the Index function to return the Column heading. The Table has 49 rows and 49 cells. Anyone have any ideas or thoughts. Here is what I have so far. MATCH(C5,Table,0) I keep getting a return of #NA Thanks, Jeff |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using the Match Function?
To my knowledge MATCH works with an array and not with a range. MATCH Arrays
must have only one dimension which is why you get a N/A if you use a multi-column range for the 2nd argument. I am not sure how you can traverse a range in a match statement one column (or row) at a time so that MATCH works. I would do it in code. If I am wrong on the above please correct me. I have run into a similar situation in the past and I only managed to make MATCH work with a single column range. I am also not sure how Nicole uses her approach. Nicole please explain... |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using the Match Function?
Debra Dalgleish has some nice instructions at:
http://www.contextures.com/xlFunctions03.html Take a look at example 3. She uses index() to get the first row/first column of a table. " wrote: Hello, I'm trying to use the Match function to find a value in a large table. I am able to get the match function to work looking in 1 column or 1 row but using it to search more then 1 column or row doesn't work. Basically what I want to happen is to have Match return the column # in which the value resides so that I can use it in the Index function to return the Column heading. The Table has 49 rows and 49 cells. Anyone have any ideas or thoughts. Here is what I have so far. MATCH(C5,Table,0) I keep getting a return of #NA Thanks, Jeff -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
find the second match using the match function | Excel Worksheet Functions | |||
how can we get unique values in match function for same match key. | Excel Worksheet Functions | |||
index match array function-returning only first match, need last. | Excel Worksheet Functions | |||
Match as well as does not match array function | Excel Discussion (Misc queries) | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions |