+ Reply to Thread
Results 1 to 2 of 2

formatting color based on source column

  1. #1
    Registered User
    Join Date
    09-19-2005
    Posts
    10

    formatting color based on source column

    Hi and thanks to anyone who reads this.

    I have a worksheet which contains two columns of dates.
    In a second worksheet i have a column which adds the two dates together as TEXT and ommits dates which are blank which works perfectly, however:

    I would like to know how i could format each of the 2 dates in the 1 cell to have different font colors?

    Here is my existing cell formula:

    =IF('Data'!E2=0,"",(TEXT('Data'!E2,"dd/mm/yy"))&" "&IF('Data'!F2=0,"",TEXT('Data'!F2,"dd/mm/yy")))

    I have a feeling its not conditional formating, as that won't allow me to use formulas across different worksheets, and i've tried for ages with custom cell formatting. Is there soem kind of VB that would do this for me?

    Any help would be great,

    Thanks

  2. #2
    Dave Peterson
    Guest

    Re: formatting color based on source column

    You have a response to your post in .excel.

    NickPR wrote:
    >
    > Hi and thanks to anyone who reads this.
    >
    > I have a worksheet which contains two columns of dates.
    > In a second worksheet i have a column which adds the two dates together
    > as TEXT and ommits dates which are blank which works perfectly,
    > however:
    >
    > I would like to know how i could format each of the 2 dates in the 1
    > cell to have different font colors?
    >
    > Here is my existing cell formula:
    >
    > =IF('Data'!E2=0,"",(TEXT('Data'!E2,"dd/mm/yy"))&"
    > "&IF('Data'!F2=0,"",TEXT('Data'!F2,"dd/mm/yy")))
    >
    > I have a feeling its not conditional formating, as that won't allow me
    > to use formulas across different worksheets, and i've tried for ages
    > with custom cell formatting. Is there soem kind of VB that would do
    > this for me?
    >
    > Any help would be great,
    >
    > Thanks
    >
    > --
    > NickPR
    > ------------------------------------------------------------------------
    > NickPR's Profile: http://www.excelforum.com/member.php...o&userid=27376
    > View this thread: http://www.excelforum.com/showthread...hreadid=468971


    --

    Dave Peterson

+ 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