Is this possible?

dhx10000

Board Regular
Joined
Jul 11, 2005
Messages
144
Is there any way to count the value of one column based on if another column is unique? For example, I have a column called 'Issue ID' that is a numeric value that is sometimes repeated because each record that is entered in this application can be modified. So the database keeps a tally of what has been modified on the record by duplicating the record every time it is modified. The problem is there is another field called 'Status', with either an 'Open' or 'Closed' value. I need to count all 'Open' statuses but make sure I count it for only one unique 'Issue ID'.

Example:
Issue ID---------Status
3 Open
3 Open
3 Open
4 Closed
5 Closed
5 Open
-----------------------------

So the correct value of 'Open' statuses would be 2.

Hope that makes sense,

Sal
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
dhx10000 said:
Is there any way to count the value of one column based on if another column is unique? For example, I have a column called 'Issue ID' that is a numeric value that is sometimes repeated because each record that is entered in this application can be modified. So the database keeps a tally of what has been modified on the record by duplicating the record every time it is modified. The problem is there is another field called 'Status', with either an 'Open' or 'Closed' value. I need to count all 'Open' statuses but make sure I count it for only one unique 'Issue ID'.

Example:
Issue ID---------Status
3 Open
3 Open
3 Open
4 Closed
5 Closed
5 Open
-----------------------------

So the correct value of 'Open' statuses would be 2.

Hope that makes sense,

Sal

If you download and install the latest version of the free morefunc.xll add-in...
Book3
ABCDE
1
2Issue IDStatus# of Distinct Open ID's2
33Open
43Open
53Open
64Closed
75Closed
85Open
Sheet1


E2:

=COUNTDIFF(IF(B3:B8="Open",$A$3:$A$8,0),FALSE,0)

which must be confirmed with control+shift+enter, not just with enter.
 
Upvote 0

Forum statistics

Threads
1,213,485
Messages
6,113,931
Members
448,533
Latest member
thietbibeboiwasaco

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