Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 216485

Sum/Count of distinct column values based on another column

$
0
0

Hello experts,

 

I have a table with Bill # and item name as follows: 

Input.pngThe values for the column Item_Name are coming from a different table via VLOOKUP. I am trying to sum/count all the distinct items per bill

example: Bill 2 has 5 items: 3 Apple, 1 Mango, 1 Peach so the count/sum of distinct Item in Bill 2 = 1+1+1 = 3.

 

So the final result should look like the below table:

Result.png

I read various articles and references on disticnt count, count of count, but nothing has worked for me. Appreciate all your help. Thanks in Advance!

 

 


Viewing all articles
Browse latest Browse all 216485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>