INDEX and MATCH formula

greevek

New Member
Joined
Mar 15, 2017
Messages
8
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
It's been some time since I have needed to write more complex formulas and I am struggling, can anyone help with the below:

I am trying to put a formula together that looks up and compares data in two columns and returns the wording from one if it matches/partially matches the wording in the other column.
So far it is kind of working but it's not returning all of the data when I know it should be returning a match, I think I need to include EXACT somewhere in my formula so that it looks at case sensitive matches but I cannot figure out what to do.

Any help, guidance or alternative options will be greatly received.

Book.xlsx
BEJ
1advert_identifiercompanynameColumn3
2RSM BEARESRSM BEARESRSM BEARES
3INTERIORSLIFE HOUSE ACCOUNTNEW HOMES MAG
4USED LISTINGBrandon Car Centre -MG#N/A
5FUW INSURANCEFUW Insurance ServicesFUW INSURANCE
6BULLARDSBullards Spirits LtdBULLARDS
7NNGM NFKNorth Norfolk Garden Machinery#N/A
8BURE VALLEY RAILWAYBure Valley Railway (1991) LtdBURE VALLEY RAILWAY
9ABBEYGATE LIGHTINGRush Lighting Ltd#N/A
10NORFOLK GARDEN MACNorth Norfolk Garden MachineryNNGM NFK
11NORFOLK GARDEN MACNorth Norfolk Garden MachineryNNGM NFK
12DISS CARSDiss Car Centre#N/A
13NORFOLK GARDEN MACNorth Norfolk Garden MachineryNNGM NFK
14DREAM DOORSDREAM DOORS HUNTINGDONDREAM DOORS
15NORFOLK GARDEN MACNorth Norfolk Garden MachineryNNGM NFK
16A W MYHILLSA W Myhill & Son#N/A
17HARTINGTON CHEESEHartington Cheese ShopHARTINGTON CHEESE
18LACY SCOTT & KNIGHTLacy Scott & Knight ( Fine Art A/C )LACY SCOTT & KNIGHT
19WINCER K - HAD HALFWincer Kievenaar LLP#N/A
20QC61135Suffolk County Council#N/A
21ROLEX / WHITTLESWhittles Jewellers#N/A
22QC61134Suffolk County Council#N/A
23GIANT BOOTSALE FRIDAtony sheen#N/A
24WINCER K - HAD FPWincer Kievenaar LLP#N/A
25GTI ROOFING - GORGTI Roofing#N/A
26HEALTH & MOBILITYhealth & mobilityHEALTH & MOBILITY
27NEW HOMES MAGNordikka Interiors Ltd#N/A
28CARS WANTEDIpswich Road Service Station#N/A
29KJ CUSTOM KITCHENSKJ Custom Outdoor Kitchens Ltd#N/A
30ROARR! - NSTARoarr! Dinosaur Adventure#N/A
All Data
Cell Formulas
RangeFormula
J2:J30J2=INDEX($B$2:$E$4001,MATCH("*"&B2&"*",$E$2:$E$4001,0),1)
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Im confused. In this example you could just do =E2 and drag it down.
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Thank you, just done that
 
Upvote 0
Im confused. In this example you could just do =E2 and drag it down.
I don't want to know exactly what is in column E I want to return the words that are shown in column B that match the words in Column E. My formula is doing that but it doesn't seem to be doing it for all data even though I can see it should be.
 
Upvote 0
Unfortunately i can see it shouldnt be. For example A W MYHILLS isnt found in column E hence the error. Same with all the other errors.
 
Upvote 0
I don't want to know exactly what is in column E I want to return the words that are shown in column B that match the words in Column E. My formula is doing that but it doesn't seem to be doing it for all data even though I can see it should be.
I don't understand, for example, the word Wincer is mentioned in row 19 and 24 but it isn't pulling that data back, the same with Roarr! on 30, I would expect that to return it. Can you explain why this wouldn't return a result, please?
 
Upvote 0
You arent asking it to match 'Wincer' you are asking it to match 'Wincer K - Had Half'
 
Upvote 0
You arent asking it to match 'Wincer' you are asking it to match 'Wincer K - Had Half'
How do I get it to match Wincer, I thought adding the wild card in that would do that but I clearly got that wrong? Can you offer any help as to how I can achieve what I have asked?
 
Upvote 0
What the wildcard does is essentially say does the cell CONTAIN the string rather than EQUAL the string. I dont think your data is suited to really helping. For 'wincer' we could extract the 'wincer' part then search for that. However that isnt necessarily appropriate for your entire data and could lead to errors. Think unfortunately you need to be more bulletproof with your naming and/ or data collection. Maybe create a lookup table to convert the column B names to useful names. Hard for me to tell as dont know where this data all comes from.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,326
Messages
6,124,268
Members
449,149
Latest member
mwdbActuary

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