简体   繁体   English

带有If或count的Excel Sumproduct?

[英]Excel Sumproduct with If or count?

I am close to solving the formula, but stuck on excluding specific words and connecting that to a specific location in the formula. 我接近解决公式,但坚持排除特定的单词并将其连接到公式中的特定位置。 I am working with one dataset and need to do a count for a specific location, but exclude out certain names in that count. 我正在使用一个数据集,需要对特定位置进行计数,但排除该计数中的某些名称。 I need to exclude multiple words, but for example I want to exclude Classpass (1) Class , classpass , LAclasspass . 我需要排除多个单词,但是例如我想要排除Classpass (1) ClassclasspassLAclasspass But at the same time I want to make it specific for a location. 但与此同时,我想让它专门针对某个地点。

This is the formula I currently have. 这是我目前的公式。

=SUMPRODUCT((Series<>"1- One Class (ClassPass)")*(Series<>"Classpass (1) Class")*(Series<>"LA - ClassPass - 1 Class")*(Series<>""))

But How would I tie to a specific location. 但是我如何绑定到特定位置。 This only get me the total number from everything in the dataset. 这只能得到数据集中所有内容的总数。 Because in the data I have 30 different locatoins, but want to only count and exclude names for one specific studio at a time. 因为在数据中我有30个不同的locatoins,但是一次只计算和排除一个特定工作室的名称。

First image is the data and second image is the sheet where I want to do the formula and link to a specific location. 第一张图片是数据,第二张图片是我想要制作公式并链接到特定位置的工作表。 If I was not clear just ask me any follow up questions. 如果我不清楚,请问我任何后续问题。

在此输入图像描述

在此输入图像描述

As answered by ASH in this comment : 正如ASH在本评论中回答的那样

Not sure I got it completely, but just to stimulate further clarification. 不确定我是否已完全完成,只是为了进一步澄清。 How about adding *(ROOM = B4) to that SumProduct ? 如何在该SumProduct中添加*(ROOM = B4)?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM