ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

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

Hlookup与sum如何嵌套?

[复制链接]

TA的精华主题

TA的得分主题

发表于 2008-7-27 11:53 | 显示全部楼层 |阅读模式
<p><font face="Times New Roman" color="#3e1dc0" size="2">想向各位高手请教,我需要先用Hlookup查找到相应部门(如下: operation,finance,commercial),然后求该部门2008和2009数据和,用sum嵌套吗?该怎么设置公式,多谢!</font></p><p><table cellspacing="0" cellpadding="0" width="338" border="0" style="WIDTH: 254pt; BORDER-COLLAPSE: collapse;"><colgroup><font color="#3e1dc0"><col width="72" style="WIDTH: 54pt;"></col><col width="86" style="WIDTH: 65pt; mso-width-source: userset; mso-width-alt: 2752;"></col><col width="88" style="WIDTH: 66pt; mso-width-source: userset; mso-width-alt: 2816;"></col><col width="92" style="WIDTH: 69pt; mso-width-source: userset; mso-width-alt: 2944;"></col></font></colgroup><tbody><tr height="17" style="HEIGHT: 12.75pt;"><td class="xl22" width="72" height="17" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 54pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2"> </font></td><td class="xl22" width="86" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 65pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">Operation</font></td><td class="xl22" width="88" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 66pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">Finance</font></td><td class="xl22" width="92" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 69pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">Commercial</font></td></tr><tr height="17" style="HEIGHT: 12.75pt;"><td class="xl22" align="right" height="17" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">2007</font></td><td class="xl22" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">*****</font></td><td class="xl22" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">*****</font></td><td class="xl22" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">*****</font></td></tr><tr height="17" style="HEIGHT: 12.75pt;"><td class="xl22" align="right" height="17" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">2008</font></td><td class="xl22" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">*****</font></td><td class="xl22" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">*****</font></td><td class="xl22" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">*****</font></td></tr><tr height="17" style="HEIGHT: 12.75pt;"><td class="xl22" align="right" height="17" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">2009</font></td><td class="xl22" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">*****</font></td><td class="xl22" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">*****</font></td><td class="xl22" style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent;"><font face="Times New Roman" color="#3e1dc0" size="2">*****</font></td></tr></tbody></table></p><p><font color="#3e1dc0"></font></p><p></p>

TA的精华主题

TA的得分主题

发表于 2008-7-27 12:08 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助

回复:(HLEx)Hlookup与sum如何嵌套?

<p>=SUM(HLOOKUP(?部门,B1:C4,{3;4},))</p><p><font color="#aaaaaa">数组公式,按Ctrl+Shift+Enter结束。</font></p><p>=SUMproduct(HLOOKUP((?部门,B1:C4,{3;4},))</p><p>=SUMPRODUCT((B1:D1=部门)*B3:D4)</p>

TA的精华主题

TA的得分主题

 楼主| 发表于 2008-7-27 14:45 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
<p><font face="Times New Roman" color="#3e18d7" size="2">明白了,多谢帮忙!对数组和sumproduct还一知半解, 还要继续努力,多谢!</font></p>

TA的精华主题

TA的得分主题

发表于 2008-7-29 22:23 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
高深
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

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

GMT+8, 2024-12-26 02:49 , Processed in 0.029652 second(s), 7 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

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

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

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