Index Match Wild Card doesn't work

pleaserespond

New Member
Joined
May 8, 2015
Messages
7
Hello! This is my first post, largely out of desperation to leave the office by 5!

I have a spreadsheet with a customer name along with other columns of data (as in Table 1). There is also a list of customers whose rows I want to delete from the spreadsheet (Table 2). I placed a column into Table 1 and inputted the formula below to try to display which rows need to be deleted. However, it isn't working. From other posts it seems I'm missing something important, but I don't know what exactly-a SEARCH function possibly? Thank you!

QeW7oeK.png
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try using the wildcard in the formula

=index($H$4:$H$5,match($D4&"*",$G$4:$G$5,0))

In your example above I would use something like

=index($H$4:$H$5,match(Left($D4,5)&"*",$G$4:$G$5,0))
 
Upvote 0
Hi and welcome to the forum,

Perhaps try something like this instead:

Code:
=LOOKUP(2, 1 / SEARCH(G$4:G$5, D4), H$4:H$5)
 
Upvote 0
I was hoping to avoid limiting the characters, as there are some text strings that start off very similarly. However, it was a success! Thank you, thank you thank you! I will still look for a better way for next month, but I can always double-check it manually today. Can't wait to enjoy the weather. Have a good day!
 
Last edited:
Upvote 0
circledchicken, thanks for the reply. what is the / for in your function? I am not familiar with either Lookup or Search, but I intend to learn them seeing my difficulties here.
 
Upvote 0
The issue with the limited string search is a little rougher than I thought. There are strings that are the same for the first 7 or so characters. But if I try to extend the character limit to 8+, then short words that should be deleted get overlooked. So I'm using a very short (4) string in the formula and just checking them all. Still faster than by eye alone. Thanks :)
 
Upvote 0
If it is mainly apostrophe's that cause a problem, you could strip them out, also you could amend the left function to find the 1st space therefore return the whole word to search for.
 
Upvote 0
If what i said above is true then try

=INDEX($H$4:$H$5,MATCH(IFERROR(SUBSTITUTE(LEFT(D4,FIND(" ",D4)-1),"'",""),SUBSTITUTE(D4,"'","")),$G$4:$G$5,0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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