I have a table of Duplicates data .
ID | Name
1 | Teddy
1 | Ted
2 | Ben
2 | Ben
3 | Pinky
3 | Pinky
I would like to extract the data which have different Names but have the same ID
Result:
ID | Name
1 | Teddy
1 | Ted
Any idea to do it in a query or vba ?
if id = id
if name != name
display data
else
do nothing
end if
else
do nothing
end if