E
E Shelly
I am attempting to pull data from SQL data table into Excel for pivot table.
Field_1 is a value; always positive. Field_2 is a text flag; either "C"
or"D". Depending on the flag in Field_2; Field_1 is either positive or
negative. What is the format of the entry in Microsoft Query so that a
Field_3 can accurately be calculated?
In Excel I would entry =if(Field_2="D",Field_1,-Field_1).
Field_1 is a value; always positive. Field_2 is a text flag; either "C"
or"D". Depending on the flag in Field_2; Field_1 is either positive or
negative. What is the format of the entry in Microsoft Query so that a
Field_3 can accurately be calculated?
In Excel I would entry =if(Field_2="D",Field_1,-Field_1).