Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Apply conditional formatting to non-blank cells

I have a spreadsheet that is refreshed periodically and the data range
changes each time. I want to apply conditional formatting to non-blank cells
in columns D, F and H. So I guess I need to identify the number of rows in
the range and then loop through each cell in each of columns D, F and H and
apply the formatting.

How can I do this?

Grateful for any help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Apply conditional formatting to non-blank cells

Why not apply conditional formatting to the whole lot?

For example:
Format Conditional Formatting : 'Formual Is'
... then in the formula box put
=NOT(ISBLANK(A1))
... and set a colour.

This will highlight the non-blank cells.

Similarly:
=ISBLANK(A1)

... can be used to highlight blank cells.

More info:
http://www.bygsoftware.com/Excel/Int...formatting.htm

--
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
-

"Snowsride" wrote in message
...
I have a spreadsheet that is refreshed periodically and the data range
changes each time. I want to apply conditional formatting to non-blank
cells
in columns D, F and H. So I guess I need to identify the number of rows
in
the range and then loop through each cell in each of columns D, F and H
and
apply the formatting.

How can I do this?

Grateful for any help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Apply conditional formatting to non-blank cells

Andy

Thanks - found a solution. There are 3 condional formats and a default thus
allowing 4 colours but if a cell is blank it has to be unformatted. Solution
involved a For..Next loop and some if statements.

Thanks

"Andy Wiggins" wrote:

Why not apply conditional formatting to the whole lot?

For example:
Format Conditional Formatting : 'Formual Is'
... then in the formula box put
=NOT(ISBLANK(A1))
... and set a colour.

This will highlight the non-blank cells.

Similarly:
=ISBLANK(A1)

... can be used to highlight blank cells.

More info:
http://www.bygsoftware.com/Excel/Int...formatting.htm

--
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
-

"Snowsride" wrote in message
...
I have a spreadsheet that is refreshed periodically and the data range
changes each time. I want to apply conditional formatting to non-blank
cells
in columns D, F and H. So I guess I need to identify the number of rows
in
the range and then loop through each cell in each of columns D, F and H
and
apply the formatting.

How can I do this?

Grateful for any help.




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 / blank cells torkattack Excel Discussion (Misc queries) 6 March 25th 09 06:44 PM
conditional formatting for blank cells Stig - tame racing driver Excel Discussion (Misc queries) 5 January 23rd 09 02:54 PM
Conditional formatting/non blank cells Caroline Excel Worksheet Functions 4 November 6th 08 05:54 PM
Apply conditional formatting to cells formatted as percentages? patgal77 New Users to Excel 1 April 18th 07 08:47 PM
How to apply conditional formatting on group of cells by using dat Jon Excel Discussion (Misc queries) 7 April 9th 07 11:40 AM


All times are GMT +1. The time now is 11:39 PM.

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"