Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Format based on cell contents being a formula or not

How do I format a cell with red highlights if it contains a value and leave
it alone if it containes a formula? I useed =isformula(F6)=FALSE with Excel
2007 conditional formatting but now can't get it to work.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Format based on cell contents being a formula or not

Hi,

First define a range name -
1. Choose Insert, Name, Define
2. and in the Names in workbook box enter F (or any name you want)
3. in the Refers to box enter
=GET.CELL(48,INDIRECT("rc",FALSE))
Next apply conditional formatting: to mark all cells with formulas
4. Format, Conditional Formatting
5. Formula is
6. Enter =F
7. Click Format and pick a color
to mark all cells without formulas
6a. Use <F
--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Joe" wrote:

How do I format a cell with red highlights if it contains a value and leave
it alone if it containes a formula? I useed =isformula(F6)=FALSE with Excel
2007 conditional formatting but now can't get it to work.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Format based on cell contents being a formula or not

Shane-

Thanks for your help but I found an old note I had that worked for me:

In order for Excel to check a cell for the contents to be a formula or just
plain values you must press Alt F11 and enter this:

Function IsFormula(c)
IsFormula = c.HasFormula
End Function

as a Visual Basic Module VBM


"Shane Devenshire" wrote:

Hi,

First define a range name -
1. Choose Insert, Name, Define
2. and in the Names in workbook box enter F (or any name you want)
3. in the Refers to box enter
=GET.CELL(48,INDIRECT("rc",FALSE))
Next apply conditional formatting: to mark all cells with formulas
4. Format, Conditional Formatting
5. Formula is
6. Enter =F
7. Click Format and pick a color
to mark all cells without formulas
6a. Use <F
--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Joe" wrote:

How do I format a cell with red highlights if it contains a value and leave
it alone if it containes a formula? I useed =isformula(F6)=FALSE with Excel
2007 conditional formatting but now can't get it to work.

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 format a cell based on the contents of a different cell? Zoe McGoe Excel Discussion (Misc queries) 1 February 9th 09 07:57 PM
How do I format one cell based on contents in another cell in Exce janet686 Excel Discussion (Misc queries) 2 April 13th 07 06:20 PM
Can I format a row based on the contents of one cell? Kirsty Excel Discussion (Misc queries) 1 May 23rd 06 02:57 PM
Set number format based on cell contents nospaminlich Excel Discussion (Misc queries) 5 December 8th 05 06:41 PM
Conditional Format based on contents of cell. dave m Excel Worksheet Functions 13 April 29th 05 01:12 PM


All times are GMT +1. The time now is 10:31 AM.

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"