keelaboosa
New Member
- Joined
- Apr 3, 2018
- Messages
- 35
I'm having a hard time with this, and I'd really appreciate some help.
I've got 8 compounds distributed across 4 containers. I need to see if there are any compounds for which the container is empty.
I can use =SUMPRODUCT(1/COUNTIFS(tbl[COMPOUND],tbl[COMPOUND])) to return number of distinct compounds, but I need to include a test for CONTAINER VOLUME too.
In the table below, compound F is the only distinct compound with a container volume of zero - I should get a count of 1. How would I write this formula?
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]COMPOUND
[/TD]
[TD]CONTAINER VOLUME
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]40
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]E
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]F
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]E
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]G
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]H
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]E
[/TD]
[TD]100
[/TD]
[/TR]
</tbody>[/TABLE]
I've got 8 compounds distributed across 4 containers. I need to see if there are any compounds for which the container is empty.
I can use =SUMPRODUCT(1/COUNTIFS(tbl[COMPOUND],tbl[COMPOUND])) to return number of distinct compounds, but I need to include a test for CONTAINER VOLUME too.
In the table below, compound F is the only distinct compound with a container volume of zero - I should get a count of 1. How would I write this formula?
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]COMPOUND
[/TD]
[TD]CONTAINER VOLUME
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]40
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]E
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]F
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]E
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]G
[/TD]
[TD]135
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]H
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]E
[/TD]
[TD]100
[/TD]
[/TR]
</tbody>[/TABLE]