Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jg jg is offline
external usenet poster
 
Posts: 42
Default Formula to Determine if Cell Value is from a Keyed Value or a Form

Is there a formula that can tell me whether a cell's value is a keyed value
(probably a number, if that helps) or if it was determined via a formula.

What I'm doing: I'm building an estimation tool and I want to identify
where manual tweaks have been made (don't want to do protection here).

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 457
Default Formula to Determine if Cell Value is from a Keyed Value or a Form

Not directly. You can find formulas/constants with the Go-to dialogue
(Ctrl+G, special) for a quick search, or you can use a UDF like this:

Function IsFormula(r As Range) As Boolean
If r.Value = r.Formula Then
IsFormula = False
Else
IsFormula = True
End If
End Function

--
Best Regards,

Luke M
"JG" wrote in message
...
Is there a formula that can tell me whether a cell's value is a keyed
value
(probably a number, if that helps) or if it was determined via a formula.

What I'm doing: I'm building an estimation tool and I want to identify
where manual tweaks have been made (don't want to do protection here).

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Formula to Determine if Cell Value is from a Keyed Value or a Form

If your users are limited to entering strings only, you could use
CELL("type", A1) which returns "l" if it is a string. Anything else returns
a "v".

From your description, I guess you wnat to see entered numbers. To my
knowledge, there are no functions to do what you want. You can, however,
write a simple function. I will try to give a simple example, with my
moderate knowledge:

Function IsKeyed(Inx as Range)
dim InputCell as Range, ValofCell

set InputCell = Inx.Cells(1,1)
' The purpose of this line is to make sure we deal with a single cell. If a
true cell
' range is entered, only the top-left cell is considered.
ValofCell = InputCell.Value

if InputCell.Formula = ValofCell
IsKeyed = 1 (or true, whatever you want to see)
else
IsKeyed = 0 (or false)
end if

end function

This works because Excel puts the entered value in the formula. However, it
would not work if the cell is a date. If you have to deal with dates as well,
insert the line

if IsDate(InputCell.value) then ValofCell = Cdate(InputCell.Value)

I think this would work.

Hope this helps

"JG" wrote:

Is there a formula that can tell me whether a cell's value is a keyed value
(probably a number, if that helps) or if it was determined via a formula.

What I'm doing: I'm building an estimation tool and I want to identify
where manual tweaks have been made (don't want to do protection here).

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
How do you hide the value of a cell until data is keyed into anoth akemeny Excel Discussion (Misc queries) 11 June 18th 09 06:39 PM
How to determine if a cell contains a value or a formula? George Excel Discussion (Misc queries) 1 October 5th 07 03:50 PM
how do I determine if a cell is used in a formula razorsharp Excel Discussion (Misc queries) 1 December 20th 06 06:53 PM
How can I determine if a cell has a value (#) or a formula (X*Y)? KMH Excel Discussion (Misc queries) 2 December 22nd 05 04:39 PM
how can i test whether cell contains keyed constant or a formulae Ruthki Excel Worksheet Functions 6 June 22nd 05 12:44 PM


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