+ Reply to Thread
Results 1 to 5 of 5

Using IF statements for cell colouring

  1. #1
    Registered User
    Join Date
    07-06-2012
    Location
    Basildon
    MS-Off Ver
    Excel 2003
    Posts
    4

    Using IF statements for cell colouring

    I am trying an experiment with a spreadsheet i am working with. I want to know if it is possible to use an IF statement to colour a cell if a date in cell A is smaller than a date in cell B?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using IF statements for cell colouring

    look at conditional formatting, you don't however us an if statement just something that will give true/false but there are built in options you can use
    http://www.contextures.com/xlCondFormat01.html
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Using IF statements for cell colouring

    Hi and welcome to the forum.

    Use Conditional formatting for this.

    Highlight your range and in CF rules, put this formula

    =$a1>$b1 >>>>Choose color>>>OK
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    07-06-2012
    Location
    Basildon
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Using IF statements for cell colouring

    Is it possible to conditional format a cell with data from a different sheet in excel 2003?

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Using IF statements for cell colouring

    Yes it is.

    One way is using named ranges. Another one is creating a helper & hidden column in first sheet with datas from the other.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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