I need an excel solution that checks Column A and the same row in Column D and prevents…
Jump to turn (9)
- 1I need an excel solution that checks Column A and the same row in Column D and p
- 2can this be done in Data validation
- 3I have data in column E. Can it be done through VBA with a pop-up message
- 4Can you correct the VBA code to look through all values in column D and if there
- 5What I am trying to achieve is not to create a new entry in column A and D of th
- 6Values in column A are always the Name of the Company, Values in column D are al
- 7If a duplicate is found I only want the new entry I have made in column D to be
- 8Code is not working. My description of requirement might not be clear. Let me tr
- 9Fantastic! it worked.
- User
I need an excel solution that checks Column A and the same row in Column D and prevents duplication if both value in the same row A and D exist
- Assistant
in another row of the same worksheet.
Solution:
You can use a formula in column E to check if there is a duplicate value in column A and D.
-
Select cell E2.
-
Enter the formula "=IF(COUNTIFS(A:A,A2,D:D,D2)>1,"Duplicate","")". This formula counts the number of times the values in column A and D appear together in the worksheet. If the count is greater than 1, it returns "Duplicate" in column E.
-
Copy and paste the formula in cell E2 to all other cells in column E.
-