Excel Formula to Search Multiple Rows and Columns

Anwer

New Member
Joined
Jun 12, 2007
Messages
24
Data:
AB C D E F
1AChris TirkJus Waycraft
2B
3CBanya Blite T GinderDerick Q
4ZJeanne KingAlex DarmaninB Rhymes
5QAndrew HolmJoey Bishop
6PJacob KaiserAmar BellRolf Tampero
7D
8XXXXSueer GrossmanKim FhohertySam BasKoni
9YYYYHanden Ball
10AAAADavid BlowardDeni ZacmakAleX HogPete Marlan
11ZZZZZZRob Garnuhar

Formula:
=INDEX(B4:B14,MATCH(B22,E4:E14,0))
Works: B22 was set to AleX Hog and hence the formula returns AAAA correctly.

Problem:
Match seems to work only if the range column is known and specified, in this E4:E14. I initially coded it is as ranging from C4:F14 meaning it could be found in column from B:F. That does not work. I tried using concatenation in match parameter(C4:C1&D4:D14&E4:E14). The results with or without concatenation are the same (N/A).
Objective:
Extend the formula to search through B4:E14 (potentially B2: M100) and return vendor names from column B.

Thanks & Regards,

anwer
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Maybe something like this:
This is an array formula and must be entered with CTRL-SHIFT-ENTER (command-return on MAC).
Excel Workbook
ABCDEF
3
4AChris TirkJus Waycraft
5B
6CBanya BliteT GinderDerick Q
7ZJeanne KingAlex DarmaninB Rhymes
8QAndrew HolmJoey Bishop
9PJacob KaiserAmar BellRolf Tampero
10D
11XXXXSueer GrossmanKim FhohertySam BasKoni
12YYYYHanden Ball
13AAAADavid BlowardDeni ZacmakAleX HogPete Marlan
14ZZZZZZRob Garnuhar
15
20
21
22FindAleX Hog
23VendorAAAA
Sheet
 
Upvote 0

Forum statistics

Threads
1,213,483
Messages
6,113,919
Members
448,533
Latest member
thietbibeboiwasaco

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