• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

Excel finding value not exist in range.

I have 2 columns:
A      B
1       2
2       4

and I want to find column C with value in column A but not exist in column B.

How can I do it?
1 Solution
Kakhaber SiradzeCommented:
Saqib Husain, SyedEngineerCommented:
If you like to have a macro you can use this. This will list the numbers continuously
Sub extna()
For Each cel In Range("A:A")
Set tl = Range("B:B").Find(cel, , , xlWhole)
If tl Is Nothing Then n = n + 1: Cells(n, 4) = cel
Next cel
End Sub

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now