count formula for unique ids that meet multiple criteria

fgbdrum

New Member
Joined
Jul 22, 2010
Messages
5
hello,

my table looks like this:
table 1.PNG


i would like to use formulas to count the number of unique ids, based on org and recognition type. end result would look like this:
table 2.PNG


notice that id Z0044444, in org SHS SP, is only counted once in the point based reward column, even though this id received two separate awards. i only want it counted once. same with id Z0088888, in org SHS MM, in the point based reward to my direct reports column.

i've tried COUNTIFS combined with a SUMPRODUCT but that doesn't seem to be doing the trick. happy to post a sample workbook if that makes it easier.

thank you in advance for any tips.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi. It would be more useful and you would definitely get more/better responses if you didnt put images of your data in your post but tables that we can copy and paste into excel and test.
 
Upvote 0
Try:

Book1
ABCDEFGHIJ
1IDOrgRecognition_Type_NameOrgPoint-based Reward CertificatePoint-based Reward NominationPoint-based Reward to My Direct Reports
2Z0011111SHS ABCPoint-based Reward CertificateSHS ABC100
3Z0022222SHS DEPoint-based Reward CertificateSHS DE111
4Z0033333SHS AMPoint-based Reward NominationSHS AM011
5Z0044444SHS SPPoint-based Reward NominationSHS MM001
6Z0044444SHS SPPoint-based Reward NominationSHS RR000
7Z0022222SHS DEPoint-based Reward NominationSHS SP010
8Z0088888SHS MMPoint-based Reward to My Direct Reports
9Z0088888SHS MMPoint-based Reward to My Direct Reports
10Z0003333SHS AMPoint-based Reward to My Direct Reports
11Z0022222SHS DEPoint-based Reward to My Direct Reports
Sheet16
Cell Formulas
RangeFormula
H2:J7H2=SUM(SIGN(FREQUENCY(IF($B$2:$B$11=$G2,IF($C$2:$C$11=H$1,MATCH($A$2:$A$11,$A$2:$A$11,0))),ROW($A$2:$A$11)-ROW($A$2)+1)))
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.


And to Steve the Fish's point, check out the XL2BB button in the response box, which is what I just used.
 
Upvote 0
this worked beautifully. thank you, eric w. will use the xl2bb functionality in the future. thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,457
Members
449,083
Latest member
Ava19

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