#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Brian
 
Posts: n/a
Default Extracting Text

I have a column of text that I would like Excel to search through and return
the specific text that I am searching for. Is there a way to do this?

Thanks for any help,
--
Brian
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Extracting Text

Let's say you want to see all the rows that contain the word "hello"

Select the column and pull-down:

Filter Autofilter Custom... Contains hello
--
Gary's Student


"Brian" wrote:

I have a column of text that I would like Excel to search through and return
the specific text that I am searching for. Is there a way to do this?

Thanks for any help,
--
Brian

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Extracting Text

One guess ..

Assuming source text in A1:A10 ..

With partial text to be searched entered in B1,
put this in the formula bar for C1, and array-enter
(press CTRL+SHIFT+ENTER):

=INDEX(A1:A10,MATCH(TRUE,(ISNUMBER(SEARCH(B1,A1:A1 0))),0))

Change SEARCH to FIND if case sensitivity is required.
(SEARCH is not case sensitive)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Brian" wrote in message
...
I have a column of text that I would like Excel to search through and

return
the specific text that I am searching for. Is there a way to do this?

Thanks for any help,
--
Brian



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
GottaRun
 
Posts: n/a
Default Extracting Text


Is this 'filter' from the 'Data' drop-down list?
After I did 'autofilter' it simply returns to the excel sheet.

I want to do somethiong similar.
I want all the rows where the cells in column B are not a blank. Then I
want to delete those and only those rows.

Suggestions ar welcomed.


--
GottaRun
------------------------------------------------------------------------
GottaRun's Profile: http://www.excelforum.com/member.php...o&userid=31297
View this thread: http://www.excelforum.com/showthread...hreadid=519182

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Extracting Text

"GottaRun" wrote:
...
I want all the rows where the cells in col B are not a blank
I want to delete those and only those rows.


Tinker on a *spare* copy ..

Select col B
Click Data Filter Autofilter
Choose "(NonBlanks)" from the autofilter droplist in top cell
Select the filtered "blue" row headers,
right-click on these Delete Row
Remove autofilter

Note: Choose "(blanks)" from the droplist if you want to delete **blank**
rows
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
GottaRun
 
Posts: n/a
Default Extracting Text


Sorry I don't follow. At one point autofilter says to select 1 cell only
and not a range of cells. My comments in () below.

Thank you so much for helping.

Max Wrote:
"GottaRun" wrote:
...
I want all the rows where the cells in col B are not a blank
I want to delete those and only those rows.


Tinker on a *spare* copy ..

Select col B (i highlighted column B)
Click Data Filter Autofilter (check mark is on for autofilter,
right?)
Choose "(NonBlanks)" from the autofilter droplist in top cell (no idea
what this means- do I right-click inside that cell?)
Select the filtered "blue" row headers,
right-click on these Delete Row
Remove autofilter

Note: Choose "(blanks)" from the droplist if you want to delete
**blank**
rows ( I want to delete rows where the cell in Column B is blank, not
the same as blank rows, i.e there could be non-blanks in other columns)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---



--
GottaRun
------------------------------------------------------------------------
GottaRun's Profile: http://www.excelforum.com/member.php...o&userid=31297
View this thread: http://www.excelforum.com/showthread...hreadid=519182

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Extracting Text

"GottaRun" wrote:
Sorry I don't follow. At one point autofilter says to select 1 cell only
and not a range of cells. My comments in () below.


I want all the rows where the cells in col B are not a blank
I want to delete those and only those rows.


Tinker on a *spare* copy ..


If autofilter is already on, switch it off first (uncheck it)
(via Data Filter Autofilter)

Select col B (i highlighted column B)
Click Data Filter Autofilter (check mark is on for autofilter,
right?)
Choose "(NonBlanks)" from the autofilter droplist in top cell (no idea
what this means- do I right-click inside that cell?)


As above, try switch autofilter off first, then select col B and switch it
on
You should get an autofilter droplist (arrow) in the top cell, i.e. in B1
(Presume you have a col label in B1?)

When you click on the droplist in B1,
if col B has blank cells in between data cells
(this was presumed from your orig. post)
then the droplist in B1 will show 2 options right at the bottom
(you may need to scroll down the droplist to see), viz.:

(Blanks)
(Non Blanks)

Select the filtered "blue" row headers,
right-click on these Delete Row
Remove autofilter
Note: Choose "(blanks)" from the droplist if you want to delete
**blank** rows


I want to delete rows where the cell in Column B is blank, not
the same as blank rows, i.e there could be non-blanks in other columns)


Yes, I think I read it right earlier.
The steps given above will delete *entire* rows where col B is blank

Choose "(Blanks)" from the droplist, then do the ensuing steps:

Select the filtered "blue" row headers,
right-click on these Delete Row
Remove autofilter


--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
GottaRun
 
Posts: n/a
Default Extracting Text


Terrific .. got it!

Unfortunately what I took as a non-blank in cells of column B is some
icon - it displays a small magnifying glass inside the cell. What I
want to do is to delete the rows where the cells of column B has this
magnifying glass. Autofilter treted all the cells in B as blank.

This is data I 'copy&paste' from a website. file attached inside a
zip.

thanks again for the detailed explanation .. will come in handy.


+-------------------------------------------------------------------+
|Filename: Book4.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4427 |
+-------------------------------------------------------------------+

--
GottaRun
------------------------------------------------------------------------
GottaRun's Profile: http://www.excelforum.com/member.php...o&userid=31297
View this thread: http://www.excelforum.com/showthread...hreadid=519182

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Extracting Text

.. icon - it displays a small magnifying glass inside the cell.

These are objects/shapes, floating on top of cells, not inside.

It is possible to select all objects on the sheet via:
Press F5 Special Objects OK
and to delete these at one go

but .. I'm not sure if there is a way (maybe via vba ?)
to also select/delete the underlying cells/rows

Hang around awhile for views from others
You may also wish to put in a new post/query in .programming
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"GottaRun" wrote in
message ...

Terrific .. got it!

Unfortunately what I took as a non-blank in cells of column B is some
icon - it displays a small magnifying glass inside the cell. What I
want to do is to delete the rows where the cells of column B has this
magnifying glass. Autofilter treted all the cells in B as blank.

This is data I 'copy&paste' from a website. file attached inside a
zip.

thanks again for the detailed explanation .. will come in handy.


+-------------------------------------------------------------------+
|Filename: Book4.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4427 |
+-------------------------------------------------------------------+

--
GottaRun
------------------------------------------------------------------------
GottaRun's Profile:

http://www.excelforum.com/member.php...o&userid=31297
View this thread: http://www.excelforum.com/showthread...hreadid=519182



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting text from a cell entry morchard Excel Discussion (Misc queries) 2 July 6th 05 03:53 PM
Extracting Surname from within a text string Iainkerr01 Excel Worksheet Functions 6 March 14th 05 10:16 AM
Autofitting a row Josephine Excel Discussion (Misc queries) 2 March 3rd 05 03:37 PM
Extracting and using Text from external sources Palmley Excel Worksheet Functions 6 January 14th 05 12:22 AM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 03:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"