Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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.

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.

enter image description here

enter image description here

like image 410
ArnoldB Avatar asked Nov 07 '22 22:11

ArnoldB


1 Answers

As answered by A.S.H in this comment:

Not sure I got it completely, but just to stimulate further clarification. How about adding *(ROOM = B4) to that SumProduct ?

like image 167
Bharat Anand Avatar answered Nov 27 '22 10:11

Bharat Anand