Seeking MATCH and INDEX Assistance

kstehly

New Member
Joined
Feb 21, 2011
Messages
9
I am utilizing a combined MATCH and INDEX function to search several columns of data and return data in a specific column from the MATCHed ROW. It works when I only search 1 column, however when I ask it to search multiple columns or an array, it returns a N/A. Any idea why it won't search the array / multiple columns?

Alternately, is there a function which combines multiple searches so I can search multiple columns?

Any assistance would be greatly appreciated. Thanks.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi Jeff -

Thanks for the helpful link. My issue might be that I have letters, numbers, and combined data.

Here's a sample of the calculations / formulas:
Excel Workbook
ABCDEF
1SEWER SERVICES TABULATIONS
2PERMIT NO.** - ORIGINAL COLUMN1 PERMIT NO.**1 ADDRESS2 PERMIT NO.**3 PERMIT NO.**
3
4
5
6A69563, R111318695633415R111318
7A22839228392675
8A22839228392675
9A17271A17271#N/A
10RA5935, A54673RA5935#N/AA54673
11RA5935, RA16390, A54283RA5935RA16390A54283
12A100562A100562
13RA16390, A81532RA16390A81532
14RA16390, A38673RA16390A38673
15A100904, RA16108, A65557A100904RA16108A65557
16A100906A100906
17RA16103, A89218RA16103A89218
18RA16104, R9159, A24578RA16104R9159A24578
19A52297A52297
20A15997A15997
21A92572A92572
22A63941, R1451, A17909A63941R1451A17909
23A60411A60411
24A58138A58138
25A58138A58138
26A16653A16653
27RA16682, A33944RA16682A33944
28RA13034, A67037RA13034A67037
29A21114A21114
Working
Excel 2007
Cell Formulas
RangeFormula
D6=INDEX('Segments 2, 3 & 4'!B:B,MATCH($C6,'Segments 2, 3 & 4'!D:D,FALSE),1)
D7=INDEX('Segments 2, 3 & 4'!B:B,MATCH($C7,'Segments 2, 3 & 4'!D:D,FALSE),1)
D8=INDEX('Segments 2, 3 & 4'!B:B,MATCH($C8,'Segments 2, 3 & 4'!D:D,FALSE),1)
D9=INDEX('Segments 2, 3 & 4'!B:B,MATCH($C9,'Segments 2, 3 & 4'!D:D,FALSE),1)
D10=INDEX('Segments 2, 3 & 4'!B:B,MATCH($C10,'Segments 2, 3 & 4'!D:D,FALSE),1)



And here's the data it's pulling from:
Excel Workbook
ABCDEFGHI
22Segment 2: University Ave. - Emerald St. to Eustis St.
23AddressRamsey Co.Sanitary Service 1Sanitary Service 2Sanitary Service 3Sanitary Service 4Sanitary Service 5Active Permits
243415341569563R-111318
25X2701
26X2701-AF
272700270039989
282686
292685-2695
302675266522839
312675-AF
322674
332673
342665
352640-2662
3626502650111147
372642264258483
382635263510056717271
392635-AF
402634
412610261073065
4225752575100904R-9159
432575-AF
4425502550R-1505532732
4533007
46
47Segment 2: University Ave. - Cromwell Ave. to Raymond Ave.
48AddressRamsey Co.Sanitary ServiceActive Permits
49250525055229752296
502504
512486251234277
Segments 2, 3 & 4
Excel 2007



If there isn't any way around this, can I set up in one cell, sequential INDEX / MATCH functions that lookup data by column? Do you know the function for this operation?

Thanks,
Kristine
 
Upvote 0
Hi Kristine,

Not sure what you are asking here? Could you elaborate and what is not working? BTW, I think the formula should just look like...the 1 on the end is not neccesary.

=INDEX('Segments 2, 3 & 4'!B:B,MATCH($C6,'Segments 2, 3 & 4'!D:D,0))
 
Upvote 0
Thanks Jeff. I think I have come to the conclusion that MATCH will not search an ARRAY with multiple columns - - - do you agree?

Is there another function you are aware of which will?
 
Upvote 0
It's hard for me to agree or disagree when I'm not sure of what you are seeking.

You can use index/match to search in a grid pattern. So lets say down column A you are searching for March and then in row1 you are searching for Payment.

This would look like with B2:F13 the grid in which you are searching for a value.

I believe the link I posted goes over this

=INDEX($B$2:$F$13,MATCH("March",$A$2:$A$13,0),MATCH("Payment",$B$1:$F$1,0))

Can you somehow post a sample of what you would like?
 
Upvote 0
Hi Jeff -

I'm asking for Excel to search Columns D through I, and return the value in Column A in the same row for the Second Screenshot - Segments 2, 3 & 4.

It keeps giving me a #N/A when I attempt to use an array, and I don't want to set up repetitve formulas for the multiple columns of data I need to search.

Thanks for your patience.
 
Upvote 0
Try;

Array Formula, Confirmed with CTRL+SHIFT+ENTER, not just ENTER.

=INDEX('Segments 2, 3 & 4'!$B:$B,SMALL(IF('Segments 2, 3 & 4'!$C$3:$I$100=$C6,ROW('Segments 2, 3 & 4'!$C$3:$I$100)),1))

Note: C6 value is not in some where in 'Segments 2, 3 & 4'!$C$3:$I$100, this will give you error.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top