Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Conditional formatting for range of cells?

Cells B2 to B150 contain dates. Is it possible to apply conditional
formatting to B1 so that it turns red if any of the dates in B2:B150 are
greater than TODAY()? If so, what is the formula?

TIA
David
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Conditional formatting for range of cells?

Try this:

Select cell B1

Then, from the Excel main menu:
<format<conditional formatting
Condition 1: Click the drop down and set:
Formula is: =COUNTIF($B$2:$B$150,""&TODAY())
Click the [format..] button and set the format you want
Click the [OK] buttons to finish

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Compass Rose" wrote:

Cells B2 to B150 contain dates. Is it possible to apply conditional
formatting to B1 so that it turns red if any of the dates in B2:B150 are
greater than TODAY()? If so, what is the formula?

TIA
David

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Conditional formatting for range of cells?

Thanks, Ron. This does exactly what I asked for. After entering it, I
realized that I need to refine the requirements.

Column B contains the date that a documents was sent out for review. In
Column C I enter the date that the reviewed document was returned. To
visually flag if a document has not been returned within 14 days, I have
applied conditional formatting to the individual cells of column C as follows:

=AND(C2="",TODAY()B2+14) format RED

What I would like C1 to show is if any of the cells of column C is RED
without having to scroll all the cells. The last row presently is 150, but as
the worksheet grows, there will be more of a chance of missing a red cell.

Hope this is clear.

Regards,
David

"Ron Coderre" wrote:

Try this:

Select cell B1

Then, from the Excel main menu:
<format<conditional formatting
Condition 1: Click the drop down and set:
Formula is: =COUNTIF($B$2:$B$150,""&TODAY())
Click the [format..] button and set the format you want
Click the [OK] buttons to finish

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Compass Rose" wrote:

Cells B2 to B150 contain dates. Is it possible to apply conditional
formatting to B1 so that it turns red if any of the dates in B2:B150 are
greater than TODAY()? If so, what is the formula?

TIA
David

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Conditional formatting for range of cells?

Try this CF formula for C1:

=SUMPRODUCT(((C2:INDEX(C:C,COUNTA(B:B)))=0)*(TODAY ()((B2:INDEX(B:B,COUNTA(B:B)))+14)))

(Note: That formula assumes that B1 contains a value.)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Compass Rose" wrote:

Thanks, Ron. This does exactly what I asked for. After entering it, I
realized that I need to refine the requirements.

Column B contains the date that a documents was sent out for review. In
Column C I enter the date that the reviewed document was returned. To
visually flag if a document has not been returned within 14 days, I have
applied conditional formatting to the individual cells of column C as follows:

=AND(C2="",TODAY()B2+14) format RED

What I would like C1 to show is if any of the cells of column C is RED
without having to scroll all the cells. The last row presently is 150, but as
the worksheet grows, there will be more of a chance of missing a red cell.

Hope this is clear.

Regards,
David

"Ron Coderre" wrote:

Try this:

Select cell B1

Then, from the Excel main menu:
<format<conditional formatting
Condition 1: Click the drop down and set:
Formula is: =COUNTIF($B$2:$B$150,""&TODAY())
Click the [format..] button and set the format you want
Click the [OK] buttons to finish

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Compass Rose" wrote:

Cells B2 to B150 contain dates. Is it possible to apply conditional
formatting to B1 so that it turns red if any of the dates in B2:B150 are
greater than TODAY()? If so, what is the formula?

TIA
David

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Conditional formatting for range of cells?

Works like a charm!! Thanks!

Just wondering, why does B1 have to contain a value? For the purposes of the
question, I simplified row and column numbers, but adjusted them in the CF
formula so that it works as required. In fact, my dates start in cells J6 and
K6. The first 11 rows and 9 columns contain other project related
information.

David

"Ron Coderre" wrote:

Try this CF formula for C1:

=SUMPRODUCT(((C2:INDEX(C:C,COUNTA(B:B)))=0)*(TODAY ()((B2:INDEX(B:B,COUNTA(B:B)))+14)))

(Note: That formula assumes that B1 contains a value.)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Compass Rose" wrote:

Thanks, Ron. This does exactly what I asked for. After entering it, I
realized that I need to refine the requirements.

Column B contains the date that a documents was sent out for review. In
Column C I enter the date that the reviewed document was returned. To
visually flag if a document has not been returned within 14 days, I have
applied conditional formatting to the individual cells of column C as follows:

=AND(C2="",TODAY()B2+14) format RED

What I would like C1 to show is if any of the cells of column C is RED
without having to scroll all the cells. The last row presently is 150, but as
the worksheet grows, there will be more of a chance of missing a red cell.

Hope this is clear.

Regards,
David

"Ron Coderre" wrote:

Try this:

Select cell B1

Then, from the Excel main menu:
<format<conditional formatting
Condition 1: Click the drop down and set:
Formula is: =COUNTIF($B$2:$B$150,""&TODAY())
Click the [format..] button and set the format you want
Click the [OK] buttons to finish

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Compass Rose" wrote:

Cells B2 to B150 contain dates. Is it possible to apply conditional
formatting to B1 so that it turns red if any of the dates in B2:B150 are
greater than TODAY()? If so, what is the formula?

TIA
David



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Conditional formatting for range of cells?

Actually, the key is to make sure that the row_ref in the INDEX function
reaches down far enough in your range to include the last items. You might
need to use something like this:

=SUMPRODUCT(((K6:INDEX(K:K,COUNTA(J:J))+5)=0)*(TOD AY()((J6:INDEX(J:J,COUNTA(J:J)+5))+14)))

Side note: It's usually best to present your exact situation and references
in your posted examples. There are times when the solution to the generic,
edited example is dramatically different from the final solution.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Compass Rose" wrote:

Works like a charm!! Thanks!

Just wondering, why does B1 have to contain a value? For the purposes of the
question, I simplified row and column numbers, but adjusted them in the CF
formula so that it works as required. In fact, my dates start in cells J6 and
K6. The first 11 rows and 9 columns contain other project related
information.

David

"Ron Coderre" wrote:

Try this CF formula for C1:

=SUMPRODUCT(((C2:INDEX(C:C,COUNTA(B:B)))=0)*(TODAY ()((B2:INDEX(B:B,COUNTA(B:B)))+14)))

(Note: That formula assumes that B1 contains a value.)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Compass Rose" wrote:

Thanks, Ron. This does exactly what I asked for. After entering it, I
realized that I need to refine the requirements.

Column B contains the date that a documents was sent out for review. In
Column C I enter the date that the reviewed document was returned. To
visually flag if a document has not been returned within 14 days, I have
applied conditional formatting to the individual cells of column C as follows:

=AND(C2="",TODAY()B2+14) format RED

What I would like C1 to show is if any of the cells of column C is RED
without having to scroll all the cells. The last row presently is 150, but as
the worksheet grows, there will be more of a chance of missing a red cell.

Hope this is clear.

Regards,
David

"Ron Coderre" wrote:

Try this:

Select cell B1

Then, from the Excel main menu:
<format<conditional formatting
Condition 1: Click the drop down and set:
Formula is: =COUNTIF($B$2:$B$150,""&TODAY())
Click the [format..] button and set the format you want
Click the [OK] buttons to finish

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Compass Rose" wrote:

Cells B2 to B150 contain dates. Is it possible to apply conditional
formatting to B1 so that it turns red if any of the dates in B2:B150 are
greater than TODAY()? If so, what is the formula?

TIA
David

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 similar to shading alternating rows Conan Kelly Excel Worksheet Functions 10 August 22nd 06 11:13 PM
counting cells based on conditional formatting Marc Excel Discussion (Misc queries) 3 July 5th 06 08:37 PM
conditional formatting 2 cells debjocc Excel Worksheet Functions 6 June 2nd 06 03:21 PM
Conditional Formatting based on other cells userzero Excel Worksheet Functions 4 April 6th 06 11:16 PM
Copying cells with conditional formatting Benfanfromlo Excel Discussion (Misc queries) 3 February 10th 05 06:12 PM


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