I have a cell/ entire column that has a formula(s) in it. Sometimes I go into that cell and manually change that value to a different value. The formula goes away and is being over written by the manual entry. How can someone determine later down the line that that cell was being entered automatically with the formula or entered manually? Is there some rule or trick within conditional formatting or elsewhere that can indicate to the viewer that this cell was overwritten or that cell is being formulated by the generic formula.
An example....
if the formula adds a selected range and gives a value and that cell is red now. If I enter a value manually in that cell, that cell now sees that value and turns it 'blue' because it was manually entered. Is there logic in excel that will differentiate this? Thanks
UPD:
1) add UDF:
Function hasFormula(r As Range) As Boolean
hasFormula = r.hasFormula
End Function
2) Select all cells and apply following CF rules:
=AND(A1<>"",NOT(hasFormula(A1)))=hasFormula(A1)For Excel 2013 you could use built-in function ISFORMULA:
Select all cells and apply following CF rules:
=AND(A1<>"",NOT(ISFORMULA(A1)))=ISFORMULA(A1)
Alternative way (for higlighting all cells with formulas):
Press CTRL+G, then select "Special..."->"Formulas" and press "OK". But it highlights cells only temporary, untill you select any other cell.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With