|  

» Calculating the Proportion of Characters from One String that Appears in another String

Problem:

Calculating the percentage of the characters from each string in column B that appear within the corresponding string in column A.

Solution:

Use the SUM, ISNUMBER, FIND, MID, ROW, INDIRECT, and LEN functions as shown in the following Array Formula:
{=SUM(--ISNUMBER(FIND(MID(B2,ROW(INDIRECT("1:"&LEN(B2))),1),A2)))/LEN(B2)}

To apply Array formula:
Select the cell, press and simultaneously press .

Rate This Tip
12 34 5
Rating: 3.80     Views: 7098
No comments have been submitted.
Click here to post comment
For Registered Users
Name
Comment Title
Comments