Returning cell contents if contains partial text

blittenb

New Member
Joined
Jul 26, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hey all,

I am struggling to return cell contents if contains partial text "JS". I have it partially working with the filter function however it isn't ideal.

I want to be able to search for cells containing "JS" amongst sheets MDF, IDF-1, IDF-2, IDF-3, and IDF-4. The range of cells is the same on each sheets, I5:I52,P5:P52,W5:W52,AD5:AD52 and return every cells text.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi & welcome to MrExcel.
If those sheets are consecutive, try
Excel Formula:
=LET(x,TOCOL(CHOOSECOLS(VSTACK('MDF:IDF-4'!I5:AD52),1,8,15,22)),FILTER(x,ISNUMBER(SEARCH("Js",x))))
 
Upvote 1
Solution
Hi & welcome to MrExcel.
If those sheets are consecutive, try
Excel Formula:
=LET(x,TOCOL(CHOOSECOLS(VSTACK('MDF:IDF-4'!I5:AD52),1,8,15,22)),FILTER(x,ISNUMBER(SEARCH("Js",x))))
Miracle worker, much appreciated.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
Any idea how to force sorting based on columns rather than the row they reside in ?

Nordstrom - LR Survey - Template.xlsx
PQRSTUVW
4112
4211
43JSxxx-IDF1-2-C:010
449JSxxx-IDF1-3-X:0
45JSxxx-IDF1-2-C:18
467JSxxx-IDF1-3-X:1
476
IDF-1
Cell Formulas
RangeFormula
P43P43="JS"&B3&"-"&B5&"-"&K1&"-"&"C:0"
W44W44="JS"&B3&"-"&B5&"-"&R1&"-"&"X:0"
P45P45="JS"&B3&"-"&B5&"-"&K1&"-"&"C:1"
W46W46="JS"&B3&"-"&B5&"-"&R1&"-"&"X:1"
 
Upvote 0
So the IDF-1-2-C:0 and C:1 are sequential then C:0 and X:1 are sequential:



Nordstrom - LR Survey - Template.xlsx
D
2Hostnames
3JSxxx-IDF1-2-C:0
4JSxxx-IDF1-3-X:0
5JSxxx-IDF1-2-C:1
6JSxxx-IDF1-3-X:1
7
8
9
10
11
Ordering BOM
Cell Formulas
RangeFormula
D3:D6D3=LET(x,TOCOL(CHOOSECOLS(VSTACK('MDF:IDF-4'!I5:AD52),1,8,15,22)),FILTER(x,ISNUMBER(SEARCH("JS",x))))
Dynamic array formulas.
 
Upvote 0
So the IDF-1-2-C:0 and C:1 are sequential then C:0 and X:1 are sequential:



Nordstrom - LR Survey - Template.xlsx
D
2Hostnames
3JSxxx-IDF1-2-C:0
4JSxxx-IDF1-3-X:0
5JSxxx-IDF1-2-C:1
6JSxxx-IDF1-3-X:1
7
8
9
10
11
Ordering BOM
Cell Formulas
RangeFormula
D3:D6D3=LET(x,TOCOL(CHOOSECOLS(VSTACK('MDF:IDF-4'!I5:AD52),1,8,15,22)),FILTER(x,ISNUMBER(SEARCH("JS",x))))
Dynamic array formulas.

Correction: So the IDF-1-2-C:0 and C:1 are sequential then X:0 and X:1 are sequential:
 
Upvote 0
As this is a totally different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,139
Messages
6,123,262
Members
449,093
Latest member
Vincent Khandagale

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