王德宝,王德宝讲师,王德宝联系方式,王德宝培训师-【中华讲师网】
56
鲜花排名
0
鲜花数量
扫一扫加我微信
王德宝:Excel表格汇总工资问题:利用VLOOKUP函数与SUMIFS函数解决
2016-01-20 21239

Excel汇总问题:

表格1是每个人对应的工资,表格2是每个人对应的合同形式,表格3想求每种合同对应总工资。怎么样设计公式才能在表格3求和?

点击查看原图

 

德宝老师解答:

分类汇总求和利用sumifs函数是比较好的,但主要问题是数据是分布在表1和表2两张表中,因为有必要把两张表的数据合并为一张表,再利用函数来求和。

 

第一步:将表2的数据合并到表1中。

在C列添加"Status"列,然后在C4输入公式: =VLOOKUP(A4,$E$4:$F$20,2,0) ,下面的直接下拉填充公式即可。这样就能把每个员工属于哪种合同形式从表2中取到了。

 

第二步:汇总求和。

在I4输入公式: =SUMIFS($B$4:$B$20,$C$4:$C$20,H4) 。根据每种合同形式求和。

最后完成的结果如下:

点击查看原图


德宝老师博客原文:https://blog.debao.name/post-89.html?j=1

全部评论 (0)
热门领域讲师
互联网营销 互联网 新媒体运营 短视频 电子商务 社群营销 抖音快手 新零售 网络推广 领导力 管理技能 中高层管理 中层管理 团队建设 团队管理 高绩效团队 创新管理 数据加载错误
Message:Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source:System.Web
StackTrace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.Mvc.ViewPage.ProcessRequest(HttpContext context) at System.Web.Mvc.ViewUserControl.ViewUserControlContainerPage.ProcessRequest(HttpContext context) at System.Web.Mvc.ViewPage.RenderView(ViewContext viewContext) at System.Web.Mvc.ViewUserControl.RenderView(ViewContext viewContext) at System.Web.Mvc.WebFormView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at System.Web.Mvc.Html.SDRenderPartialExtensions.SDRenderPartial(HtmlHelper helper, String partialName, Object model, ViewDataDictionary viewData, Action`2 expFunc)
Message:Collection was modified; enumeration operation may not execute.
Source:mscorlib
StackTrace: at System.Collections.Generic.List`1.Enumerator.MoveNextRare() at ASP.views_space_spacerightbar_v2_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\webs\www.jiangshi.com_81\Views\Space\SpaceRightBar_v2.ascx:line 52 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Copyright©2008-2025 版权所有 浙ICP备06026258号-1 浙公网安备 33010802003509号 杭州讲师网络科技有限公司
讲师网 www.jiangshi.org 直接对接10000多名优秀讲师-省时省力省钱
讲师网常年法律顾问:浙江麦迪律师事务所 梁俊景律师 李小平律师