waterbottle123
New Member
- Joined
- Sep 15, 2016
- Messages
- 8
Hi,
I have the following data set that needs to have duplicates removed:
<colgroup><col span="5"></colgroup><tbody>
</tbody>
I am unable to find a one step formula that would allow me to reach my intended result in the "Goal" section.
Notice how there are duplicate Tracking ID fields that is due to the value in the Lot Code column. For duplicate Tracking ID's that have unique Lot Codes, I want to keep the unique lot codes while removing the entry with "No Lot Code". However, if a Tracking ID does not have a Lot Code (as indicated by a single entry with "No Lot Code", I want to keep it.
Is this possible to do in one calculation?
I am able to do this with a two step process, where I add two extra columns to correspond to the table above.
First Step: =IF(A2=A1,"Duplicate","Keep") then I delete all Duplicates
Second Step: =IF(AND(D2=D1,I2="No Lot Code"),"Remove","Keep")
I have the following data set that needs to have duplicates removed:
Concatenate (Tracking ID + Lot Code) | Tracking ID | Lot Code | Formula to Indicate | Goal |
XYZ-DOLPHIN-L92U12 | XYZ-DOLPHIN | L92U12 | Keep | |
XYZ-DOLPHIN-No Lot Code | XYZ-DOLPHIN | No Lot Code | Remove | |
XYZ-WALRUS-TNA2136 | XYZ-WALRUS | TNA2136 | Keep | |
XYZ-WALRUS-NN12345 | XYZ-WALRUS | NN12345 | Remove | |
XYZ-WALRUS-TT2136 | XYZ-WALRUS | TT2136 | Remove | |
XYZ-WALRUS-No Lot Code | XYZ-WALRUS | No Lot Code | Remove | |
XYZ-WALRUS-No Lot Code | XYZ-WALRUS | No Lot Code | Remove | |
XYZ-MONKEY-No Lot Code | XYZ-MONKEY | No Lot Code | Keep | |
XYZ-PARROT-No Lot Code | XYZ-PARROT | No Lot Code | Keep |
<colgroup><col span="5"></colgroup><tbody>
</tbody>
I am unable to find a one step formula that would allow me to reach my intended result in the "Goal" section.
Notice how there are duplicate Tracking ID fields that is due to the value in the Lot Code column. For duplicate Tracking ID's that have unique Lot Codes, I want to keep the unique lot codes while removing the entry with "No Lot Code". However, if a Tracking ID does not have a Lot Code (as indicated by a single entry with "No Lot Code", I want to keep it.
Is this possible to do in one calculation?
I am able to do this with a two step process, where I add two extra columns to correspond to the table above.
First Step: =IF(A2=A1,"Duplicate","Keep") then I delete all Duplicates
Second Step: =IF(AND(D2=D1,I2="No Lot Code"),"Remove","Keep")