首页 \ 问答 \ SUMIF(S)与VLOOKUP(SUMIF(S) with VLOOKUP)

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
RegionB

and 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
更新时间:2023-12-16 21:12

最满意答案

将mod_wsgi升级到版本3.4.0修复了它。


An upgrade of mod_wsgi to version 3.4.0 fixed it.

相关问答

更多
  • 您是否阅读过任何实际的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'

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。