Identify duplicates based on other columns

gmalpani

New Member
Joined
Dec 24, 2011
Messages
37
Hello Experts,

I have a data with with details about the sales opportunities with 4 columns - Opportunity ID, Scenario ID, Product ID, Feature title.

For one opportunity (e.g. ABC123XYZ), multiple scenario can be created (e.g. ABC123XYZ-01, ABC123XYZ-02....). These scenarios may have same or different products with associated features. Note that original data has many more opportunities with combination of scenario, product & features. check attachment.
I need to find list of unique features under each opportunity ID for each product offered in an opportunity.
As shown in table below, last columns is expected output while first 4 are input data.
All these rows has same opportunity ID but has two scenarios and each scenario has two products.
For Opportunity + Product combination, I want to identify duplicates.

InputInputInputInputExpected output
Opportunity IDScenarioProductFeature Title (text field)Duplicate/Unique
ABC123XYZABC123XYZ.01-01Product 1Feature 1 - this feature..Unique
ABC123XYZABC123XYZ.01-01Product 1Feature 2Unique
ABC123XYZABC123XYZ.01-01Product 1Feature 3Unique
ABC123XYZABC123XYZ.01-01Product 1Feature 4Unique
ABC123XYZABC123XYZ.01-01Product 1Feature 5Unique
ABC123XYZABC123XYZ.01-02Product 1Feature 1 - this feature..Duplicate
ABC123XYZABC123XYZ.01-02Product 1Feature 2Duplicate
ABC123XYZABC123XYZ.01-02Product 1Feature 3Duplicate
ABC123XYZABC123XYZ.01-02Product 1Feature 6Unique
ABC123XYZABC123XYZ.01-01Product 2Feature 10Unique
ABC123XYZABC123XYZ.01-02Product 2Feature 10Duplicate
ABC123XYZABC123XYZ.01-02Product 2Feature 11Unique
ABC456XYZABC456XYZ.01-01Product 1Feature 1Unique
ABC456XYZABC456XYZ.01-01Product 1Feature 2Unique
ABC456XYZABC456XYZ.01-02Product 1Feature 1Duplicate
ABC456XYZABC456XYZ.01-02Product 1Feature 3Unique
ABC456XYZABC456XYZ.01-03Product 1Feature 1Duplicate
ABC456XYZABC456XYZ.01-03Product 1Feature 2Duplicate
ABC456XYZABC456XYZ.01-03Product 1Feature 3Duplicate
ABC456XYZABC456XYZ.01-03Product 1Feature 4Unique
 

Attachments

  • Query.PNG
    Query.PNG
    64.1 KB · Views: 16

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
Hi,

I managed to have required output on my own. So, consider it solved, not sure how can I mark this thread as 'Solved ?

Steps followed -
1. In original query (Query 1) add one index column starting from 1
2. Copy of original query (Query 2)
2. In Query 2, with Ctrl + Select of Opp ID, Product and Feature -> right click to remove duplicates. Now all features are unique in this query
3. Add one more custom columns 'Custom' with value = "Unique"
4. Merge original query with Query 2 with common column as Index
5. Open only column named 'Custom' in merged query
6. There will be records with value = "Unique" and null
7. Replace all null with "Duplicates"

Thanks again to all experts here.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,713
Messages
6,174,039
Members
452,542
Latest member
Bricklin

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