How to create filtered list using formula by criteria containing asterisks

marruz

New Member
Joined
Feb 14, 2018
Messages
2
Dear friends, i will be very glad for your help. Here is my situation:
capture.png

I know how to create such a filtered list using the array formula combining INDEX and SMALL functions but this does not allow me to use criteria containing asterisks. If I used criteria "1,2,3,4,5,6" instead of "1,*,*,*,5,6" I could simply use this:
Code:
=IFERROR(INDEX($B$1:$B$8,SMALL(IF($A$1:$A$8=$F$3;ROW($A$1:$A$8)),ROW(1:1))),"")
So my question is: How to change this formula or which formula to use if I need to have criteria which includes asterisks as wildcard characters. I know IF function does not allow wildcard characters, so is there a workaround. Thanks.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Welcome to Mr Excel forum

Maybe

Array formula in F8 copied down
=IFERROR(INDEX(A$2:A$8,SMALL(IF(ISNUMBER(SEARCH(F$3,A$2:A$8)),ROW(A$2:A$8)-ROW(A$2)+1),ROWS(F$8:F8))),"")
Crl+Shift+Enter

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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