There are many ways to skin this cat. You can mix and match using the menu and doing things in VBA at every step. You could flip it by importing from excel, recording a macro, viewing the resulting vba and converting the result.
For you approach create the table with the yes/no type then insert the data then export. Even easier hit the make table tab and use a calculated field (the calculated field returns strings)
------------------------------------------------------------------------------------------------------------
| StarTrekOfficerID | StarTrekOfficerFirstName | StarTrekOfficerRank |
------------------------------------------------------------------------------------------------------------
| 1 | James | 1 |
------------------------------------------------------------------------------------------------------------
| 2 | Spock | 2 |
------------------------------------------------------------------------------------------------------------
| 3 | Leonard | 3 |
------------------------------------------------------------------------------------------------------------
SELECT StarTrekOfficers.StarTrekOfficerFirstName, IIf([StarTrekOfficers].[StarTrekOfficerRank]=1,'yes','no') AS isCaptain INTO temp
FROM StarTrekOfficers;
even easier there is no need to make the table. you can export a query:
SELECT StarTrekOfficers.StarTrekOfficerFirstName, IIf([StarTrekOfficers].[StarTrekOfficerRank]=1,'yes','no') AS isCaptain
FROM StarTrekOfficers;
yes/no is easy but for more complicated problems abstract the calculations to public functions and call the functions in the calculated field. if you put it all into one function then the return type of the calculated field would be the return type of that function.
Just right click whatever query or table you use and select export then excel. If you want to export using vba google docmd.Transferspreadsheet