Counting unique deals with multiple criteria

confused in Frankfurt

Board Regular
Joined
Oct 11, 2010
Messages
53
Deal IDSales RepQuarterValueProduct
0087060

<tbody>
</tbody>
Fred Blogs41.000bread
0087060

<tbody>
</tbody>
Fred Blogs420.000butter
0087061

<tbody>
</tbody>
Fred Blogs345.000bread
0087763

<tbody>
</tbody>
John Smith430.000bread
0087763

<tbody>
</tbody>
John Smith445.000butter
0088163

<tbody>
</tbody>
Fred Blogs450.000bread

<tbody>
</tbody>
Hi I have a table where each deal is split into products. I would like to count the number of deals per person restricting to Q4 and >=50.000. Preferably I would like to do this without creating an extra table reducing out the duplicates by ignoring the product.
Result should be : Fred Blogs 1 and John Smith 1 (30+45)

If I am ignoring the duplicates and counting just every thing I am using the formula
=countifs(Range1;...)

but this is either giving me too many deals to use for calculating average deal size or too few because the split deal value is below the benchmark set.
Regards
Sarah
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi! If you're happy to have a new column, you could use the following (assuming deal ID is in col A and value is in Col D)

=IF(A2=A3,"",IF(SUMIF($A$2:A3,MAX($A$2:A3),$D$2:D3)<50000,"",SUMIF($A$2:A3,MAX($A$2:A3),$D$2:D3)))

Then put a count at the bottom of this new column. This formula should mean that if the sum of the value for a given deal ID is < 50,000, it should return ""; if not, it returns the sum of the deal value.

Hope this helps - let me know if this needs refining further.
 
Upvote 0
Hi there,
the formula didn't return anything. Had to adjust to the German formula but pulled up just blanks. Not even an error.
=WENN(A2=A3;"";WENN(SUMMEWENN($A$2:A3;MAX($A$2:A3);$I$2:I3)<50000;"";SUMMEWENN($A$2:A3;MAX($A$2:A3);$I$2:I3)))

What I forgot to mention is that the deals are not just split into 1 or two there can be multiple products sold.

I am assuming that I would then write the end formula checking for the arguments based on the new column - if it returned an answer.
 
Upvote 0

Forum statistics

Threads
1,215,436
Messages
6,124,869
Members
449,192
Latest member
MoonDancer

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