![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 390
|
How can I make B1 blank if A1 is changed?
Thanks in advance for the answer. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,512
|
You cannot make it BLANK in the true sense of the word, at least not only by using a formula. However, you can make it appear blank. For instance:
=IF(A1>=50,"",NONBLANKVALUE) In other words, if A1 is equal to or greater than 50, and you want B1 to be blank in that case, put that formula into B1. The NONBLANKVALUE is what you want B1 to show if it is less than 50.
__________________
~Anne Troy |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
|
Or place this cod in the WorkSheet Module
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address ="$A$1" Then [$B$1].ClearContents End Sub |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Posts: 390
|
Thank you very much for the answers!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|