从excel导入时SPSS奇怪的故障

时间:2017-03-28 23:39:57

标签: excel import spss

我正在努力减少我在SPSS中遇到的一个奇怪的数据故障的来源。当我导入我的数据时,第2列中每隔一行的情况(33-63的所有可能性)显示为空白(不丢失,但为空白)。在65之后,它开始连续显示3个空白,然后是一个记录,然后是3个空白,依此类推,最多100个记录(文件以100个记录结束。)

看起来像这样:

N   ID_1    F_Name  L_Name  ID_2
1   ABC1    First   Last    p1234567
2   ABC2    First   Last    p1234567
3   ABC3    First   Last    p1234567
4   ABC4    First   Last    p1234567
5   ABC5    First   Last    p1234567
6   ABC6    First   Last    p1234567
7   ABC7    First   Last    p1234567
8   ABC8    First   Last    p1234567
9   ABC9    First   Last    p1234567
10  ABC10   First   Last    p1234567
11  ABC11   First   Last    p1234567
12  ABC12   First   Last    p1234567
13  ABC13   First   Last    p1234567
14  ABC14   First   Last    p1234567
15  ABC15   First   Last    p1234567
16  ABC16   First   Last    p1234567
17  ABC17   First   Last    p1234567
18  ABC18   First   Last    p1234567
19  ABC19   First   Last    p1234567
20  ABC20   First   Last    p1234568
21  ABC21   First   Last    p1234569
22  ABC22   First   Last    p1234570
23  ABC23   First   Last    p1234571
24  ABC24   First   Last    p1234572
25  ABC25   First   Last    p1234573
26  ABC26   First   Last    p1234574
27  ABC27   First   Last    p1234575
28  ABC28   First   Last    p1234576
29  ABC29   First   Last    p1234577
30  ABC30   First   Last    p1234578
31  ABC31   First   Last    p1234579
32  ABC32   First   Last    p1234580
33          First   Last    p1234581
34  ABC34   First   Last    p1234582
35          First   Last    p1234583
36  ABC36   First   Last    p1234584
37          First   Last    p1234585
38  ABC38   First   Last    p1234586
39          First   Last    p1234587
40  ABC40   First   Last    p1234588
41          First   Last    p1234589
42  ABC42   First   Last    p1234590
43          First   Last    p1234591
44  ABC44   First   Last    p1234592
45          First   Last    p1234593
46  ABC46   First   Last    p1234594
47          First   Last    p1234595
48  ABC48   First   Last    p1234596
49          First   Last    p1234597
50  ABC50   First   Last    p1234598
51          First   Last    p1234599
52  ABC52   First   Last    p1234600
53          First   Last    p1234601
54  ABC54   First   Last    p1234602
55          First   Last    p1234603
56  ABC56   First   Last    p1234604
57          First   Last    p1234605
58  ABC58   First   Last    p1234606
59          First   Last    p1234607
60  ABC60   First   Last    p1234608
61          First   Last    p1234609
62  ABC62   First   Last    p1234610
63          First   Last    p1234611
64  ABC64   First   Last    p1234612
65          First   Last    p1234613
66          First   Last    p1234614
67          First   Last    p1234615
68  ABC68   First   Last    p1234616
69          First   Last    p1234617
70          First   Last    p1234618
71          First   Last    p1234619
72  ABC72   First   Last    p1234620
73          First   Last    p1234621
74          First   Last    p1234622
75          First   Last    p1234623
76  ABC76   First   Last    p1234624
77          First   Last    p1234625
78          First   Last    p1234626
79          First   Last    p1234627
80  ABC80   First   Last    p1234628
81          First   Last    p1234629
82          First   Last    p1234630
83          First   Last    p1234631
84  ABC84   First   Last    p1234632
85          First   Last    p1234633
86          First   Last    p1234634
87          First   Last    p1234635
88  ABC88   First   Last    p1234636
89          First   Last    p1234637
90          First   Last    p1234638
91          First   Last    p1234639
92  ABC92   First   Last    p1234640
93          First   Last    p1234641
94          First   Last    p1234642
95          First   Last    p1234643
96  ABC96   First   Last    p1234644
97          First   Last    p1234645
98          First   Last    p1234646
99          First   Last    p1234647
100 ABC100  First   Last    p1234648

我使用的是标准导入语法:

GET DATA
  /TYPE=XLS
  /FILE='Y:\RESEARCH UNIT\RESEARCH UNIT PROJECTS\DATA\2016\Quarter 1 (Jan - Mar 2016)\Working Files\WK-FILE ONE.xls'
  /SHEET=name 'Demographics'
  /CELLRANGE=full
  /READNAMES=on
  /ASSUMEDSTRWIDTH=32767.

我唯一的线索是创建ID_1的excel公式是“= CONCATENATE(G1,F1,A1)”。 SPSS在导入其他基于公式的值方面没有任何问题,但也许我遗漏了一些东西。

提前感谢任何有关于正在发生的事情的理论和修复它的方法,而不涉及手动更改原始的Excel文件!

1 个答案:

答案 0 :(得分:0)

您使用的是什么版本的统计信息?你安装了最新的fixpack吗? Excel文件无穷无尽。