Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Andrew Heath
 
Posts: n/a
Default Conditional Formating for Formula Cells

Hi to all fantastic Excel champions,

How do I get conditional formatting to change the format of any cell that
contains a formula?


Kind regards
--
Andrew 'The Ox' Heath
Brisbane, QLD
Australia
  #2   Report Post  
David McRitchie
 
Posts: n/a
Default

Hi Andrew,

You can use a user defined function (see my formula.htm page):
But it must be in the same workbook not your personal.xls to work
in Conditional Formatting, though there is no harm in having it in both places.

Function HasFormula(cell)
HasFormula = cell.HasFormula
End Function

=hasformula(a1)

use the above in your conditional formatting
http://www.mvps.org/dmcritchie/excel/condfmt.htm

If you need help to install a User Defined Function or a Macro see
http://www.mvps.org/dmcritchie/excel/getstarted.htm

alternative:
You can temporarily see which cells have formulas with Ctrl+A, Edit, GoTo,
[Special], Formulas, (check all: Numbers, Text, Logicals, Errors)
You could then use Format,cells, pattern to color the cells.
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm

"Andrew Heath" (delete) wrote in message ...
Hi to all fantastic Excel champions,

How do I get conditional formatting to change the format of any cell that
contains a formula?


Kind regards
--
Andrew 'The Ox' Heath
Brisbane, QLD
Australia



  #3   Report Post  
Bernd Plumhoff
 
Posts: n/a
Default

Hello Andrew,

define the name HasFormula with the value
=GET.CELL(48,INDIRECT("RC",))

(go to Insert/Name/Define... and enter HasFormula into field Names in
workbook and
=GET.CELL(48,INDIRECT("RC",))
into field Refers to)

then select for example your whole workbook (left mouse-click on upper left
cell of sheet), go to Format/Conditional Formatting, select Formula Is for
Condition 1 and enter
=HasFormula
into next field, push button Format and select Pattern and the green color,
for example)

All cells with formulas will appear with a green background now.

Other interesting parameters for the get.cell() function you might find at
http://www.sulprobil.com/html/get_cell.html

HTH,
Bernd
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
how do I maintain my conditional formatting when filtering cells? Aja Excel Worksheet Functions 0 September 21st 05 09:56 PM
Can I HIDE cells with a conditional argument? Bob the Builder Excel Worksheet Functions 2 July 22nd 05 10:30 AM
Counting the number of cells meeting conditional formating criteria Jeff Excel Worksheet Functions 4 July 9th 05 01:18 AM
conditional formating Jed Excel Discussion (Misc queries) 3 June 14th 05 05:11 PM
Conditional Formating Roy Excel Discussion (Misc queries) 4 May 27th 05 01:16 AM


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