+ Reply to Thread
Results 1 to 3 of 3

excel colour formatting problem

  1. #1
    Registered User
    Join Date
    10-21-2009
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    1

    excel colour formatting problem

    Appreciate any help!

    I have a date table with a series of column inputs beside it..
    ie For the date 5th Nov 2009 entered in cell b2, i have 3 cells c2, d2, e2 which may or may-not have an entry ie either nthg or say "L"

    I want to display in f2 the text inputs from c2-d2-e2 if they have say the value"L", but wish to differentiate these results by colour

    ie if the relevent cells have a value i want to differentiate and display these in f2 as...c2 in Red, d2 in blue, e2 in green.

    if any of the c2, d2, e2 values are blank i want to exclude them

    how can i achieve this without any VBA?

    Thx in advance

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: excel colour formatting problem

    If I've understood you, you can't. A cell containing a formulae can not contain more than one format. You would need VBA.

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: excel colour formatting problem

    I understood:
    F2:=IF(OR(C2="L",D2="L",E2="L"),"L","")
    CF F2:=
    CF 1) =IF(AND($C$2="L",$D$2<>"L",$E$2<>"L"),1,0) => Border Red
    CF 2) =IF(AND($C$2<>"L",$D$2="L",$E$2<>"L"),1,0) => Border Blue
    CF 3) =IF(AND($C$2<>"L",$D$2<>"L",$E$2="L"),1,0) => Border Green

    The only thing I do not understand is
    if any of the c2, d2, e2 values are blank i want to exclude them
    Last edited by rwgrietveld; 10-21-2009 at 03:14 AM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

+ 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