我有一个大型的篮子信息数据集,在Excel中有唯一的发票号码。共有540380种产品属于24000多笔交易(篮子)。例如:
- InvoiceNo Description
- 536365 WHANG HANGING HEART T-LIGHT HOLDER
- 536365 WHITE METAL LANTERN
- 536365 CREAM CUPID HEARTS COAT HANGER
- 536365针织水袋热水壶
- 536365 RED WOOLLY HOTTIE白色心脏。
- 536365 SET 7 BABUSHKA NESTING BOXES
- 536365 GLASS STAR FROSTED T-LIGHT HOLDER
- 536366 HAND WARMER UNION JACK
- 536366 HAND WARMER RED POLKA DOT
- 536367彩色鸟类饰品
- 536367 POPPY' S PLAYHOUSE BEDROOM
- 536367 POPPY' S PLAYHOUSE KITCHEN
- 536367 FELTCRAFT PRINCESS CHARLOTTE DOLL
所有产品都按行列出。我只需要将具有相同唯一ID的每个事务列在多列中。实施例;
- 536365 - 白色金属灯笼,CREAM CUPID HEARTS COAT HANGER等
- 536367 - POPPY' S PLAYHOUSE KITCHEN,POPPY&PLAYHOUSE BEDROOM等
- 536366 - HAND WARMER UNION JACK,HAND WARMER RED POLKA DOT等
我尝试使用数据透视表转换它。结果我得到is like this
我试图以这种格式提供它; here