Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default how to delete an excel line based on a condition

I generate proposals in Excel. I have a calculation worksheet and a proposal
worksheet. Based on certain product selections, I want to delete the rows of
the products with zero quantities on the proposal worksheet. At the moment it
needs to be done manually, which is tedious. Is there a way to make the rows
with zero quantities "disappear" or be deleted automatically - or on demand?
Any suggestions? (Or will this this require higher level programming?)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 349
Default how to delete an excel line based on a condition

Excel functions generally return a value rather than perform an action,
deleting cell values would be deemed as performing an action.

Have you tried using conditional formatting in the cells with values you
want to 'disappear', set the font colour to be the same as the background
colour when the cell value equals zero.
--
Regards - Peter


""The cricket"" wrote:

I generate proposals in Excel. I have a calculation worksheet and a proposal
worksheet. Based on certain product selections, I want to delete the rows of
the products with zero quantities on the proposal worksheet. At the moment it
needs to be done manually, which is tedious. Is there a way to make the rows
with zero quantities "disappear" or be deleted automatically - or on demand?
Any suggestions? (Or will this this require higher level programming?)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default how to delete an excel line based on a condition

Hi

you could apply an Autofilter to the data.
Select a dropdown on any of the columns with 0 and use Customdoes not
Equal0
Then print the visible data.

Alternatively, used Advanced Filter to bring across to your Printout Sheet,
only those lines that do not have zero values.
More help on advanced filter can be found at Debra Dalgleish's site
http://www.contextures.com/xladvfilter01.html
--
Regards
Roger Govier

""The cricket"" <"The wrote in message
...
I generate proposals in Excel. I have a calculation worksheet and a
proposal
worksheet. Based on certain product selections, I want to delete the rows
of
the products with zero quantities on the proposal worksheet. At the moment
it
needs to be done manually, which is tedious. Is there a way to make the
rows
with zero quantities "disappear" or be deleted automatically - or on
demand?
Any suggestions? (Or will this this require higher level programming?)


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
Delete row 1 based on condition in cell on row 2 McDuck Excel Worksheet Functions 0 July 30th 08 07:53 PM
Macro to delete rows based on a condition Darrilyn Excel Worksheet Functions 1 September 6th 07 12:12 AM
How to delete a data row based on a condition wmc New Users to Excel 4 April 18th 07 02:40 PM
Is there a way to delete a cell value based on a condition? Peanut Excel Discussion (Misc queries) 2 October 2nd 06 09:55 PM
How do I delete a line in Excel that I only see when printed? Tera Charts and Charting in Excel 1 August 2nd 06 03:25 PM


All times are GMT +1. The time now is 11:12 AM.

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

About Us

"It's about Microsoft Excel"