Flag duplicates with and corresponding column matching a criteria

Dokat

Active Member
Joined
Jan 19, 2015
Messages
304
Office Version
  1. 365
Hi

I am trying the flag "Ration" in the output column based on 2 criteria,

1 Only duplicate values in CCP Name.

2. Corresponding Stock Type for duplicate values has to be 'Inactive - Use Up Inventory" . In below ex. i put the ration where there is duplicate values in CCP Name column and Stock type for all duplicate values is "Inactive-Use Up Inventory". Does anyone had a similar issue and formula that can solve it?

CCP NameStock TypeOutput
CSA11-BLK​
Inactive - Use Up Inventory
CSA11-BLU​
Inactive - Use Up InventoryRation
CSA11-BLK​
Active - Use Up Inventory
CSA11-BLK​
Inactive - Use Up Inventory
CSAP51CS-BLK​
Inactive - Use Up Inventory
CSA11-BLU​
Inactive - Use Up InventoryRation
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
master price list.xlsm
ABC
1CCP NameStock TypeOutput
2CSA11-BLKInactive - Use Up Inventory 
3CSA11-BLUInactive - Use Up InventoryRation
4CSA11-BLKActive - Use Up Inventory 
5CSA11-BLKInactive - Use Up Inventory 
6CSAP51CS-BLKInactive - Use Up Inventory 
7CSA11-BLUInactive - Use Up InventoryRation
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=IF(AND(COUNTIF($A$2:$A$7,$A2)>1,COUNTIFS($A$2:$A$7,$A2,$B$2:$B$7,"Inactive - Use Up Inventory")=COUNTIF($A$2:$A$7,$A2)),"Ration","")
 
Upvote 0

Forum statistics

Threads
1,215,382
Messages
6,124,618
Members
449,175
Latest member
Anniewonder

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