Distinct count unique value

tpracsg

New Member
Joined
Aug 9, 2012
Messages
14
Hi Friends
I need a help for finding Distinct count unique value as follows :

Product Month Salesman Merge A&B&C DistinctCount
Apple Apr Alexandar AppleAprAlexandar 1
Apple May Alexandar AppleMayAlexandar 1
Apple Apr Alexandar AppleAprAlexandar 0
Apple Apr Mathew AppleAprMathew 1
Orange May Mathew OrangeMayMathew 1
Apple Apr Mathew AppleAprMathew 0

I need to merge (merging not compulsorily) but output in DistinctCount column as same required. (i.e. First value 1 and if duplicate 0)
PLEASE NOTE MY EXCEL FILE IS VERY BIG APPROXIMATE 100000 ROWS. Hence I need output result very quickly.
How to solve my problem.
Thanks in advance
CSGanesh
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Supposing this is columns A-E, in E you would
=IF(COUNTIFS($D$2:$D2,D2)>1,0,COUNTIFS($D$2:$D2,D2))

This will place a zero in any duplicates
 
Upvote 0
Hi
Thank you for your immediate help. But please note my excel file is very big (i.e, appr. 1,00,000 rows). Hence for copy and paste the above take more than 20 minutes (some times excel file hanged). Actually I need this for pivot tables. If it is possible to apply this in pivot table in calculate field. i need a fast output. or any vba for fast result. Please help me.
Regards
CSGanesh
 
Upvote 0

Forum statistics

Threads
1,215,372
Messages
6,124,532
Members
449,169
Latest member
mm424

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