+ Reply to Thread
Results 1 to 4 of 4

if cell is blank, color another cell?

  1. #1
    savbci
    Guest

    if cell is blank, color another cell?

    I have 2 fields A1 and B1
    If B1 is blank I want the text in A1 to turn red. Otherwise it will remain
    black.
    Later if B1 is filled in then A1 will turn back to it's original state
    (black).
    How do I do this?


  2. #2
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    use Conditional Formatting.
    1. Select cell A1.
    2. On the menu bar select Format\Conditional Formatting
    3. Select "Formula Is" from the first drop down on the left
    4. Enter the Formula =ISBLANK(B1) into the text box to the right
    5. Click "Format" and under the Font tab choose Color and select Red.
    6. Click OK and OK




    Quote Originally Posted by savbci
    I have 2 fields A1 and B1
    If B1 is blank I want the text in A1 to turn red. Otherwise it will remain
    black.
    Later if B1 is filled in then A1 will turn back to it's original state
    (black).
    How do I do this?
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Your after conditional formatting.

    Slect A1 then go to Format > conditional formatting. Click format and enter the below. Format font to red


    =$B1=""

    VBA Noob

  4. #4
    Miguel Zapico
    Guest

    RE: if cell is blank, color another cell?

    You can use conditional formating (menu Format) in A1, set the condition with
    "Formula Is" and use the following formula:
    =ISBLANK(B1)
    Then set the format as you want it in the Format button.

    Hope this helps,
    Miguel.

    "savbci" wrote:

    > I have 2 fields A1 and B1
    > If B1 is blank I want the text in A1 to turn red. Otherwise it will remain
    > black.
    > Later if B1 is filled in then A1 will turn back to it's original state
    > (black).
    > How do I do this?
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1