Feb 06 2024 02:32 AM
hello,
I'm trying to insert if condition to my formula but excel doesn't like it
="INSERT INTO test (col1,col2,col2,col3,col4,col5,col6,col7,col8,col9,col10)
VALUES (1,1,11,'"&A331&"',1,111,1,111,NOW(),NOW(),"&if(TEXT(C331;"yyyy-mm-dd")="1900-01-01","default","not default")&");"
what's wrong with it?
Feb 06 2024 05:06 AM
Does this work?
="INSERT INTO test (col1,col2,col2,col3,col4,col5,col6,col7,col8,col9,col10)
VALUES (1,1,11,'"&A331&"',1,111,1,111,NOW(),NOW(),"&IF(TEXT(C331,"yyyy-mm-dd")="1900-01-01","default","not default")&");"
Feb 13 2024 05:12 AM