How to remove column from spss output? - spss

I have a doubt in spss?
When I was run a output I need to remove the one column "BASE" Please help me how to remove from the output.
If it is not possible and also help me how to remove from the excel.

Related

How to use conditional formatting on a whole column

I need some help with my Google Sheets guys. I want to know if there's a fast way to set conditional formatting on a whole column, like when I drag it down or copy and paste my rule "=AND(A1=B1)" to the line under to automatically turn in into "=AND(A2=B2)"?
Hope you guys can help me.
Thank you.
Just found the solution, it's just by adding a $ like this : "=AND($A1=$B1)"

Date column not ordering correctly

I have a sheet that i use to paste some information, the issue is that since i am pasting it and since the order from where i copy is in reverse (the newest from top) when i paste it i need to order it.
For some reason that i am not understanding it will not order it automatically, any idea why ?
I have already change the format of the column to the correct one, but even with that is not ordering correctly.
Any idea why and how to fix it with out messing with the sheet data... ?
This is an example of the sheet: sheet example here
Why
The datatype of the values is plaintext instead of date and Google Sheets is not able to automatically interpret the values as dates due to the comma.
How to fix
To fix this you could...
Before copying and pasting
When generating the date values, avoid to include the comma
After copying and pasting
Choose one of the following:
Use find and replace to remove the comma.
Use an auxiliary column with a formula like this:
=ArrayFormula(datevalue(substitute(A:A;",";""))+TIMEVALUE(substitute(A:A;",";"")))
Use Google Apps Script.

Changing the case of formula output

I'm using a JSON call to insert the city for a zip but the results are in all caps. The zip is in C2. Can I use PROPER to initial cap the results of the formula at the same time as the call so I don't have to run the formula on a different column? I know this is probably beginner stuff but, I can't figure it out.
This is what I'm using. I want to run PROPER at the same time.
=ImportJSON(CONCATENATE("http://ziptasticapi.com/",C2), "/city","noHeaders")
Have you tried:
=PROPER(ImportJSON(CONCATENATE("http://ziptasticapi.com/",C2), "/city","noHeaders"))

How can I export SPSS custom tables to a specific Excel sheet without the SPSS?

I want to put different custom tables to different sheets in Excel. I tried with OMS and OUTPUT EXPORT but that functions not do what I want. If somebody have idea I hope that will help me. :)
OUTPUT EXPORT has an OPERATION subcommand with options CREATEFILE / CREATESHEET / MODIFYSHEET from which you can route CTABLES to desired sheets in a target/new Excel file.
You'll need to organise your OUTPUT documents as you wish your sheets.
Exorting to Excel using OMS you can not route to a specific sheet only with OUTPUT EXPORT you can.
OUTPUT EXPORT can write different sheets, but it doesn't give you much flexibiity in the objects that get exported when using it via syntax. The syntax mode assumes that you are not going to be interactively selecting the tables.
However, the SPSSINC OUTPUT MODIFY extension command includes a customoutputfunctions.py module that has an excelexport function that will do what you want. Here is an example. For more information see the SPSSINC OUTPUT MODIFY documentation or the dialog (on Utilities once installed). Then look at the examples in the customoutputfunctions.py module.
SPSSINC MODIFY OUTPUT TABLES
/IF SUBTYPE="'Custom Table'" PROCESS=ALL
/CUSTOM FUNCTION="customoutputfunctions.excelexport(file='c:/temp/extest.xls',
sheet='table#',action='CreateWorksheet')".

Syntax to extract variable labels from SPSS file

I have hundreds of SPSS .sav files. For each one I want to extract the variable NAMES and variable LABELS as a two column table to a csv file. I know that this is straightforward by simply copying and pasting from the "Variable view" window, but I would really like to know how to do this using syntax. Is this possible?
Many thanks in advance for any help!
You might be interested in the GATHERMD extension command, It takes a wildcard for the file names and builds a dataset with three variables: the file name, the variable name, and the variable label. You could then just save that as a csv file.
This command requires the Python Essentials available with your Statistics installation or via the SPSS Community website (www.ibm.com/developerworks/spssdevcentral).
Using native Statistics syntax, DISPLAY DICTIONARY and CODEBOOK might be helpful, but they won't give you all this information in one table.

Resources