+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting based on another Cell

  1. #1
    Registered User
    Join Date
    10-12-2009
    Location
    Limerick, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Conditional Formatting based on another Cell

    I have an issue with Excel 2007 and I wonder can you help.

    I have a Column A that you can select a “Yes” or “No” for each cell which I have set up under Data Validation.
    Based on this if I select “Yes” in cell A1 it should have no effect on cell B1.
    Based on this if I select “No” it has the effect that cell B1 is populated automatically with a Zero.

    Can you assist??? As I cannot get this to work correctly...
    Last edited by Mondy; 10-12-2009 at 10:02 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,055

    Re: Conditional Formating based on another Cell

    =if(a1="yes";formula;0)
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    10-12-2009
    Location
    Limerick, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Conditional Formating based on another Cell

    I have put this formula into the conditional formatting for Cell B1
    but I get an error in formula all the time in the version of Excel 2007..sorry..

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,055

    Re: Conditional Formating based on another Cell

    try replace ; with ,

    =if(a1="yes",formula,0)

    and instead of FORMULA write what's actuall formula in your cell (B1).

  5. #5
    Registered User
    Join Date
    10-12-2009
    Location
    Limerick, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Conditional Formating based on another Cell

    Cell B1 has a drop down box to select 1 or 2 if it is not populated
    automatically with the zero...

  6. #6
    Registered User
    Join Date
    10-12-2009
    Location
    Limerick, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Conditional Formating based on another Cell

    I have attached a JPEG of the worksheet it migh make it clearer what I am trying to accomplish...

    Thanks for the help..
    Attached Images Attached Images

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,055

    Re: Conditional Formating based on another Cell

    I think it's easies to add one more column like (for example) SUMARRY on the right

    And write in it:

    =IF(C19="No",0,IF(C19="YES",D19,"Wrong answer"))

+ 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