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

I am trying to figure out a complex CF formula that will format a section of
a row based on mutltiple conditions. Here is a sample table of type of data I
am working with:

Week# 14 15 16 17 18 19 ... 35
Date 4/3 4/10 4/17 4/24 5/1 5/8 12/31
Row1 10 10 10
Row2 100 100 100 100
Row3 50 50

In each row, I would like to cond. format the cells that CONTAIN values from
Week#'s 14 -16 ONLY IF there are NO values present from Week #17 thru Week
#35. This is assuming that the current week = Week 14. For example:

Row1: CF CF CF
Row2: no CF (values present after WK 16)
Row3: CF CF

When in Week 15, I would like the CF range to be from WK 15 to WK 17 with NO
values from WK 18 on. I have a cell on the sheet that used for the current
date input that I was trying to use as a cell reference for a formula. I've
been struggling with this for a few days. Any help is greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Conditional Formatting Problem - Dynamic Formula??

Setting up a mock-up for your first table, I've used two header rows
so what you refer to as Row 1 is actually row 3, and the 14 is in cell
B1 with the first date in B2. Select cell B3 and click on Format |
Conditional Formatting and choose Formula Is rather than Cell Value Is
in the first box, then put this formula in the next box:

=AND(TODAY()<B$2+21,TODAY()=B$2,B3<"",COUNTIF(E3 :$W3,"<")=0)

Click on the Format button, then on the Patterns tab (for background
colour) and choose your colour. Click OK twice to exit the dialogue
boxes.

Then use the Format Painter icon to copy that format down and across
your data as required.

Hope this helps.

Pete

On May 1, 7:36*pm, GoBucks wrote:
I am trying to figure out a complex CF formula that will format a section of
a row based on mutltiple conditions. Here is a sample table of type of data I
am working with:

Week# * 14 * * *15 * * *16 * * *17 * * * 18 * *19 * ... *35
Date * *4/3 * * 4/10 * *4/17 * *4/24 * *5/1 * 5/8 * * *12/31
Row1 * *10 * * *10 * * *10 * * *
Row2 * *100 * * 100 * * 100 * * 100
Row3 * *50 * * *50 * * * * * * *

In each row, I would like to cond. format the cells that CONTAIN values from
Week#'s 14 -16 ONLY IF there are NO values present from Week #17 thru Week
#35. This is assuming that the current week = Week 14. For example:

Row1: *CF * CF * *CF
Row2: *no CF (values present after WK 16)
Row3: *CF * CF

When in Week 15, I would like the CF range to be from WK 15 to WK 17 with NO
values from WK 18 on. I have a cell on the sheet that used for the current
date input that I was trying to use as a cell reference for a formula. I've
been struggling with this for a few days. Any help is greatly appreciated..


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default Conditional Formatting Problem - Dynamic Formula??

Thank you Pete! I'm not sure if I'm doing something wrong but after I Format
Painter of cell B3 and go down and then across, only the cell B3 and B5 are
formatted. Cells C3, D4 and C5 do not get formatted. Any suggestions??

"Pete_UK" wrote:

Setting up a mock-up for your first table, I've used two header rows
so what you refer to as Row 1 is actually row 3, and the 14 is in cell
B1 with the first date in B2. Select cell B3 and click on Format |
Conditional Formatting and choose Formula Is rather than Cell Value Is
in the first box, then put this formula in the next box:

=AND(TODAY()<B$2+21,TODAY()=B$2,B3<"",COUNTIF(E3 :$W3,"<")=0)

Click on the Format button, then on the Patterns tab (for background
colour) and choose your colour. Click OK twice to exit the dialogue
boxes.

Then use the Format Painter icon to copy that format down and across
your data as required.

Hope this helps.

Pete

On May 1, 7:36 pm, GoBucks wrote:
I am trying to figure out a complex CF formula that will format a section of
a row based on mutltiple conditions. Here is a sample table of type of data I
am working with:

Week# 14 15 16 17 18 19 ... 35
Date 4/3 4/10 4/17 4/24 5/1 5/8 12/31
Row1 10 10 10
Row2 100 100 100 100
Row3 50 50

In each row, I would like to cond. format the cells that CONTAIN values from
Week#'s 14 -16 ONLY IF there are NO values present from Week #17 thru Week
#35. This is assuming that the current week = Week 14. For example:

Row1: CF CF CF
Row2: no CF (values present after WK 16)
Row3: CF CF

When in Week 15, I would like the CF range to be from WK 15 to WK 17 with NO
values from WK 18 on. I have a cell on the sheet that used for the current
date input that I was trying to use as a cell reference for a formula. I've
been struggling with this for a few days. Any help is greatly appreciated..



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 - problem with text cell value from formula PBcorn Excel Worksheet Functions 2 April 18th 08 11:39 AM
conditional formatting: problem entering EOMONTH formula... MeatLightning Excel Discussion (Misc queries) 0 February 6th 06 09:35 PM
conditional formatting: problem entering EOMONTH formula... Jonathan Cooper Excel Discussion (Misc queries) 0 February 6th 06 09:34 PM
conditional formatting: problem entering EOMONTH formula... Jonathan Cooper Excel Discussion (Misc queries) 1 February 6th 06 09:28 PM
Conditional formatting with dates formula problem. [email protected] Excel Discussion (Misc queries) 8 March 5th 05 11:47 PM


All times are GMT +1. The time now is 12:14 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"