Not sure what you're asking about.Now I have a similar question: When a student enters just a number in a cell I can use your ISFUNCTION VBA to test for that.
Students sometimes will curcumvent ISFUNCTION by entering =1234 (that is, an answer without showing the formula to get it).
How do I test for "=" followed by only a number?
How are you implementing this?Hi, Biff,
For the example I used, a student problem might be "Add multiply 1.234 by 1000."
I'm trying to test for EITHER if a student has entered a number, e.g. 1234 in a cell, or =1234, instead of the equired math frormula solving the problem.
So, yes, I would like both 1234, or =1234 to return FALSE.
Do you have a suggestion how to test if either a number or a number (only) following an equal sign is present?
Ok, you'll need another UDF...I'm entering this formula in a "grading" cell, say for your example where the student entered their answer in A2, the "grading" cell might be D2.
Function GetFormula(cell_ref As Range) As String
If cell_ref.HasFormula Then
GetFormula = cell_ref.Formula
Else
GetFormula = ""
End If
End Function
What version of Excel are you using?Hi, and thanks.
I wonder if I'm doing something wrong.
I tried the GetFormula() UDF in a module where I also had your IsFormula() UDF, for the following cell reference arguments: 3, =3, and =3^2.
IsFormula returned, in the above order, "FALSE", "TRUE", "TRUE" to these three arguments.
GetFormula() returned "#Name?" to all three.
Am I doing something wrong here?
Dave