Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Search for data in Excel and hide rows

Hi newsgroup,

Has come upon an interesting challenge ;-)

I have to search through an Excel sheet for a lot of data. I would like to
have the rows without the searched data to be hidden. Is it possible to do
that in Excel - or is it something like a VBA script?

Inputs are welcome.

I use MS Excel 2007, English

Thanks in advance.

/ Bjarne

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel
external usenet poster
 
Posts: 2,276
Default Search for data in Excel and hide rows

Hi,
An example might help, however if you want to select some data you can use
filters, which will show you only the data filtered

"Bjarne Jensen" wrote:

Hi newsgroup,

Has come upon an interesting challenge ;-)

I have to search through an Excel sheet for a lot of data. I would like to
have the rows without the searched data to be hidden. Is it possible to do
that in Excel - or is it something like a VBA script?

Inputs are welcome.

I use MS Excel 2007, English

Thanks in advance.

/ Bjarne

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel
external usenet poster
 
Posts: 2,722
Default Search for data in Excel and hide rows

Excel way:
Place an autofilter on your data, and do a custom filter of:
"does not equal", My Data

VBA:

'=============
Sub HideRows()
For each c in Range("D1:D100")
if c.value < "My Data" then
c.EntireRow.Hidden = True
else
c.EntireRow.Hidden = False
end if
next
End Sub
'===============

Note that the XL way would be faster performance time, while VBA would be
nice if you need to string multiple criteria together.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Bjarne Jensen" wrote:

Hi newsgroup,

Has come upon an interesting challenge ;-)

I have to search through an Excel sheet for a lot of data. I would like to
have the rows without the searched data to be hidden. Is it possible to do
that in Excel - or is it something like a VBA script?

Inputs are welcome.

I use MS Excel 2007, English

Thanks in advance.

/ Bjarne

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
How to hide blank rows after data whilst leaving some blanks. thomsonpa New Users to Excel 0 January 10th 08 06:05 PM
Hide data in specific rows/colums/cells in Excel 2003 Ben Excel Discussion (Misc queries) 3 October 21st 07 04:33 PM
hide certain rows from data import Paul K. Excel Discussion (Misc queries) 1 October 2nd 06 02:01 PM
Chart disappears if you hide rows/colums with data. Philip Gump Excel Discussion (Misc queries) 1 April 3rd 06 04:36 AM
Want to auto hide rows in excel when no data in a certain column. Tim Excel Discussion (Misc queries) 3 June 30th 05 12:52 AM


All times are GMT +1. The time now is 07:07 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"