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 Delete contents of cells


I need some help. If Cell A4 has a value of 0 I need the contents of A4
B4 C4 D4 E4 and F4 to be deleted. Can anyone help?


--
mikespeck
------------------------------------------------------------------------
mikespeck's Profile: http://www.excelforum.com/member.php...o&userid=34946
View this thread: http://www.excelforum.com/showthread...hreadid=565550

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Delete contents of cells

Do you need them DELETED or just blanked out with a formula?

"mikespeck" wrote:


I need some help. If Cell A4 has a value of 0 I need the contents of A4
B4 C4 D4 E4 and F4 to be deleted. Can anyone help?


--
mikespeck
------------------------------------------------------------------------
mikespeck's Profile: http://www.excelforum.com/member.php...o&userid=34946
View this thread: http://www.excelforum.com/showthread...hreadid=565550


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Delete contents of cells


Justblanked out, sorry!


--
mikespeck
------------------------------------------------------------------------
mikespeck's Profile: http://www.excelforum.com/member.php...o&userid=34946
View this thread: http://www.excelforum.com/showthread...hreadid=565550

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 252
Default Delete contents of cells

1. If you have a formula in those cells you can change it to look like this

=IF(A4=0,"",formula)

this will make the cell look empty, and make it's value equal to nothing.

2. If you have entered values in the cells you can use conditional
formatting and select "formula is" with the following formula

=$A$4=0

click the "format" button and change the font color to white (or whatever
you cell color is). Then click ok. This will make the cells look empty but
keep there value the same.

3. You could write a macro that would actually delete the cells every time
you enter 0 in A4. I can't help you here, but I know it's possible.




"mikespeck" wrote:


I need some help. If Cell A4 has a value of 0 I need the contents of A4
B4 C4 D4 E4 and F4 to be deleted. Can anyone help?


--
mikespeck
------------------------------------------------------------------------
mikespeck's Profile: http://www.excelforum.com/member.php...o&userid=34946
View this thread: http://www.excelforum.com/showthread...hreadid=565550


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
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Swap contents of two cells Sterling Excel Discussion (Misc queries) 3 October 20th 05 06:04 PM
how to delete contents of cells having specific data steve Excel Discussion (Misc queries) 2 July 20th 05 10:42 PM
Macro to delete data in 'green' cells only Steve Excel Worksheet Functions 7 March 19th 05 01:40 PM
Delete contents of unprotected cells in workbook BD7447 Excel Worksheet Functions 1 November 6th 04 05:41 PM


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