Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 947
Default conditional format with formula

highlight cells that have a formula.

Hi. Here's one way. Start with a custom function that returns True if a cell has a formula:

Function HasFormulaQ(rng As Range) As Boolean
HasFormulaQ = rng.HasFormula
End Function

In Excel 2007, suppose you select A1:A10.
Go to Home | Conditional formatting (under styles) | New Rule | Use a formula.

Use the formula
=HasFormulaQ(A1)

The A1 is the first cell in your selection. When you enter this, Excel will adjust the equation for the other selected cells.
Make your format adjustments, and hit enter.

--
HTH
Dana DeLouis


"snax500" wrote in message ...

In Excel 2007, is there a way to use conditional formating to
highlight cells that have a formula. I want to highlight only cells
with any type of formula. If it is a value I do not want any
highlight. I want to do this only thru conditional formatting not with
a macro.

Thanks
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 Format Formula Mike Excel Discussion (Misc queries) 5 April 14th 08 09:09 PM
conditional format formula dzelnio Excel Discussion (Misc queries) 3 August 22nd 07 05:52 PM
Conditional format formula Shu of AZ Excel Discussion (Misc queries) 1 November 26th 06 07:27 PM
Conditional Format & Formula Bob Excel Worksheet Functions 2 November 3rd 06 09:27 PM
Conditional format with a formula Mike Echo Excel Worksheet Functions 6 July 19th 05 11:05 AM


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