Excel formula to count Unique Values

vinmam123VBA

New Member
Joined
Dec 18, 2020
Messages
33
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Can someone please help with below requirements:

Raw Data is like below:

NameProject
ChennaiProject A
ChennaiProject A
DelhiProject B
MumbaiProject C
MumbaiProject C
MumbaiProject D
ChennaiProject A
MumbaiProject E
ChennaiProject F

Would Like to see the Unique Project numbers in each city and Out put should be like Below

1613146906209.png


Would be great If someone help with formula to pull unique project numbers(Highlighted in Orange)

Regards,
Vinmam
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
How about
+Fluff 1.xlsm
ABCIJK
1NameProject
2ChennaiProject AChennai2
3ChennaiProject ADelhi1
4DelhiProject BMumbai3
5MumbaiProject C
6MumbaiProject C
7MumbaiProject D
8ChennaiProject A
9MumbaiProject E
10ChennaiProject F
11
12
13
Data
Cell Formulas
RangeFormula
K2:K4K2=SUM(--(FREQUENCY(IF($A$2:$A$100=J2,MATCH($B$2:$B$100,$B$2:$B$100,0)),ROW($A$2:$A$100)-ROW($A$2)+1)>0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
How about
+Fluff 1.xlsm
ABCIJK
1NameProject
2ChennaiProject AChennai2
3ChennaiProject ADelhi1
4DelhiProject BMumbai3
5MumbaiProject C
6MumbaiProject C
7MumbaiProject D
8ChennaiProject A
9MumbaiProject E
10ChennaiProject F
11
12
13
Data
Cell Formulas
RangeFormula
K2:K4K2=SUM(--(FREQUENCY(IF($A$2:$A$100=J2,MATCH($B$2:$B$100,$B$2:$B$100,0)),ROW($A$2:$A$100)-ROW($A$2)+1)>0))
Press CTRL+SHIFT+ENTER to enter array formulas.
This is Awesome!! Thanks fluff!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,474
Messages
6,125,024
Members
449,204
Latest member
LKN2GO

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