I'm exporting some data in sql table to a excel file using c# code. After exporting the data to the excel I need to append single quote any invalid text in the column A. (like staring with =,+)
I've added excel formula to remove the characters
added excel formula as
=IF(OR(LEFT(A2,1)=\"= \",LEFT(A2,1)=\"+ \"),\"'\"&A2,A2)
After applying I need to get the same text by appending single quote to the start if it contains any invalid character. ('=xxx or '+yyy) but cell contents changing to the 0 when formula applied
