I am in need of the formula or VBA code to find the duplications.

yuvastanza

New Member
Joined
Mar 1, 2011
Messages
19
Hello Friends

I work in on the task as i need to find out the duplications with the new data from the old data.
For example If "AAAA" is in the column of old data. and the same "AAAA" would be in new data. when i compare the both i need the result in the adjacent column as "Genuine" if the new data not existed in the old column then the value should return as "need to audit"

OldNewStatus
AAAAAAAAGenuine
AAABAAACNeed Audit

<tbody>
</tbody>


<colgroup><col><col><col></colgroup><tbody>
</tbody>
As the above table depicts. the AAAA value in New column must match with value in the Old column values. If it is matching then the status column should show as Genuine and If the AAAA value not found in the Old column the status column should show Need Audit. Please help on this.

Note: I tried the "If" function and it gave me bad result :(
 

CROY1985

Active Member
Joined
Sep 21, 2009
Messages
498
I assume your data won't always be on the same row in old as it is in New? what you can use is the following: (it will work either way)

=IF(COUNTIF(B:B,A2)>1,"Need Audit",IF(COUNTIF(B:B,A2)>0,"Genuine","Need Audit"))
This checks if the value in Old data, appears in New Data. If it appears once, it is Genuine, if it appears twice i have set it "need audit". and ofcourse if it doesnt appear it is also "need audit"

Enter the formula in column C, it assumes old data in A, new data in B, and the data beginning in row 2.
 

yuvastanza

New Member
Joined
Mar 1, 2011
Messages
19
I assume your data won't always be on the same row in old as it is in New? what you can use is the following: (it will work either way)



This checks if the value in Old data, appears in New Data. If it appears once, it is Genuine, if it appears twice i have set it "need audit". and ofcourse if it doesnt appear it is also "need audit"

Enter the formula in column C, it assumes old data in A, new data in B, and the data beginning in row 2.

Hey Croy,

I will really appreciate for the Excel formula you gave me and it is working good. Thank you so much for the Help :)
 

Forum statistics

Threads
1,082,272
Messages
5,364,155
Members
400,784
Latest member
reddsables

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top