Hello,
I have data results in a SQL database. The results can either be <1 or a numeric decimal value such as 1.2 or 20.75. The <1 are stores in the field TextValue and the actual results are stored in the field LabValue. I download these results to Excel for calculations. My clients want the results stored in one Excel column "Results" where the results are <1, 1.2, 20.75 and they can perform calculations. If I concatinate these two fields SELECT TextValue+CAST(LabValue as VARCHAR(10)) from tblSampleTable, the resulting field is text and cannot be calculated in Excel. Is there a way I can combine the two, keeping the text field as varchar and the decimal field as decimal?
I have data results in a SQL database. The results can either be <1 or a numeric decimal value such as 1.2 or 20.75. The <1 are stores in the field TextValue and the actual results are stored in the field LabValue. I download these results to Excel for calculations. My clients want the results stored in one Excel column "Results" where the results are <1, 1.2, 20.75 and they can perform calculations. If I concatinate these two fields SELECT TextValue+CAST(LabValue as VARCHAR(10)) from tblSampleTable, the resulting field is text and cannot be calculated in Excel. Is there a way I can combine the two, keeping the text field as varchar and the decimal field as decimal?