Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Conditional Formatting

Hi,

Here is my problem, I have a list of dates of when a product was shipped in
column C and the date when it was received in column D. I would like the date
in D to be highlighted red when it is more than 3 working days from the date
in C and green when it's less than or equal to 3 working days. I would also
like the rest of the cells in D to be white until a date is entered.

Any help and advice that you can offer would be appreciated.

Thanks,

Gav.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Conditional Formatting

You need 2 conditional formats in D

First. Cell value is - less than or equal to =$C$2+3 and set the colour to
green

Click ADD

Second. Cell value is - Greater than =$C$2+3 and set the colour to red.

Mike

"Gav123" wrote:

Hi,

Here is my problem, I have a list of dates of when a product was shipped in
column C and the date when it was received in column D. I would like the date
in D to be highlighted red when it is more than 3 working days from the date
in C and green when it's less than or equal to 3 working days. I would also
like the rest of the cells in D to be white until a date is entered.

Any help and advice that you can offer would be appreciated.

Thanks,

Gav.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Conditional Formatting

Hi Mike,

Thanks for the quick response.

I need the formatting to work on week days only as we don't include the
weekends.

Gav.

"Mike H" wrote:

You need 2 conditional formats in D

First. Cell value is - less than or equal to =$C$2+3 and set the colour to
green

Click ADD

Second. Cell value is - Greater than =$C$2+3 and set the colour to red.

Mike

"Gav123" wrote:

Hi,

Here is my problem, I have a list of dates of when a product was shipped in
column C and the date when it was received in column D. I would like the date
in D to be highlighted red when it is more than 3 working days from the date
in C and green when it's less than or equal to 3 working days. I would also
like the rest of the cells in D to be white until a date is entered.

Any help and advice that you can offer would be appreciated.

Thanks,

Gav.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Conditional Formatting

Gavin,

In a cell (say E1) alongside your first row enter the formula

=SUM(INT((WEEKDAY(C1-{2,3,4,5,6})+D1-C1)/7))

The will calculate the workdays beytween c1 and d1

Now enter two conditional formats.
1. =E1<=3 and set green
2. =E1 3 and set Red

You can drag down the formula in E1 for additional cells.

Mike


"Gav123" wrote:

Hi Mike,

Thanks for the quick response.

I need the formatting to work on week days only as we don't include the
weekends.

Gav.

"Mike H" wrote:

You need 2 conditional formats in D

First. Cell value is - less than or equal to =$C$2+3 and set the colour to
green

Click ADD

Second. Cell value is - Greater than =$C$2+3 and set the colour to red.

Mike

"Gav123" wrote:

Hi,

Here is my problem, I have a list of dates of when a product was shipped in
column C and the date when it was received in column D. I would like the date
in D to be highlighted red when it is more than 3 working days from the date
in C and green when it's less than or equal to 3 working days. I would also
like the rest of the cells in D to be white until a date is entered.

Any help and advice that you can offer would be appreciated.

Thanks,

Gav.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Conditional Formatting

Thanks Mike..Worked like a charm...

"Mike H" wrote:

Gavin,

In a cell (say E1) alongside your first row enter the formula

=SUM(INT((WEEKDAY(C1-{2,3,4,5,6})+D1-C1)/7))

The will calculate the workdays beytween c1 and d1

Now enter two conditional formats.
1. =E1<=3 and set green
2. =E1 3 and set Red

You can drag down the formula in E1 for additional cells.

Mike


"Gav123" wrote:

Hi Mike,

Thanks for the quick response.

I need the formatting to work on week days only as we don't include the
weekends.

Gav.

"Mike H" wrote:

You need 2 conditional formats in D

First. Cell value is - less than or equal to =$C$2+3 and set the colour to
green

Click ADD

Second. Cell value is - Greater than =$C$2+3 and set the colour to red.

Mike

"Gav123" wrote:

Hi,

Here is my problem, I have a list of dates of when a product was shipped in
column C and the date when it was received in column D. I would like the date
in D to be highlighted red when it is more than 3 working days from the date
in C and green when it's less than or equal to 3 working days. I would also
like the rest of the cells in D to be white until a date is entered.

Any help and advice that you can offer would be appreciated.

Thanks,

Gav.

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
Conditional Formatting Padraigglynn Excel Worksheet Functions 3 March 16th 07 09:13 AM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM
Please help with Conditional Formatting Wind54Surfer Excel Discussion (Misc queries) 3 February 20th 05 07:51 PM


All times are GMT +1. The time now is 08:58 AM.

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

About Us

"It's about Microsoft Excel"