Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Conditional format if a cell has a formula or if a percent or numb

I need to change the color of a cell that contains a complicated formula if
someone types in a value. Any Ideas?

M
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Conditional format if a cell has a formula or if a percent or numb

If someone types in a value, there will no longer be a complicated formula.

You would be better off protecting that cell from editing using
FormatCellProtection followed by ToolsProtectionProtect Sheet.

But.....................to answer your question.

Copy/paste this UDF to a General Module in your workbook.

Function IsFormula(cell)
Application.Volatile
IsFormula = cell.HasFormula
End Function

Select the cell to change color and FormatConditional FormattingFormula is:

Assuming the selection to be A1

Formula is: =NOT(IsFormula(A1))


Gord Dibben MS Excel MVP

On Tue, 11 Jul 2006 20:41:02 -0700, wrightlife11
wrote:

I need to change the color of a cell that contains a complicated formula if
someone types in a value. Any Ideas?

M


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
Set conditional format to show when a sell contain a formula Gerrit Excel Discussion (Misc queries) 9 February 17th 06 07:14 PM
enhanced conditional formatting Stuart Excel Discussion (Misc queries) 13 November 13th 05 07:20 PM
Cond. Format & Absolute Cell Reference Question nastech Excel Discussion (Misc queries) 4 November 9th 05 05:02 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
How do I do conditional format based on a cell with a formula? Justin Excel Worksheet Functions 9 December 17th 04 02:05 PM


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