Compare character to character and put results in different column

bulletshiva

New Member
Joined
Jun 6, 2018
Messages
11
Hello,

I have a need to compare 2 columns and put the result in the third column.

The critical part here is to compare letter to letter. so unable to find a logic to do this.

Request your help

The data is as below:

[TABLE="width: 342"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Column1[/TD]
[TD]Column2[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]KCVEDPAFLSQBGXZ[/TD]
[TD]KCDPLSQXZ[/TD]
[TD]VEAFBG
[/TD]
[/TR]
</tbody>[/TABLE]
 
And here is another User Defined Function that should also work...
Code:
Function Missing(Col2 As String) As String
  Dim X As Long, Dept As String
  Missing = "KCVEDPAFLSQBGXZ"
  For X = 1 To Len(Col2)
    Missing = Replace(Missing, Mid(Col2, X, 1), "")
  Next
End Function
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Great! Thanks it works :)

is there also a way to send automatic e-mail ? example alphabet C is in column B, then send mail to "example@gmail.com". i have a contact responsible for each of the characters "
KCVEDPAFLSQBGXZ". i will have to assign person responsible for each "alphabet" and send mail as per column B. sorry for not putting this need
 
Upvote 0
Great! Thanks it works :)
Good to hear.

is there also a way to send automatic e-mail ? example alphabet C is in column B, then send mail to "example@gmail.com". i have a contact responsible for each of the characters "
KCVEDPAFLSQBGXZ". i will have to assign person responsible for each "alphabet" and send mail as per column B. sorry for not putting this need
Yes there is, but that is not an area of strength of mine. Somebody else may step in to help or you can have a look around at Ron de Bruin's website where I have seen many people referred to for that sort of thing.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top