LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 35,218
Default Conditional Formatting to differentiate between Input and Calc

You could use Format|Conditional formatting--but it won't take effect until
after the user finishes typing the entry.

And I'd use a UDF (user defined function) that returned true or false --
depending on whether that cell has a formula in it.

This goes in a General module in the workbook's project:

Option Explicit
Function IsFormula(Rng As Range) As Boolean
IsFormula = Rng.Cells(1).HasFormula
End Function

Then with A99 the activecell, you could use a conditional formatting rule:

Formula is:
=isformula(a99)

Give it a nice format.

Ditch wrote:

Thanks Dave,
I was trying to set this up from the point of view of my staff such that
when they typed in a formula starting with '=' it would autmatically change
the font such that we could all be disciplined in differentiating between
input & calculated cells.
I take your point about setting ranges and formatting cells collectively.
Thanks,
Ditch

"Dave Peterson" wrote:

I wouldn't use format|conditional formatting.

I'd take a simpler approach.

Select a range that includes the formulas that you want to format--you can
include other stuff, too.

Edit|goto (or ctrl-g or F5)|Special|Formulas
and click ok

Your original selection has been reduced to just the cells with the formulas.
Change the formatting the way you want.

You could do the same thing with input cells, but I bet there are headers,
descriptions, notes, ... that shouldn't change format.

I'd just select those cells manually (click on the first and ctrl-click on
subsequent) and format them manually. (I'd also do it a few at a time--I hate
when I select the wrong cell and have to start my selection over from scratch!)

Ditch wrote:

Hi Team,
I want to set up a spreadsheet such that data input displays a black font
but any formula or result from another tab has blue font.
That way users automatically differentiate between input cells & calculated
cells. I've also thought about grey backgrounds for calculated cells- maybe
a bit too heavy?
Any Finance best practice tips or examples would be welcome
Thanks,
Ditch


--

Dave Peterson


--

Dave Peterson
 
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 w/ color as input vs output tom Excel Worksheet Functions 3 December 13th 06 02:34 AM
How do I differentiate between duplicate ranks? Pez Excel Worksheet Functions 1 March 27th 06 12:12 AM
How do I compare,differentiate few columns data? CS Excel Worksheet Functions 10 March 10th 06 12:54 PM
Differentiate between Number and Date? Merle Excel Discussion (Misc queries) 11 January 16th 06 08:46 AM
How do I use COUNTIF in a SUBTOTAL function to differentiate the . Lettie Excel Worksheet Functions 6 March 22nd 05 08:47 AM


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