Combining COUNTIFS with FREQUENCY?

chris32094

New Member
Joined
Nov 20, 2018
Messages
5
Hello!

I have the following set up

Column A - Date of Transaction
Column B - Transaction Number
Column C - Transaction Category ("Purchases", "20% Off Sale", "Employee 10% Off Discount", "Comp")
Column D - Item

For example:

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]11/15/18[/TD]
[TD]19816[/TD]
[TD]Purchase[/TD]
[TD]Candle[/TD]
[/TR]
[TR]
[TD]11/15/18[/TD]
[TD]19816[/TD]
[TD]Purchase[/TD]
[TD]Candle[/TD]
[/TR]
[TR]
[TD]11/15/18[/TD]
[TD]19817[/TD]
[TD]Comp[/TD]
[TD]Gloves[/TD]
[/TR]
[TR]
[TD]11/15/18[/TD]
[TD]19818[/TD]
[TD]20% Off Sale[/TD]
[TD]Hat[/TD]
[/TR]
[TR]
[TD]11/16/18[/TD]
[TD]19819[/TD]
[TD]Purchase[/TD]
[TD]Bath Bomb[/TD]
[/TR]
</tbody>[/TABLE]

I'm looking to create a formula that shows me the amount of receipts (B:B) within a given date range (A:A), excluding "Comp" transactions (C:C) WITHOUT DUPLICATES
So if I wanted to see the above for 11/15/18, the formula would return 2 transactions.

I've been trying to combine formulas but I can't seem to work out the addition of the FREQUENCY function.
Any assistance would be GREATLY appreciated.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF($A$2:$A$6="11/15/18"+0,IF(1-($C$2:$C$6="comp"),$B$2:$B$6)),$B$2:$B$6),1))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top