Countif to find Unique value based on another columm

MaxMurphy13

New Member
Joined
Feb 7, 2012
Messages
10
Good Morning,
I am having trouble with a formula to return unique results based on another column of data:

Any help is appreciated...thank you


<colgroup><col style="width:48pt" width="64" span="4"> <col style="mso-width-source:userset;mso-width-alt:3401;width:70pt" width="93"> </colgroup><tbody>
DataResults
CurrentNewCurrrentUnique "New" Count
newjob1betterjobAnewjob13
newjob1betterjobBnewjob22
newjob1betterjobBnewjob31
newjob1betterjobC
newjob1betterjobC
newjob2betterjobA
newjob2betterjobB
newjob3betterjobA

<colgroup><col><col><col span="2"><col></colgroup><tbody>
</tbody>
</tbody>
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
DataResults
CurrentNewCurrrentUnique "New" Count
newjob1betterjobAnewjob13
newjob1betterjobBnewjob22
newjob1betterjobBnewjob31
newjob1betterjobC
newjob1betterjobC
newjob2betterjobA
newjob2betterjobB
newjob3betterjobA

<colgroup><col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> <col style="width:48pt" width="64" span="2"> <col style="mso-width-source:userset;mso-width-alt:5046;width:104pt" width="138"> </colgroup><tbody>
</tbody>
 
Upvote 0
Sorry about that. My table does not appear. Basically I have a table with clothing types in column A. then in column B I have a list of actual clothing. I want to count how many different items in column b make up one of the types in column A.
 
Upvote 0
OK, so posting a small sample of your data, together with the expected results, would be helpful . . .
 
Upvote 0
Maybe:

ABCDE
1CurrentNewCurrrentUnique "New" Count
2newjob1betterjobAnewjob13
3newjob1betterjobBnewjob22
4newjob1betterjobBnewjob31
5newjob1betterjobC0
6newjob1betterjobC
7newjob2betterjobA
8newjob2betterjobB
9newjob3betterjobA

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet16

Array Formulas
CellFormula
D2{=IFERROR(INDEX($A$2:$A$9,SMALL(IF(MATCH($A$2:$A$9,$A$2:$A$9,0)=ROW($A$2:$A$9)-ROW($A$2)+1,ROW($A$2:$A$9)-ROW($A$2)+1),ROWS($D$2:$D2))),"")}
E2{=SUM(SIGN(FREQUENCY(IF($A$2:$A$9=D2,MATCH($B$2:$B$9,$B$2:$B$9,0)),ROW($B$2:$B$9)-ROW($B$2)+1)))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,743
Messages
6,132,456
Members
449,729
Latest member
davelevnt

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