{"id":137685,"date":"2024-04-28T12:57:25","date_gmt":"2024-04-28T04:57:25","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/137685.html"},"modified":"2024-04-28T12:57:29","modified_gmt":"2024-04-28T04:57:29","slug":"excel%e8%a1%a8%e6%a0%bc%e5%a6%82%e4%bd%95%e6%a8%aa%e7%ba%b5%e8%bd%ac%e6%8d%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/137685.html","title":{"rendered":"excel\u8868\u683c\u5982\u4f55\u6a2a\u7eb5\u8f6c\u6362"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24133751\/68f412df-53f8-43b7-a68b-816597000238.webp\" alt=\"excel\u8868\u683c\u5982\u4f55\u6a2a\u7eb5\u8f6c\u6362\" \/><\/p>\n<p><p>Excel\u8868\u683c\u7684\u6a2a\u7eb5\u8f6c\u6362\u4e3b\u8981\u6d89\u53ca\u201c\u590d\u5236\u4e0e\u8f6c\u7f6e\u529f\u80fd\u201d\u3001&quot;\u4f7f\u7528\u8f6c\u7f6e\u51fd\u6570&quot;\u3001&quot;\u4f7f\u7528\u7acb\u65b9\u51fd\u6570&quot; \u3002\u8f6c\u7f6e\u529f\u80fd\u53ef\u4ee5\u8ba9\u6570\u636e\u4ece\u884c\u8f6c\u5230\u5217\u6216\u4ece\u5217\u8f6c\u5230\u884c\uff0c\u662f\u6570\u636e\u91cd\u7ec4\u7684\u6709\u6548\u624b\u6bb5\u3002\u590d\u5236\u548c\u7c98\u8d34\u529f\u80fd\u4e2d\u7684\u201c\u8f6c\u7f6e\u201d\u7279\u522b\u7b80\u4fbf\uff1a\u9996\u5148\u9009\u62e9\u5e76\u590d\u5236\u539f\u59cb\u6570\u636e\uff0c\u7136\u540e\u9009\u62e9\u76ee\u6807\u533a\u57df\uff0c\u53f3\u952e\u70b9\u51fb\u9009\u62e9\u201c\u7c98\u8d34\u7279\u6b8a\u201d\uff0c\u5e76\u9009\u62e9\u201c\u8f6c\u7f6e\u201d\u9009\u9879\u5373\u53ef\u5b8c\u6210\u6570\u636e\u7684\u6a2a\u7eb5\u8f6c\u6362\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u5904\u7406\u9759\u6001\u6570\u636e\u65f6\u975e\u5e38\u65b9\u4fbf\u5feb\u6377\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u590d\u5236\u4e0e\u7c98\u8d34\u8f6c\u7f6e<\/h3>\n<\/p>\n<p><p>Excel\u4e2d\u6700\u5e38\u89c1\u7684\u6a2a\u7eb5\u8f6c\u6362\u65b9\u5f0f\u662f\u901a\u8fc7\u590d\u5236\u4e0e\u7c98\u8d34\u529f\u80fd\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u5e76\u590d\u5236\u6570\u636e<\/strong><br \/>\u9009\u4e2d\u9700\u8981\u8f6c\u7f6e\u7684\u6570\u636e\u533a\u57df\uff0c\u4f7f\u7528\u5feb\u6377\u952eCtrl+C\u6216\u8005\u53f3\u952e\u9009\u62e9\u201c\u590d\u5236\u201d\u6765\u590d\u5236\u6570\u636e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7c98\u8d34\u5e76\u8f6c\u7f6e\u6570\u636e<\/strong><br \/>\u79fb\u52a8\u5230\u5e0c\u671b\u653e\u7f6e\u8f6c\u7f6e\u6570\u636e\u7684\u65b0\u4f4d\u7f6e\uff0c\u53f3\u952e\u70b9\u51fb\u5f39\u51fa\u83dc\u5355\uff0c\u5e76\u9009\u62e9\u201c\u7c98\u8d34\u7279\u6b8a\u201d\u3002\u5728\u51fa\u73b0\u7684\u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9\u201c\u8f6c\u7f6e\u201d\u590d\u9009\u6846\uff0c\u7136\u540e\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u8fd9\u6837\u5c31\u5b8c\u6210\u4e86\u6570\u636e\u4ece\u884c\u5230\u5217\u6216\u4ece\u5217\u5230\u884c\u7684\u8f6c\u7f6e\u3002\u8bf7\u6ce8\u610f\uff0c\u539f\u59cb\u6570\u636e\u548c\u8f6c\u7f6e\u540e\u7684\u6570\u636e\u662f\u65ad\u5f00\u7684\uff0c\u4e4b\u540e\u5bf9\u539f\u6570\u636e\u7684\u4efb\u4f55\u4fee\u6539\u90fd\u4e0d\u4f1a\u81ea\u52a8\u53cd\u6620\u5728\u8f6c\u7f6e\u540e\u7684\u6570\u636e\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u8f6c\u7f6e\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u5e0c\u671b\u8f6c\u7f6e\u540e\u7684\u6570\u636e\u80fd\u591f\u52a8\u6001\u5730\u53cd\u6620\u539f\u6570\u636e\u7684\u66f4\u6539\uff0c\u53ef\u4ee5\u4f7f\u7528Excel\u7684\u8f6c\u7f6e\u51fd\u6570\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528\u8f6c\u7f6e\u51fd\u6570<\/strong><\/p>\n<p>\u516c\u5f0f\u4e3a <code>=TRANSPOSE(\u6570\u7ec4)<\/code>\uff0c\u4f60\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u548c\u539f\u59cb\u6570\u636e\u884c\u5217\u6570\u76f8\u53cd\u7684\u533a\u57df\uff0c\u8f93\u5165\u8f6c\u7f6e\u51fd\u6570\u7136\u540e\u6309\u4e0bCtrl+Shift+Enter\u6765\u6fc0\u6d3b\u6570\u7ec4\u516c\u5f0f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6570\u7ec4\u8303\u56f4\u9009\u62e9<\/strong><\/p>\n<p>\u5728\u8f6c\u7f6e\u6570\u636e\u8f93\u51fa\u7684\u65f6\u5019\uff0c\u786e\u4fdd\u9009\u5b9a\u7684\u65b0\u533a\u57df\u4e0e\u539f\u6570\u636e\u7684\u884c\u5217\u6570\u5bf9\u5e94\u76f8\u53cd\uff0c\u5373\u5982\u679c\u539f\u6570\u636e\u662f5\u884c3\u5217\uff0c\u8f6c\u7f6e\u540e\u7684\u533a\u57df\u5e94\u8be5\u9009\u62e93\u884c5\u5217\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u8fd9\u91cc\u9700\u8981\u7279\u522b\u6ce8\u610f\u7684\u662f\uff0c\u4f7f\u7528\u8f6c\u7f6e\u51fd\u6570\u540e\uff0c\u8f6c\u7f6e\u540e\u7684\u6570\u636e\u533a\u57df\u4f1a\u548c\u539f\u6570\u636e\u5efa\u7acb\u52a8\u6001\u5173\u8054\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u5f53\u539f\u59cb\u6570\u636e\u66f4\u65b0\u65f6\uff0c\u8f6c\u7f6e\u540e\u7684\u6570\u636e\u4e5f\u4f1a\u81ea\u52a8\u66f4\u65b0\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Power Query\u8f6c\u7f6e\u6570\u636e<\/h3>\n<\/p>\n<p><p><strong>Power Query<\/strong>\u662f\u9ad8\u7ea7\u6570\u636e\u5904\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u8fdb\u884c\u66f4\u590d\u6742\u7684\u6570\u636e\u8f6c\u6362\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6570\u636e\u52a0\u8f7d\u5230Power Query<\/strong><br \/>\u9996\u5148\uff0c\u9009\u4e2d\u9700\u8981\u8f6c\u7f6e\u7684\u6570\u636e\uff0c\u7136\u540e\u5728\u201c\u6570\u636e\u201d\u9009\u9879\u5361\u4e2d\u9009\u62e9\u201c\u4ece\u8868\/\u533a\u57df\u83b7\u53d6\u6570\u636e\u201d\uff0c\u52a0\u8f7d\u5230Power Query\u7f16\u8f91\u5668\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5728Power Query\u4e2d\u8f6c\u7f6e\u6570\u636e<\/strong><br \/>\u5728Power Query\u7f16\u8f91\u5668\u4e2d\uff0c\u4f7f\u7528\u201c\u8f6c\u7f6e\u201d\u6309\u94ae\u53ef\u4ee5\u5c06\u5217\u53d8\u4e3a\u884c\uff0c\u6216\u5c06\u884c\u53d8\u4e3a\u5217\u3002\u5b8c\u6210\u8f6c\u6362\u540e\uff0c\u70b9\u51fb\u201c\u5173\u95ed\u5e76\u52a0\u8f7d\u201d\uff0c\u8f6c\u7f6e\u540e\u7684\u8868\u683c\u4f1a\u4f5c\u4e3a\u4e00\u4e2a\u65b0\u5de5\u4f5c\u8868\u52a0\u5165\u5230\u5f53\u524d\u7684Excel\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>Power Query\u63d0\u4f9b\u7684\u8f6c\u7f6e\u529f\u80fd\u975e\u5e38\u5f3a\u5927\uff0c\u4e0d\u4ec5\u80fd\u591f\u5904\u7406\u57fa\u672c\u7684\u8f6c\u7f6e\u9700\u6c42\uff0c\u800c\u4e14\u80fd\u591f\u5e94\u5bf9\u5305\u542b\u4e0d\u89c4\u5219\u8868\u683c\u3001\u591a\u4e2a\u5c42\u6b21\u7684\u8868\u5934\u7b49\u590d\u6742\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u5b8f\u548cVBA\u4ee3\u7801\u8fdb\u884c\u8f6c\u7f6e<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u719f\u6089\u5b8f\u548cVBA\u7684\u7528\u6237\u6765\u8bf4\uff0c<strong>Excel\u63d0\u4f9b\u4e86\u66f4\u4e3a\u7075\u6d3b\u7684\u6570\u636e\u5904\u7406\u80fd\u529b<\/strong>\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f16\u5199VBA\u4ee3\u7801<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u7b80\u5355\u7684VBA\u811a\u672c\u6765\u5b9e\u73b0\u6570\u636e\u7684\u8f6c\u7f6e\u3002\u8fd9\u901a\u8fc7\u7f16\u5199\u4e00\u4e2a\u5faa\u73af\u6765\u904d\u5386\u539f\u59cb\u8303\u56f4\u7684\u6bcf\u4e2a\u5355\u5143\u683c\uff0c\u5e76\u5c06\u5176\u503c\u653e\u7f6e\u5230\u65b0\u7684\u3001\u8f6c\u7f6e\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u5b8f<\/strong><br \/>\u5b8f\u7f16\u5199\u5b8c\u6210\u540e\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u5b8f\u6765\u81ea\u52a8\u6267\u884c\u8f6c\u7f6e\u7684\u64cd\u4f5c\uff0c\u8fd9\u5728\u9700\u8981\u9891\u7e41\u8f6c\u6362\u5927\u91cf\u6570\u636e\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528VBA\u8fdb\u884c\u6570\u636e\u8f6c\u7f6e\u53ef\u4ee5\u8ba9\u4f60\u5b8c\u5168\u638c\u63e1\u6570\u636e\u8f6c\u6362\u7684\u8fc7\u7a0b\uff0c\u5e76\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5b9a\u5236\u8f6c\u7f6e\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><p>\u7efc\u5408\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u5177\u4f53\u60c5\u51b5\u548c\u9700\u6c42\uff0c\u9009\u62e9\u6700\u9002\u5408\u7684Excel\u8868\u683c\u6a2a\u7eb5\u8f6c\u6362\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u628aExcel\u8868\u683c\u4e2d\u7684\u5217\u6570\u636e\u8f6c\u6362\u4e3a\u884c\u6570\u636e\uff1f<\/strong><\/p>\n<p>\u6a2a\u7eb5\u8f6c\u6362\u662f\u4e00\u79cd\u5c06Excel\u8868\u683c\u4e2d\u7684\u5217\u6570\u636e\u8f6c\u6362\u4e3a\u884c\u6570\u636e\u7684\u65b9\u6cd5\u3002\u8981\u5b9e\u73b0\u6a2a\u7eb5\u8f6c\u6362\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li>\u9009\u62e9\u8981\u8f6c\u6362\u7684\u6570\u636e\u533a\u57df\uff0c\u5305\u62ec\u8868\u5934\u548c\u6240\u6709\u6570\u636e\u3002<\/li>\n<li>\u590d\u5236\u9009\u5b9a\u7684\u6570\u636e\u533a\u57df\u3002<\/li>\n<li>\u5728\u76ee\u6807\u4f4d\u7f6e\u4e0a\u53f3\u952e\u5355\u51fb\uff0c\u5e76\u9009\u62e9\u201c\u7279\u6b8a\u7c98\u8d34\u201d\u9009\u9879\u3002<\/li>\n<li>\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9\u201c\u8f6c\u7f6e\u201d\u9009\u9879\uff0c\u5e76\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u6309\u94ae\u3002<\/li>\n<li>\u8fd9\u6837\uff0c\u539f\u672c\u7684\u5217\u6570\u636e\u5c31\u4f1a\u53d8\u6210\u884c\u6570\u636e\uff0c\u540c\u6837\uff0c\u539f\u672c\u7684\u884c\u6570\u636e\u4e5f\u53ef\u4ee5\u8f6c\u6362\u4e3a\u5217\u6570\u636e\u3002<\/li>\n<\/ul>\n<p><strong>2. \u5982\u4f55\u901a\u8fc7Excel\u516c\u5f0f\u5b9e\u73b0\u6a2a\u7eb5\u8f6c\u6362\uff1f<\/strong><\/p>\n<p>\u9664\u4e86\u4f7f\u7528\u590d\u5236\u548c\u7c98\u8d34\u7684\u65b9\u5f0f\u8f6c\u6362Excel\u8868\u683c\u4e2d\u7684\u6570\u636e\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u516c\u5f0f\u6765\u5b9e\u73b0\u6a2a\u7eb5\u8f6c\u6362\u3002\u4e0b\u9762\u662f\u4e00\u79cd\u5e38\u7528\u7684\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>\u5047\u8bbe\u8981\u5c06\u5217\u6570\u636e\u8f6c\u6362\u4e3a\u884c\u6570\u636e\uff0c\u5728\u76ee\u6807\u4f4d\u7f6e\u7684\u7b2c\u4e00\u4e2a\u5355\u5143\u683c\u8f93\u5165\u4ee5\u4e0b\u516c\u5f0f\uff1a=\u8f6c\u7f6e(\u8981\u8f6c\u6362\u7684\u6570\u636e\u533a\u57df)<\/li>\n<li>\u6309\u4e0b\u56de\u8f66\u952e\u540e\uff0c\u516c\u5f0f\u4f1a\u5c06\u5217\u6570\u636e\u8f6c\u6362\u4e3a\u884c\u6570\u636e\u5e76\u663e\u793a\u5728\u76ee\u6807\u5355\u5143\u683c\u4e2d\u3002<\/li>\n<li>\u5982\u679c\u8981\u8f6c\u6362\u7684\u6570\u636e\u533a\u57df\u6709\u591a\u5217\u6570\u636e\uff0c\u53ef\u4ee5\u5c06\u516c\u5f0f\u590d\u5236\u5e76\u7c98\u8d34\u5230\u76ee\u6807\u8303\u56f4\u7684\u5176\u4ed6\u5355\u5143\u683c\u4e2d\uff0c\u4ee5\u663e\u793a\u6240\u6709\u7684\u8f6c\u6362\u6570\u636e\u3002<\/li>\n<\/ul>\n<p><strong>3. \u5982\u4f55\u4f7f\u7528Excel\u7684\u8f6c\u7f6e\u529f\u80fd\u8fdb\u884c\u6a2a\u7eb5\u8f6c\u6362\uff1f<\/strong><\/p>\n<p>Excel\u63d0\u4f9b\u4e86\u4e00\u4e2a\u65b9\u4fbf\u7684\u8f6c\u7f6e\u529f\u80fd\uff0c\u53ef\u4ee5\u76f4\u63a5\u5b9e\u73b0\u6a2a\u7eb5\u8f6c\u6362\uff0c\u800c\u65e0\u9700\u624b\u52a8\u590d\u5236\u548c\u7c98\u8d34\u3002\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u4f7f\u7528\u8f6c\u7f6e\u529f\u80fd\uff1a<\/p>\n<ul>\n<li>\u9009\u62e9\u8981\u8f6c\u6362\u7684\u6570\u636e\u533a\u57df\uff0c\u5305\u62ec\u8868\u5934\u548c\u6240\u6709\u6570\u636e\u3002<\/li>\n<li>\u70b9\u51fbExcel\u83dc\u5355\u680f\u4e2d\u7684\u201c\u5f00\u59cb\u201d\u9009\u9879\u5361\uff0c\u7136\u540e\u5728\u526a\u8d34\u677f\u7ec4\u4e2d\u627e\u5230\u201c\u8f6c\u7f6e\u201d\u56fe\u6807\u3002<\/li>\n<li>\u5355\u51fb\u201c\u8f6c\u7f6e\u201d\u56fe\u6807\u540e\uff0cExcel\u4f1a\u81ea\u52a8\u5c06\u5217\u6570\u636e\u8f6c\u6362\u4e3a\u884c\u6570\u636e\uff0c\u5e76\u5c06\u7ed3\u679c\u663e\u793a\u5728\u65b0\u7684\u4f4d\u7f6e\u4e0a\u3002<\/li>\n<\/ul>\n<p>\u8f6c\u7f6e\u529f\u80fd\u53ef\u4ee5\u5feb\u901f\u3001\u6709\u6548\u5730\u5b9e\u73b0\u6a2a\u7eb5\u8f6c\u6362\uff0c\u662f\u5904\u7406Excel\u8868\u683c\u6570\u636e\u7684\u6709\u7528\u5de5\u5177\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Excel\u8868\u683c\u7684\u6a2a\u7eb5\u8f6c\u6362\u4e3b\u8981\u6d89\u53ca\u201c\u590d\u5236\u4e0e\u8f6c\u7f6e\u529f\u80fd\u201d\u3001&quot;\u4f7f\u7528\u8f6c\u7f6e\u51fd\u6570&quot;\u3001&quot;\u4f7f\u7528\u7acb\u65b9 [&hellip;]","protected":false},"author":3,"featured_media":137692,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/137685"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=137685"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/137685\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/137692"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=137685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=137685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=137685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}