ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 Excel Home精品图文教程库
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
300集Office 2010微视频教程 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
查看: 475|回复: 5

[求助] 同时操作多个表格,对不同表,同列,但是数量不同的数据求和

[复制链接]

TA的精华主题

TA的得分主题

发表于 2022-3-1 23:02 | 显示全部楼层 |阅读模式
同时操作多个表格,对不同表,同列,但是数量不同的数据求和。比如我现在有50个表格,同时对A列的数据,进行一个求和或者计数。表一A列10行数据,表二A列25个数据,一直到表50,50个工作表,对不同行数据,但是同列的数据,求和,有什么快捷方法不,不要一个一个表的打开,计算。

TA的精华主题

TA的得分主题

发表于 2022-5-6 17:11 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
sql连接,或者pq连接

TA的精华主题

TA的得分主题

发表于 2022-5-7 15:45 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
select * from [sheet1$] union all select * from [sheet2$] union all select * from [sheet3$] union all select * from [sheet4$] union all select * from [sheet5$] union all select * from [sheet6$] union all select * from [sheet7$] union all select * from [sheet8$] union all select * from [sheet9$] union all select * from [sheet10$] union all select * from [sheet11$] union all select * from [sheet12$] union all select * from [sheet13$] union all select * from [sheet14$] union all select * from [sheet15$] union all select * from [sheet16$] union all select * from [sheet17$] union all select * from [sheet18$] union all select * from [sheet19$] union all select * from [sheet20$] union all select * from [sheet21$] union all select * from [sheet22$] union all select * from [sheet23$] union all select * from [sheet24$] union all select * from [sheet25$] union all select * from [sheet26$]

TA的精华主题

TA的得分主题

发表于 2022-5-7 15:55 | 显示全部楼层
select * from [sheet1$] union all select * from [sheet2$] union all select * from [sheet3$] union all select * from [sheet4$] union all select * from [sheet5$] union all select * from [sheet6$] union all select * from [sheet7$] union all select * from [sheet8$] union all select * from [sheet9$] union all select * from [sheet10$] union all select * from [sheet11$] union all select * from [sheet12$] union all select * from [sheet13$] union all select * from [sheet14$] union all select * from [sheet15$] union all select * from [sheet16$] union all select * from [sheet17$] union all select * from [sheet18$] union all select * from [sheet19$] union all select * from [sheet20$] union all select * from [sheet21$] union all select * from [sheet22$] union all select * from [sheet23$] union all select * from [sheet24$] union all select * from [sheet25$] union all select * from [sheet26$] 这段代码是26个工作表中一次性提取数据,具体操作点击数据→现有连接→浏览找到所在数据工作表→勾选左下角首行----标题→确定→选数据透视表→点击属性→定义→在命令文本中输入上代码即可

TA的精华主题

TA的得分主题

 楼主| 发表于 2022-5-7 17:29 | 显示全部楼层

TA的精华主题

TA的得分主题

 楼主| 发表于 2022-5-7 17:30 | 显示全部楼层
fshhhf 发表于 2022-5-7 15:45
select * from [sheet1$] union all select * from [sheet2$] union all select * from [sheet3$] union al ...

感谢,大佬,我试试
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-5-5 20:11 , Processed in 0.040627 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表