Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
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 the second match using the match function Ray Excel Worksheet Functions 1 April 6th 09 10:19 PM
how can we get unique values in match function for same match key. Xcel[_2_] Excel Worksheet Functions 11 December 7th 07 08:13 PM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Match as well as does not match array function Vikram Dhemare Excel Discussion (Misc queries) 7 April 25th 06 09:15 AM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM


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