remove uniques between sheets

emukiss10

Board Regular
Joined
Nov 17, 2017
Messages
201
Hello,

- Sheets(1) column F from F2 to FXXX has some numbers
- Sheets(2) column E from E2 to EXXX has some numbers

I need to remove all rows in Sheets(2) based on those numbers (E) that are not present in Sheets(1) (F)

Please Help with VBA

Best Regards
W.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I need to remove all rows in Sheets(2) based on those numbers (E) that are not present in Sheets(1) (F)

emukiss10,

Can we see examples of the numbers in Sheets(1) column F?

Can we see examples of the numbers in Sheets(2) column E?
 
Upvote 0
Sorry sir, unfortunatly no. Security reasons. Different numbers, different length in both columns. Only numbers. If match do nothing, if does not match - remove.

What data do You need?
 
Last edited:
Upvote 0
All numbers in both columns MUST be the same format.

=in D2 sheet 2 =VLOOKUP(E2,Sheet1!$F$2:$F$xxx,0) copy down to cover all rows in sheet2 #Value means that number is not on sheet 1. Apply a filter on #Value and delete all the rows.
 
Upvote 0
Sorry sir, unfortunatly no. Security reasons. Different numbers, different length in both columns. Only numbers. If match do nothing, if does not match - remove.

What data do You need?

emukiss10,

I always like to see what I am working with.

If you can not display just the numbers, then, I can not help you.
 
Last edited:
Upvote 0
I dont understand :(

In column F Sheet(1) I have numbers like


A F
1| 009998885

2| 1234567890

3| 12233445566

4| ....

5| etc

If E2 Sheet(2) do not appear in F:F Sheet(1) - remove row 2 Sheet(2)
If E3 Sheet(2) do not appear in F:F Sheet(1) - remove row 3 Sheet(2)

and so on.

The numbers are mostely 9 digits but not always.

Nothing secial about it
Format : General
 
Last edited:
Upvote 0
I dont understand :(

In column F Sheet(1) I have numbers like


A F
1| 009998885

2| 1234567890

3| 12233445566

4| ....

5| etc

If E2 Sheet(2) do not appear in F:F Sheet(1) - remove row 2 Sheet(2)
If E3 Sheet(2) do not appear in F:F Sheet(1) - remove row 3 Sheet(2)

and so on.

The numbers are mostely 9 digits but not always.

Nothing secial about it
Format : General

emukiss10,

If you can display sample numbers in Sheet(1), above.

Then, why can you NOT display the numbers in Sheet(2)?
 
Upvote 0
The formating is the same.

Numbers are the same or are not. I dont know how can I describe it more accurately.

If in sheet 2 in column E row 9 is number 123 and it is not present in column F sheet 1 than remove this row form sheet 2. Remove uniques. How can I describe it more specidically?

It need to be exact match. 123 = 123 not 1234 nor 00123003

Im sorry If I cant do it better. :(
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top