HVCompleto
New Member
- Joined
- Aug 28, 2017
- Messages
- 5
Hello! New user here!
I've been trying to figure out for a day and can't seem to find any help on any thread for this, so I decided to post a new one.
Below is the sample database for my problem. The final goal is to have a cell that returns the number of times a unique brand (Column A with no duplicates) is in Store (column B = YES) and with values below 0 (Column C <0).
So in this case, the cell should return 3!
[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl64, width: 64"]Brand[/TD]
[TD="class: xl64, width: 64"]In store?[/TD]
[TD="class: xl64, width: 64"] Value[/TD]
[/TR]
[TR]
[TD]3m[/TD]
[TD]yes[/TD]
[TD="align: right"]-300[/TD]
[/TR]
[TR]
[TD]3m[/TD]
[TD]no[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]3m[/TD]
[TD]yes[/TD]
[TD="align: right"]-233[/TD]
[/TR]
[TR]
[TD]3m[/TD]
[TD]no[/TD]
[TD="align: right"]200[/TD]
[/TR]
[TR]
[TD]aeg[/TD]
[TD]yes[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]aeg[/TD]
[TD]no[/TD]
[TD="align: right"]-200[/TD]
[/TR]
[TR]
[TD]aeg[/TD]
[TD]yes[/TD]
[TD="align: right"]-300[/TD]
[/TR]
[TR]
[TD]aeg[/TD]
[TD]no[/TD]
[TD="align: right"]-200[/TD]
[/TR]
[TR]
[TD]bosch[/TD]
[TD]yes[/TD]
[TD="align: right"]-100[/TD]
[/TR]
[TR]
[TD]bosch[/TD]
[TD]no[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]bosch[/TD]
[TD]yes[/TD]
[TD="align: right"]-50[/TD]
[/TR]
[TR]
[TD]bosch[/TD]
[TD]no[/TD]
[TD="align: right"]-500[/TD]
[/TR]
[TR]
[TD]osaka[/TD]
[TD]yes[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]osaka[/TD]
[TD]no[/TD]
[TD="align: right"]-20[/TD]
[/TR]
[TR]
[TD]osaka[/TD]
[TD]yes[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]osaka[/TD]
[TD]no[/TD]
[TD="align: right"]-100[/TD]
[/TR]
</tbody>[/TABLE]
I've been trying to figure out for a day and can't seem to find any help on any thread for this, so I decided to post a new one.
Below is the sample database for my problem. The final goal is to have a cell that returns the number of times a unique brand (Column A with no duplicates) is in Store (column B = YES) and with values below 0 (Column C <0).
So in this case, the cell should return 3!
[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl64, width: 64"]Brand[/TD]
[TD="class: xl64, width: 64"]In store?[/TD]
[TD="class: xl64, width: 64"] Value[/TD]
[/TR]
[TR]
[TD]3m[/TD]
[TD]yes[/TD]
[TD="align: right"]-300[/TD]
[/TR]
[TR]
[TD]3m[/TD]
[TD]no[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]3m[/TD]
[TD]yes[/TD]
[TD="align: right"]-233[/TD]
[/TR]
[TR]
[TD]3m[/TD]
[TD]no[/TD]
[TD="align: right"]200[/TD]
[/TR]
[TR]
[TD]aeg[/TD]
[TD]yes[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]aeg[/TD]
[TD]no[/TD]
[TD="align: right"]-200[/TD]
[/TR]
[TR]
[TD]aeg[/TD]
[TD]yes[/TD]
[TD="align: right"]-300[/TD]
[/TR]
[TR]
[TD]aeg[/TD]
[TD]no[/TD]
[TD="align: right"]-200[/TD]
[/TR]
[TR]
[TD]bosch[/TD]
[TD]yes[/TD]
[TD="align: right"]-100[/TD]
[/TR]
[TR]
[TD]bosch[/TD]
[TD]no[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]bosch[/TD]
[TD]yes[/TD]
[TD="align: right"]-50[/TD]
[/TR]
[TR]
[TD]bosch[/TD]
[TD]no[/TD]
[TD="align: right"]-500[/TD]
[/TR]
[TR]
[TD]osaka[/TD]
[TD]yes[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]osaka[/TD]
[TD]no[/TD]
[TD="align: right"]-20[/TD]
[/TR]
[TR]
[TD]osaka[/TD]
[TD]yes[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]osaka[/TD]
[TD]no[/TD]
[TD="align: right"]-100[/TD]
[/TR]
</tbody>[/TABLE]