So I've looked at other solutions to this problem, and the one I implemented involved making a custom column that would combine 2 columns, sort, then remove duplicates from a different column to get the desired result. However I found that this was working for some duplicates, but not for others. See data below, and then the explanation of what I need to happen.
So what you can see is the ordnot_vendor column can contain duplicate values for a vendor (same ord_not combination), but I only want to keep the value that has "0.Ready package uploaded to folder" and delete the "1.PEND package uploaded to folder" row. Currently I am combining these 2 columns into a new column, sorting ascending (so I have 0, 1, 2 etc.), then deleting the duplicate values in the "OrdNot_Vendor" column. This however resulted in a few where the "0.Ready package uploaded to folder" row would be deleted instead of the "1.PEND package uploaded to folder" row, not sure why but maybe it has to do with the way I combined these 2 columns and sorted? Either way, is there a better way to go about this that might be more accurate? Some form of if there's a duplicate, check the package type sort value for "Ready", if that value exists then delete the duplicates? Any help is appreciated, thanks.
OrdNot_Vendor | Package Type Sort |
35557413_121470651_vendor3 | 1.PEND package uploaded to folder |
35557413_121470651_vendor3 | 0.Ready package uploaded to folder |
46280026_129095815_vendor2 | 0.Ready package uploaded to folder |
46280026_129095815_vendor2 | 1.PEND package uploaded to folder |
So what you can see is the ordnot_vendor column can contain duplicate values for a vendor (same ord_not combination), but I only want to keep the value that has "0.Ready package uploaded to folder" and delete the "1.PEND package uploaded to folder" row. Currently I am combining these 2 columns into a new column, sorting ascending (so I have 0, 1, 2 etc.), then deleting the duplicate values in the "OrdNot_Vendor" column. This however resulted in a few where the "0.Ready package uploaded to folder" row would be deleted instead of the "1.PEND package uploaded to folder" row, not sure why but maybe it has to do with the way I combined these 2 columns and sorted? Either way, is there a better way to go about this that might be more accurate? Some form of if there's a duplicate, check the package type sort value for "Ready", if that value exists then delete the duplicates? Any help is appreciated, thanks.