ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

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

[2007] Question of few funtions

[复制链接]

TA的精华主题

TA的得分主题

发表于 2010-11-11 22:34 | 显示全部楼层 |阅读模式
Dear all, allowed me to use English to explain my confusions. I am working overseas, cannot type CHS by Company Computer.
I have been using Excel for my job only 3 month, there has already no people in my company can help me with this software. However, it is clear that I am only a fresh in the field. Therefore, please kindly help me without big laugh.
Okay, we are going to the point now. My confusion is :1.Vlookup is one of the most uesful funtion. However, it only searches the target from top to the button, and only picks up one number, so does Index/Match. Therefore, I was trying to use the Sumifs to summarize the results, in the cases of having duplicate targets. However, I found the sumif works does not accurate as Vlookup or index.
Sumif (<range>, <condition>, <results>), if the range array over the condition array, the result will be wrong. For example, I have 16 outlets; each of them has breakfast, lunch, dinner. All the outlets names are stored in column A, but according to the order of 1.covers, 2.food revenue, 3.beverage revenue and 4 other revenue. All the Revenue figures will be stored in the rest columns by months. So the sheets original Sheet will display like this:

Column A               Column B         Column C        Column D ……          Column X
Cover                        Jan                   Feb                   Mar……                    Total

Outlet1/breakfast        1111               2222                 3333                     =sum(B:x-1)
Outlet1/lunch                ….                  ….                     …..                             ….
….                                
Outlet16/dinner                                
                                
Food Revenue                                
Outlet1/lunch                                
Outlet1/dinner                                 
….                                
Outlet16/dinner                                
                                
Beverage Re                                
….                                

other Revenue                                
…..                                

Grand total                                

If I want to know how much is the Outlet 1’s total by using sumif, I have to choose the searching <range> against the <result> array. I mean one by one. If I choose the Column A as <range>array and choose some part of cells in Column X <result>array, say only cover part. The actually result will not return the only cover figures. Instead of that, it will return the correct figure by 4 times. I suppose that because the sumif not actually function like index or vlookup. It actually works like “pick up the results according to the order of which matchs the targets.” Therefore, in whole Column A, the Outlet 1’s name repeats for 12 times, so the results which returns 12/3=4 times. This happened when the 4 part layouts are all same, if the layout of this table is changed; the result will be very colourful.

Therefore, here comes the question. Is there any possiblity that summarize multiple targets in one formula? Which means can combaine both Sumif and Vlookup's advantage. Please give me the detail.

PS: Apologize again with English writting, I am in a hurry, therefore, if the writting confuse you, then I am terribly sorry. FYI, Our job is confidencental, so allow me can not uploading the real files,

Thanks and Best Regards

TA的精华主题

TA的得分主题

发表于 2010-11-13 12:30 | 显示全部楼层

〖Excel Home友情提示〗

   

很遗憾通知楼上朋友,您的帖子在24小时之内没有任何回复!

通常情况下,本论坛发布的主题帖会在8小时被回复或处理。您的帖子在24小时之内未被回复,其中的原因可能是

1、问题表述不清、模棱两可,难以理解,帮助者被搞晕了,夺帖而出;
2、没有上传必要的附件,或附件被遗忘在某个角落;
3、发帖提问时,语气带棱角、带挑衅,不幸被列入不受欢迎的帖子;
4、所提问题不成立,或提不合理的要求,乐于助人者使出“走为上”之计;
5、话题较偏、较冷或者发布到了不合适的版块,暂时无人问津,顾影自怜。


为了提高您的问题解决效率,我们推荐您阅读以下文章:
* 如何发表新话题和上传附件:http://club.excelhome.net/thread-45649-1-1.html
* 发帖的技巧:http://club.excelhome.net/thread-176339-1-1.html
* EH技术论坛的最佳学习方法:http://club.excelhome.net/thread-117862-1-1.html

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

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

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

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

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

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

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