Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Amber M
 
Posts: n/a
Default Deleting Zero after Subtotal

I've created a macro that, upon entering info (just numbers as text, not $$)
into approx. 10 columns and 75 rows, will sort, subtotal and calc a formula.
Problem: If a cell contains no info the macro will automatically put in a 0.
Is there a way to quickly delete all the cells with only a 0 without deleting
the numbers that should contain zeros (ie. 100, 305...)??

Thanks
  #2   Report Post  
doco
 
Posts: n/a
Default

Do you mean delete the contents or the 'cell'?

"Amber M" wrote in message
...
I've created a macro that, upon entering info (just numbers as text, not
$$)
into approx. 10 columns and 75 rows, will sort, subtotal and calc a
formula.
Problem: If a cell contains no info the macro will automatically put in a
0.
Is there a way to quickly delete all the cells with only a 0 without
deleting
the numbers that should contain zeros (ie. 100, 305...)??

Thanks



  #3   Report Post  
doncam65
 
Posts: n/a
Default

If you only want to have the appearance of blank cells then use conditional
formatting

If Cell Value = 0 then format <font colour = white (assuming cell
backgrounds are white)

This will cause to zeros to be invisible


"Amber M" wrote in message
...
I've created a macro that, upon entering info (just numbers as text, not

$$)
into approx. 10 columns and 75 rows, will sort, subtotal and calc a

formula.
Problem: If a cell contains no info the macro will automatically put in a

0.
Is there a way to quickly delete all the cells with only a 0 without

deleting
the numbers that should contain zeros (ie. 100, 305...)??

Thanks



  #4   Report Post  
Ken Wright
 
Posts: n/a
Default

Select range and do Edit / Replace / Replace 0 with nothing BUT make sure you
check the option 'Match Entire Cell Contents only' You can just record this and
drop it onto the end of your macro.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"Amber M" wrote in message
...
I've created a macro that, upon entering info (just numbers as text, not $$)
into approx. 10 columns and 75 rows, will sort, subtotal and calc a formula.
Problem: If a cell contains no info the macro will automatically put in a 0.
Is there a way to quickly delete all the cells with only a 0 without deleting
the numbers that should contain zeros (ie. 100, 305...)??

Thanks



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004


  #5   Report Post  
Amber M
 
Posts: n/a
Default

Thanks to all!

"Ken Wright" wrote:

Select range and do Edit / Replace / Replace 0 with nothing BUT make sure you
check the option 'Match Entire Cell Contents only' You can just record this and
drop it onto the end of your macro.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"Amber M" wrote in message
...
I've created a macro that, upon entering info (just numbers as text, not $$)
into approx. 10 columns and 75 rows, will sort, subtotal and calc a formula.
Problem: If a cell contains no info the macro will automatically put in a 0.
Is there a way to quickly delete all the cells with only a 0 without deleting
the numbers that should contain zeros (ie. 100, 305...)??

Thanks



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004



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
pivot table - subtotal below detail Massimo Excel Discussion (Misc queries) 6 January 22nd 05 05:21 PM
Subtotal function George Gee New Users to Excel 3 January 20th 05 08:37 PM
Subtotal by two columns at once Katherine Excel Discussion (Misc queries) 1 January 20th 05 08:19 PM
Subtotal And Countif Sheryl Excel Discussion (Misc queries) 4 December 9th 04 07:18 PM
delete values in several cells without deleting the formulas dranreb Excel Discussion (Misc queries) 4 December 9th 04 01:15 AM


All times are GMT +1. The time now is 12:50 PM.

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"