SUMIF(S)与VLOOKUP(SUMIF(S) with VLOOKUP)
我试图使用带有sumif函数的VLOOKUP函数。
我有一个下拉框,其中包含一个名称列表,以及一系列组合。
例如:
Salesman1 Salesman2 Salesman3 Salesman4 Salesman5 Salesman6 RegionA RegionB以及一个包含销售人员和部门名单的边桌:例如:
RegionA Salesman1 RegionB Salesman2 RegionB Salesman3 RegionB Salesman4 RegionA Salesman5 RegionB Salesman6(如果需要,可以交换此列表)
我想总结一下这些地区的推销员总数。 我可以使用个人推销员来总结
=SUMIFS(Data,$C$C,DateTest,$D$D,Salesman Value)
但是我希望看到有关地区的总结。 数据来自其他地方,并且长度可变,因此难以创建辅助列
我正在考虑vlookup的一些东西,但我无法让它工作
=SUMIFS(Data,$C$C,DateTest,$D$D,ISNA(VLOOKUP(Salesman Value,Table!Regions,2,FALSE)))
澄清:下拉列表包含销售人员和地区,我希望能够两种方式相加(为清晰起见,公式分开)
IF(UPPER(LEFT($B$3,3))="REG", SUMIFS(Sheet1!$H:$H,Sheet1!$J:$J,RegionTest,Sheet1!$G:$G,TEXT($E18,"yyyy-mm")), SUMIFS(Sheet1!$H:$H,Sheet1!$J:$J,$B$3,Sheet1!$G:$G,TEXT($E18,"yyyy-mm")))
I am trying to use the VLOOKUP function with a sumif function.
I have a drop down box that has a list of names, combined with a list of combinations.
e.g.:
Salesman1 Salesman2 Salesman3 Salesman4 Salesman5 Salesman6 RegionA RegionBand a side table that has a list of salesmen and regoins: e.g.:
RegionA Salesman1 RegionB Salesman2 RegionB Salesman3 RegionB Salesman4 RegionA Salesman5 RegionB Salesman6(This list can be swapped if needed)
I would like to sum up the totals of Salesmen in the regions. I can sumif using the individual salesmen
=SUMIFS(Data,$C$C,DateTest,$D$D,Salesman Value)
but I'd like to see a sumif on region. The data comes from somewhere else, and is variable in length, so a helper column would be difficult to create
I was thinking of something along the lines of vlookup, but I can't get it to work
=SUMIFS(Data,$C$C,DateTest,$D$D,ISNA(VLOOKUP(Salesman Value,Table!Regions,2,FALSE)))
clarification: The dropdown contains both salesmen and regions, and I wish to be able to sum both ways (formula split for clarity)
IF(UPPER(LEFT($B$3,3))="REG", SUMIFS(Sheet1!$H:$H,Sheet1!$J:$J,RegionTest,Sheet1!$G:$G,TEXT($E18,"yyyy-mm")), SUMIFS(Sheet1!$H:$H,Sheet1!$J:$J,$B$3,Sheet1!$G:$G,TEXT($E18,"yyyy-mm")))
原文:https://stackoverflow.com/questions/16280438
最满意答案
将mod_wsgi升级到版本3.4.0修复了它。
An upgrade of mod_wsgi to version 3.4.0 fixed it.
相关问答
更多-
配置wsgi python(configure wsgi python)[2022-12-14]
您是否阅读过任何实际的mod_wsgi文档或观看有关它的演示文稿: http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_Presentations 您要么从未设置WSGIScriptAlias,要么没有正确启用Apache的站点来读取它或没有重新启动Apache。 Have you read any ... -
我在wsgi.py的顶部 os.path.join(os.environ['OPENSHIFT_HOMEDIR'], 'app-root/repo') 我没有这个错误! 我还将我的所有代码放在具有项目名称的文件夹下以便匹配 os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings' I had on the top of wsgi.py os.path.join(os.environ['OPENSHIFT_HOMEDIR'], 'app-root/ ...
-
不,你不能。 这在mod_wsgi文档中的不同位置进行了解释。 您的mod_wsgi需要针对Python 3.6进行编译。 如果您的系统软件包已过期,因为它们适用于所有操作系统发行版,请卸载它们并自行从源代码编译mod_wsgi。 建议您使用pip方法针对您需要的Python版本构建mod_wsgi,然后使用mod_wsgi-express ,或者使用mod_wsgi-express module-config配置系统Apache以使用由pip install构建的mod_wsgi-express modu ...
-
将mod_wsgi升级到版本3.4.0修复了它。 An upgrade of mod_wsgi to version 3.4.0 fixed it.
-
在你的情况下: WSGIPythonPath /home/miketnc/frontend/tncsite 是冗余的,因为您在WSGI脚本文件中设置sys.path。 你缺少的是添加网站的父目录: sys.path.append('/home/miketnc/frontend') 这是添加'/ home / miketnc / frontend / tncsite'的现有行的补充。 读: http://code.google.com/p/modwsgi/wiki/IntegrationWithDjang ...
-
python2.7 manage.py collectstatic工作。 感谢评论的显示名称 python2.7 manage.py collectstatic worked. Thanks to Display Name for the comment
-
您的Apache安装可能设置为以SECURE权限模式运行。 这意味着在处理请求之前,Apache子工作进程是分叉的并且权限被删除,在这种情况下,这只是尝试将请求代理到mod_wsgi守护进程。 这样做的结果是它无法连接到守护进程的套接字,因为它设置了所有权以在删除权限之前匹配原始Apache子工作进程。 这是显而易见的,因为错误消息的uid在普通用户的范围内,而不是特殊的apache或nobody用户。 要修复它,您需要修改WSGIDaemonProcess指令配置并添加选项: socket-user=#3 ...
-
要回答具体的问题,不可以为一个Python版本编译的mod_wsgi安装在运行时使用不同的版本。 为什么不为源代码编译时遇到的实际问题创建单独的问题。 最好还是在mod_wsgi邮件列表上提问,可以找到帮助你的最佳人选。 To answer the specific question, no it is not possible to make a mod_wsgi installation compiled for one Python version to use a different version ...
-
wsdl.py: import os, sys sys.path.append('/home/jgoldstick/code/learn') sys.path.append('/home/jgoldstick/code/learn/myapp') os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSG ...
-
DJANGO_SETTINGS_MODULE应该是一个模块,顾名思义,而不是路径。 os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp_directory.settings' DJANGO_SETTINGS_MODULE should be a module, as the name implies, not a path. os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp_directory.settings'