+ Reply to Thread
Results 1 to 16 of 16

conditional formatting with formula

  1. #1
    Registered User
    Join Date
    06-08-2005
    Posts
    67

    conditional formatting with formula

    I can't get this to work...I want to format the contents in cell A1 based upon the value of cell B1.

    I open the conditional formatting...I select "Formula is"...I enter =if(b1=0)...I select my formatting options.

    I enter 0 in cell B1 and the formatting in cell A1 does not occur. I must be formatting my formula wrong. Even if I format my formula a bit wrong, Excel corrects it, but even then, the formatting in cell A1 is not occuring.

  2. #2
    Forum Contributor
    Join Date
    03-12-2004
    Posts
    329
    =IF($B$1=0,1,0)


    Quote Originally Posted by mwc0914
    I can't get this to work...I want to format the contents in cell A1 based upon the value of cell B1.

    I open the conditional formatting...I select "Formula is"...I enter =if(b1=0)...I select my formatting options.

    I enter 0 in cell B1 and the formatting in cell A1 does not occur. I must be formatting my formula wrong. Even if I format my formula a bit wrong, Excel corrects it, but even then, the formatting in cell A1 is not occuring.

  3. #3
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  4. #4
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  5. #5
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  6. #6
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  7. #7
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  8. #8
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  9. #9
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  10. #10
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  11. #11
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  12. #12
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  13. #13
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  14. #14
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  15. #15
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




  16. #16
    Biff
    Guest

    Re: conditional formatting with formula

    Hi!

    Since an empty cell evaluates to 0, if B1 is empty it will equal zero and
    the cf will be applied.

    Try one of these as the cf formula:

    =AND(ISNUMBER(B1),B1=0)

    Or

    =AND(B1<>"",B1=0)

    Biff

    "mwc0914" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I can't get this to work...I want to format the contents in cell A1
    > based upon the value of cell B1.
    >
    > I open the conditional formatting...I select "Formula is"...I enter
    > =if(b1=0)...I select my formatting options.
    >
    > I enter 0 in cell B1 and the formatting in cell A1 does not occur. I
    > must be formatting my formula wrong. Even if I format my formula a bit
    > wrong, Excel corrects it, but even then, the formatting in cell A1 is
    > not occuring.
    >
    >
    > --
    > mwc0914
    > ------------------------------------------------------------------------
    > mwc0914's Profile:
    > http://www.excelforum.com/member.php...o&userid=24130
    > View this thread: http://www.excelforum.com/showthread...hreadid=388691
    >




+ 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