IF function in Microsoft Query?

D

DES_Optima

I am attempting to pull data from SQL database into Excel using Microsoft
Query. Field_1 has either a "C" or "D" in it. Based up content I need to
either add or subtract Field_2. In Excel I would write the equation
=if(Field_1-"C",-Field_2,Field_2). What is the proper syntax to write this
equation in my Microsoft Query?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top