0
我有以下值電子表格:轉換縱向數據,以橫向數據(移調都不行)
CUST_ID, NAME, PHONE, EMAIL
0000, John Smith, 000-223-4567, [email protected]
0000, Ed Jones, 001-323-4567, [email protected]
0000, Frank Dill, 002-423-4567, [email protected]
0001, Rich Pickle, 003-523-4567, [email protected]
0001, Phil Burger, 004-623-4567, [email protected]
0001, Brian Mac, 005-723-4567, [email protected]
0002, Slick Whopper, 006-823-4567, [email protected]
0003, Name Finger, 007-923-4567, [email protected]
...
導入此表到Access,它寧願它外出時的水平基礎上CUST_ID(因爲形式的我對數據設置)
因此,電子表格應該是這個樣子......
CUST_ID, NAME_1, PHONE_1, EMAIL_1, NAME_2, PHONE_2, EMAIL_2, NAME_3, PHONE_3, EMAIL_3
0000, John Smith, 000-223-4567, [email protected], Ed Jones, 001-323-4567, [email protected], Frank Dill, 002-423-4567, [email protected]
0001, Rich Pickle, 003-523-4567, [email protected], Phil Burger, 004-623-4567, [email protected], Brian Mac, 005-723-4567, [email protected]
0003, Name Finger, 007-923-4567, [email protected]
我已經使用複製和粘貼方法手動移動了其中的50個,但還有150個要做,並且這種方式非常耗時。選擇性粘貼,轉方式,因爲當你這樣做的矩陣看起來像這樣...(每CUST_ID)不起作用
CUST_ID, N_1, P_1, E_1 N_1, N_2, N_3
CUST_ID, N_2, P_2, E_2 --------> P_1, P_2, P_3
CUST_ID, N_3, P_2, E_3 E_1, E_2, P_3
我需要它看起來就像這樣......
CUST_ID, N_1, P_1, E_1, N_2, P_2, E_2, N_3, P_3, E_3
從來沒有想過這樣的答案。我會放棄它。再次感謝! –