Hi!
I have 3 columns:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]PRODUCTS[/TD]
[TD]SOLD[/TD]
[TD]DATE[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Y[/TD]
[TD]9/24/2013[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Y[/TD]
[TD]8/28/2013[/TD]
[/TR]
[TR]
[TD]Pear[/TD]
[TD]Y[/TD]
[TD]9/24/2013[/TD]
[/TR]
[TR]
[TD]Strawberry[/TD]
[TD]Y[/TD]
[TD]9/24/2013[/TD]
[/TR]
[TR]
[TD]Cherry[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Cherry[/TD]
[TD]Y[/TD]
[TD]9/24/2013[/TD]
[/TR]
[TR]
[TD]Grapes[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Grapes[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pear[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I need Excel to count only the products who appear once, that have been sold on the date that I write on cell D2.
So if I write on cell D2 the date 9/24/2013, I should get that only 1 product matches these criteria.
I'm using these formula:
={SUMPRODUCT((IFERROR(1/COUNTIF(products;products);0)*1*(sold = "Y")*1*(date=D2)*1);0)}
But it throws a 2, when there's only one product that matches these criteria.
- Of course, it's a matrix formula
- products, sold and date are the defined names for columns A, B and C
- Maybe I don't need a matrix formula?? I don't know...
Thanks a lot for your time and expertise!!
I have 3 columns:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]PRODUCTS[/TD]
[TD]SOLD[/TD]
[TD]DATE[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Y[/TD]
[TD]9/24/2013[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Y[/TD]
[TD]8/28/2013[/TD]
[/TR]
[TR]
[TD]Pear[/TD]
[TD]Y[/TD]
[TD]9/24/2013[/TD]
[/TR]
[TR]
[TD]Strawberry[/TD]
[TD]Y[/TD]
[TD]9/24/2013[/TD]
[/TR]
[TR]
[TD]Cherry[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Cherry[/TD]
[TD]Y[/TD]
[TD]9/24/2013[/TD]
[/TR]
[TR]
[TD]Grapes[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Grapes[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pear[/TD]
[TD]N[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I need Excel to count only the products who appear once, that have been sold on the date that I write on cell D2.
So if I write on cell D2 the date 9/24/2013, I should get that only 1 product matches these criteria.
I'm using these formula:
={SUMPRODUCT((IFERROR(1/COUNTIF(products;products);0)*1*(sold = "Y")*1*(date=D2)*1);0)}
But it throws a 2, when there's only one product that matches these criteria.
- Of course, it's a matrix formula
- products, sold and date are the defined names for columns A, B and C
- Maybe I don't need a matrix formula?? I don't know...
Thanks a lot for your time and expertise!!