Can I search multiple columns for cells that contain a specific number plus other random text?

cmstoren

New Member
Joined
Oct 31, 2024
Messages
4
Office Version
  1. 365
Platform
  1. MacOS
Hey - I've asked a similar question before except I was looking for a specific word only. A lovely person sent me a code which I can get to work with a specific sequence but can't seem to change it to get results for cells with 11 then any other random text.
The one I've used that works is: =TEXTSPLIT(TEXTJOIN("|",1,IF(Table1[[Class1]:[Class14]]=A1,Table1[Name],"")),";","|")
I've tried to change it to: =TEXTSPLIT(TEXTJOIN("|",1,IF(Table1[[Class1]:[Class14]]="*11*",Table1[Name],"")),";","|") but this just gives me an error. Sadly I don't really understand why the first one works (thank you again for the help!) so am stuck. Is it possible to do what I'm asking?
Last time I was asked to put a sheet on so I hope this is right:

Mr ExcelYear 10 VCE STUDENTS 2025 copy.xlsx
ABCDEFGHIJKLMNOPQRSTU
1CodeNameLetterNumberClass1Class2Class3Class4Class5Class6Class7Class8Class9Class10Class11Class12Class13Class14Class15Year 11 Classes
2Anna10EL.1A10EN.1A10EVM.2A10PY.2E10DR.3B10ML.3A10MAB.4A10ME.4A10DW.5A10FFL.5A10MAA.6E10SAM.6C10HG.J10PE.J10WB.J11AC.6A
3Barbara10CH.1A10PY.1G10CD.2B10MR.2E10AVA.3C10DR.3B10EN.4E10LC.4C10AVB.5E10DW.5A11BI.6B10HG.H10PE.H10WB.H11ART.1A
4Carrie11SO.1B10PL.2B10RRR.2A10BI.3A10EC.3B10AVA.4A10IS.4B10AVB.5F10LC.5B10EN.6D10PY.6C10HG.D10PE.D10WB.D11ART.4B
5David10AVA.1D10CH.1B10EC.2D10RRR.2B11PY.3C10AVB.4A10IS.4A10EN.5B10LC.5B11BI.6B10HG.E10PE.E10WB.E11BI.1A
6Eddie11BI.1A10PY.2F10VCD.2C10FRA.3B10FRB.3B10CH.4D10LC.4C10AVB.5F10DW.5A10AVA.6B10EN.6D10HG.A10PE.A10WB.A11BI.3C
7Falon10AVB.1D10CH.1A10EN.2C10SAM.2A10AVA.3C10YLC.3C10LC.4C10OE.4B11PL.5A10BI.6E10PY.6C10HG.A10PE.A10WB.A11BI.4D
8Ginny10MR.1D10YLC.1A10EC.2C10PL.2A10FRB.3B10MAA.3B10BI.4C10FRA.4A10EN.5B10LC.5A10MAB.6E10PY.6C10HG.F10PE.F10WB.F11BI.5E
9Helen10AVA.1D10AVB.1D10CD.2A10PY.2F10BI.3A10FRA.3B10FRB.4A10TB.4B10CH.5E10EN.5I10PH.6A10SAM.6C10HG.J10PE.J10WB.J11BI.6B
10Iris10EL.1A10EN.1F10PY.2E10SAM.2A10MAA.3B10YLC.3C10BI.4C10CH.4C10IEP.5A10MAB.5D11DA.6A10HG.C10PE.C10WB.C11BM.2C
11Jane10EN.1A10MAA.1C10PL.2B10VCD.2C10EC.3B10MAB.3B10BI.4C10ME.4A10DG.5B10PY.5B10TD.6A10VA.6A10HG.J10PE.J10WB.J11BM.3B
12Katie10EN.1F10MAA.1C10EVM.2A10PY.2E10MR.3A10YLC.3C10OE.4A10VA.4C10FFL.5B10MAB.5D10SAM.6C10TB.6A10HG.B10PE.B10WB.B11BM.6A
1311CO.1A
14263 students11CSL.2A
1511DA.6A
1611DR.6A
1711BI.6B11EAL.1B
18Barbara#VALUE!11EAL.3A
19David11EC.2B
2011EC.3A
All Year 10 students
Cell Formulas
RangeFormula
A18:A19A18=TEXTSPLIT(TEXTJOIN("|",1,IF(Table1[[Class1]:[Class14]]=A17,Table1[Name],"")),";","|")
B18B18=TEXTSPLIT(TEXTJOIN("|",1,IF(Table1[[Class1]:[Class14]]="*11*",Table1[Name],"")),";","|")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
A17List=$U$2:$U$48
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
How about
Excel Formula:
=TEXTSPLIT(TEXTJOIN("|",1,IF(ISNUMBER(FIND("11",Table1[[Class1]:[Class14]])),Table1[Name],"")),,"|")
or
Excel Formula:
=FILTER(Table1[Name],BYROW(Table1[[Class1]:[Class14]],LAMBDA(br,SUM(--(ISNUMBER(FIND("11",br)))))))
 
Last edited:
Upvote 0
Solution
Hey - you are amazing - both of these work!!!! One day I'd love to be able to learn how to do this myself but for now thank you so much - Chloe
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,287
Members
452,902
Latest member
Knuddeluff

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