Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 65
Default If a date entered

In a spreadsheet, we want one field in a row to turn grey if a date is
entered into another field along that column, otherwise it retains the colour
it started with.

Any ideas?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default If a date entered

Had that qsame uestion a day or so ago. You need to use format conditional
formating. It is very simple. can make the text bold, put aborder around it
or make ti a color. Look in forum on excel.programing on the 17th topic New
and exciting things, go tehre and see replys to mine.

"bollard" wrote:

In a spreadsheet, we want one field in a row to turn grey if a date is
entered into another field along that column, otherwise it retains the colour
it started with.

Any ideas?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default If a date entered

One way:

Setup Conditional formatting for the cell or column that should change color
when a date is entered.
Select the cell or column. Goto Format-Conditional Formatting.
Click drop-down and select ' Formula Is'. Then use this formula.

=NOT(ISERROR(DATE(YEAR(A1),MONTH(A1),DAY(A1))))

Set your format for whatever color you want (click Format button, select
Patterns and then the color you want.).
There are probably other formulas that would work, but this seems to do the
trick.

HTH,
Paul


"bollard" wrote in message
...
In a spreadsheet, we want one field in a row to turn grey if a date is
entered into another field along that column, otherwise it retains the
colour
it started with.

Any ideas?

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 80
Default If a date entered

Hi Bollard

Try this with conditional formatting.

You need to test for cell content i.e not blank and for a date, this latter
indirectly by checking the format.

1. Select the cell which you want to format say A2 and test row 2
2. Click on the Format menu.
3. Select conditional formatting
4. In the first drop down box select Formula is
5. Assuming that the data to be tested is in column D type the following in
the long box to the right.
=IF(AND(LEFT(CELL("Format",D2),1)="D",ISBLANK(D2)= FALSE),1,0)
6. Click on the Format€¦ button.
7. The select the Patterns Tab of the dialogue box
8. Choose your colour and click OK
9. Then Click OK on the Conditional Formatting Dialogue Box

Regards
Phil

"bollard" wrote:

In a spreadsheet, we want one field in a row to turn grey if a date is
entered into another field along that column, otherwise it retains the colour
it started with.

Any ideas?

Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default If a date entered

See original thread

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Philip J Smith" wrote in message
...
Hi Bollard

Try this with conditional formatting.

You need to test for cell content i.e not blank and for a date, this
latter
indirectly by checking the format.

1. Select the cell which you want to format say A2 and test row 2
2. Click on the Format menu.
3. Select conditional formatting
4. In the first drop down box select Formula is
5. Assuming that the data to be tested is in column D type the following
in
the long box to the right.
=IF(AND(LEFT(CELL("Format",D2),1)="D",ISBLANK(D2)= FALSE),1,0)
6. Click on the Format. button.
7. The select the Patterns Tab of the dialogue box
8. Choose your colour and click OK
9. Then Click OK on the Conditional Formatting Dialogue Box

Regards
Phil

"bollard" wrote:

In a spreadsheet, we want one field in a row to turn grey if a date is
entered into another field along that column, otherwise it retains the
colour
it started with.

Any ideas?

Thanks.



Reply
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
date entered display Kate Excel Discussion (Misc queries) 7 April 11th 07 08:46 PM
Date Calculations before date entered Ma2Weir Excel Discussion (Misc queries) 8 February 1st 07 03:34 AM
don't calculate if no date is entered Mike Excel Discussion (Misc queries) 3 July 2nd 06 02:37 PM
date entered wrong or not as a date Margo Guda Excel Worksheet Functions 7 March 13th 06 02:31 PM
Need date to appear 90 days later than initial date entered Becky Excel Worksheet Functions 6 September 16th 05 02:48 PM


All times are GMT +1. The time now is 07:38 PM.

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"