How to return cells contents if row contains specific keywords/ texts to a different cells.

umairaziz

New Member
Joined
Aug 6, 2016
Messages
3
I have a spreadsheet (please find attached), where in I want to pull out all Specific cells containing certain text to a whole new column. The idea is that certain values which should be found in one column are spread in multiple columns. thus i want to bring them all under one column.. Thank you!!

File could be downloaded from below link (Sorry I believe i am unable to attach directly to the post)

https://drive.google.com/uc?id=1JbJtUHA9HVudKu4v99-3n-dkW7XrI69Q&export=download
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Like so?


DEFGHIJKLM
1Heading 4Heading 5Heading 6Heading 7Heading 8Heading 9Heading 10Return all 11 hereReturn all 17 here
245678910www. 11.com17
35678910www. 11www. 11.com17
4678910www. 1112www. 11b.com17
578910www. 11b1213www. 11.com17
68910www. 11121314www. 11.com17
7910www. 1112131415www. 11C.com17
810www. 11C1213141516www. 11.com17
9www. 111213141516.com17www. 11E.com17
101213141516.com1718www. 11.com17
1113141516.com171819www. 11.com17
12141516.com17181920
131516.com1718192021
1416.com171819202122
15.com17181920212223
1618192021222324
1719202122232425
1820212223242526
19
2022232425262728

<tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
K2{=IFERROR(INDIRECT(TEXT(SMALL(IF(ISNUMBER(SEARCH("www.",$A$2:$J$20)),ROW($A$2:$J$20)*100+COLUMN($A$2:$J$20)),ROWS(K$2:K2)),"R00C00"),0),"")}
L2{=IFERROR(INDIRECT(TEXT(SMALL(IF(ISNUMBER(SEARCH(".com",$A$2:$J$20)),ROW($A$2:$J$20)*100+COLUMN($A$2:$J$20)),ROWS(K$2:K2)),"R00C00"),0),"")}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>


There are ways to change the order that the items appear, or to eliminate duplicates.
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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