VBA: Match Sheet2 with worksheet1 and give the output as given in worksheet1.

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I doubt you will get many replies as the site you are using states

Note: This file was uploaded by an unregistered user of FileToLink.
To download the file, you have to authenticate via Facebook or Google+.

Try using a site like www.dropbox.com or www.box.com or better still (because some won't/can't download files at all) post some usable screenshots =, there are some links to some ways to do this in my signature block below.
 
Upvote 0
Assuming that the results are what you have in H, I and J why is God not either a complete or partial match in row 2?and why would "God" with the quotes ever match God without the Quotes?

For anyone who can't download who wants to have a stab at it...


Excel 2010
ABCDEFGHIJ
1Multi paragraph sentencescomplete matchpartial matchPartial mismatchcomplete matchpartial matchPartial mismatchcomplete matchpartial matchPartial mismatch
2God is Great."God"
3Goddess. Goddess. Goddess"God"Goddess"God"Goddess"God"Goddess
4
5she is Moody. He is moody.MoodMoodyMoodmoody
6
7mood.great mood. God is great.moodmood"God"
8
9
10All the glitters is not gold"All the" glitters is "not gold"
11
12
13
14
15
16Jackson is Great. God bless him.Jackson"God"
17
18
19
20
21The plane was 1hiJackedJackson1hiJacked
Sheet1




Excel 2010
A
1Word/Phrase/sentence/paragraph/numbers
2"God"
3Mood
4"All the" glitters is "not gold"
5
6
7
8
9
10
11
12
13
14Jackson
Sheet2
 
Upvote 0
Actually I want to find if the given keys matched completely or not. If it matched completely it should go to complete match. If Not how is that differs from the original. so Partial mismatched and partial matched. Hope this makes sense.

"Not in row 2" because in First column data can be in any row. So I preferred row by row output in next columns.
 
Upvote 0
Why would Jackson be a complete match where the string being searched only has the word 1hiJacked which bares any resemblance? and the quotes are still a question.
 
Upvote 0
Jack is the common string between Jackson and 1hiJacked.

I am afraid I can't think of a sensible way of writing anything for a part of any keyword to be searched for. Perhaps someone else can help you.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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