#43 - Find the Difference Between Two Strings

#43 - find-the-difference-between-two strings

Problem description & analysis:

In the Excel table below, both column A and column B contain semicolon-separated strings:

original table

Task: Find the difference between column A and column B, which consists of items that are contained in column A but not contained in column B, and separate the result with the semicolon:

desired table

Solution:

Use SPL XLL to get this done:

=spl("=?.((~1.split($[;])  ~2.split($[;])).concat($[;]))",A1:B3)

As shown in the picture below:

result table with code entered

Explanation:

~1 represents the first child member of the current member (row); is the operator for computing the difference; $[] represents a string.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
apple-notes-is-my-cms

Apple notes is my CMS

Next Post
how-to-fortify-and-safely-test-your-website-against-hackers

How to Fortify and Safely Test Your Website Against Hackers

Related Posts