I have very urgent requirement of comparision.
If anybody able to helps me with giving program code / macro then it will appreceited very much.
Please help me anybody !!!!!!!!!!!!!!!!!!
What to Do or my requirement :
I need to compare 2 Text files contents.
I have imported all the contents of these 2 files in a 2 columns respectively.
I have to check :
(START FROM 10th Row. & need to Column "A" contents against Column "B" contents).
(Here C1 means - Column 1)
"In short my requirement is - I have set of lines (with HeadLice at first Row in C1 ) & I have similar kind of set of Lines (with same Headline) in C2.
I need to check the contents of other rows when Both Headlines are matching. When Headline Matches but - The row contents of C1 is not matching or not at all present in C2 then I need the BOth HeadLine & Unmatching rows contents.
These set of lines are separated by blank rows. Blank rows may be 1,2,3...n. So We need to consider the First not blank cell content as Headline & rest other rows as sub contents (till next blank rows)."
"I need only unmatched rows content with headline".
Diff. possibilities :
1). Take first Row content (call it as HeadLine) (We need to start searching after every each Blank row)
search this C1-Row Content (i.e.HeadLine) in C2 .
If matching found then give lightBlue Color to those both ROWS of C1 & C2. (It is for identification)
(This content may available in 'nth" of C2 i.e. Column B.)
2).When C1-Row Headline = C2-Row Headline then
Check the other next Row contents in both column (check till upto next Blank cells only).
The next C1-Row Content may avaliable in any of the C2-Row.
If matches then in next column write "MATCHING" (in next column).
Give Color Green for C1 rows & Yellow for C2 rows.
3).When C1-Row Headline = C2-Row Headline BUT
The ant next C1-Row Content is not matching with any of the C2-Row Content (check till upto next Blank cells only) then
in next column write "NOT MATCHING".Give Color to for both column perticular cells.
And
In "REPORT" sheet print the
a).HeadLine of c1 & HeadLine of c2 in 2 columns separatelty.
b).Print those unmatched row contents (in respective column) below the respectie HeadLines (with color).
3).Give the Count No. i.e. 1,2,3,......for each mis match findings.
4).If any HeadLine from C1 is not at all matching (when it completes the searching in whole C2) then
In "REPORT" sheet (uNder the column "TAG which are NOT PRESENT ANYWHERE IN C2") & print the
a).HeadLine of c1 .
5).some time only Headline may be there.
Now we need to check the this Headline in C2,if found "no need to print in Report". if not fond then Print the Headline uNder the column "TAG which are NOT PRESENT ANYWHERE IN C2".
6).If possible please recheck whether any HEADLINES from C2 is only present in C2.
Means now take C2 Contents as master & cross check any additional HEADLINES are added in C2 or not .
I think it is very big task but unfortunately I have to do this kind of work for 100 sheet(each sheet contents 25000 rows !!!!!!) which is having same kind of data.
Bookmarks