I am trying to put a text function inside another function (if statement) in excel:
=IF(C1 <> 0, ="INSERT INTO [dbo].[GPI_ASOC] ([GPI],[THER_CLASS_DESC],[GENERIC_NAME]) VALUES ('" & TEXT(A1,0) & "', '" & TEXT(C1,0) & "', '" & TEXT(D1,0) & "');", "FAIL")
If C row# <> 0 make the field say FAIL if not make the cell show the insert statement.
Edit: does not = 0 (<>)
<>instead of!==before"Insert...=all others are assumed.