I have an Excel sheet where I have two columns with certain "keys" in every cell, like column A cell 1 would look like
|55|56|60|99|120| and column B cell 1 would look basically the same but just with different values, like |55|56|62|100|121|130|210|312|.
Now what I need is to remove every occurrence in column A cell 1 that also occurs in column B cell 1 and so on. In the end I want to have a third cell that only shows "|60|99|120|".
I cannot find anything online that tells me how to "compare" two cells with each other and remove duplicates. All I can find is the filter option that would compare cells in column A and remove the ones that have appeared exactly like that before, but that is not what I need. What I did find was a VBA module that almost did what I wanted, but it only removed one instance of the duplicate and kept the original.
I need to do this for about 450 columns, so doing this manually would be a chore and it would help with future tasks.

Try using the following formula:
As OP's comment in another answer, they have single pipes
|hence editing the answer, there is not much difference it my previous answer and the updated one:LET()function to define variables therefore eliminating or reducing the use of redundant formulas/ranges.xis defined for splitting the cell value inA1which usesTEXTSPLIT()function to split by delimiter|by column wise, and excludes if any empties.SEARCH()function to find the position of thexin cell valueB1ISERR()which returnsTRUEreversing it with1-to make itFALSEfor that returned error andTRUEfor the number, alternatively this1-ISERR()can be replaced withISNUMBER()FILTER()function grabbing the one have returnedTRUEand lastly joining the array withinTEXTJOIN()with a delimiter|to return the required output.