Match multiple Columns (Advanced)

on3moy

New Member
Joined
Feb 24, 2019
Messages
7
Hello Community,

I am trying to match a selected cell to a reference of multiple columns. For my example, I want to choose a state and I want it to return which category it comes from. Each category has multiple unique states. Ex. I search for CA within whole time, I want it to return me the column name..Any feedback is appreciated.
view

SWMWCSSEWSNWFLNEOTH
ARIAINALAZIDFLDCCT
LAILKYGACAORDEMA
OKKSMIMSCOWAMDME

<tbody>
</tbody>
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
something like that?

with PowerQuery

SWMWCSSEWSNWFLNEOTHLookupResult
ARIAINALAZIDFLDCCTDENE
LAILKYGACAORDEMA
OKKSMIMSCOWAMDME
 
Upvote 0
But you'll need PowerQuery (aka Get&Transform) (Excel 2010/2013 - add-in, Excel 2016 and higher - built-in)
Do you have PowerQuery?
 
Last edited:
Upvote 0
sure ;)

here is a link to the example excel file

edit:
btw. if you change lookup value use Ctrl+ALt+F5 or right click on green table and choose Refresh
 
Last edited:
Upvote 0
you are welcome ;)

if eg. CA will be in two or more columns result will give you more names of column
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,931
Members
449,134
Latest member
NickWBA

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