LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Conditional Formatting =IF($B10, TEXT("dddd"))?

Not possible with CF, which can only change formatting, or without a formula in
the "blank" cell.

Formula in B1 =A1 formatted to dddd

Or, of course, through VBA event code.

Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("A1:A10")) Is Nothing Then
With Target
If .Value < "" Then
.Offset(0, 1).Value = Format(.Value, "dddd")
End If
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub


Gord Dibben MS Excel MVP

On Wed, 9 Jan 2008 11:23:39 -0800 (PST), wrote:

I'm using Excel 2003. I'm trying to use conditional formatting to have
a blank cell change to the day of the week when a date is entered into
another cell.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional formatting "if part of cell contents contains string" tom ossieur Excel Worksheet Functions 1 March 13th 07 11:11 AM
Viewing "conditional formatting" in other apps Mike B Excel Discussion (Misc queries) 0 January 4th 07 04:46 PM
Conditional Formatting: "handwritten" circles? UWHusky Excel Discussion (Misc queries) 0 February 25th 06 12:27 AM
Conditional Formatting-can a "then" be placed with the "if". jhcoburn Excel Worksheet Functions 1 November 15th 05 08:14 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 05:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"