clear items for specific column based on header

Alaa mg

Active Member
Joined
May 29, 2021
Messages
343
Office Version
  1. 2019
hello
I have three sheets contain duplicate items in column header CD should be delete them .
cas.xlsm
BCDE
1CDITEMBATQTY
2CVF-12FRIDG-1BASD-112
3CVF-12FRIDG-2BASD-23
4CVF-12FRIDG-3BASD-34
5CVF-13FRIDG-4BASD-45
6
7CVF-14OVEN-1BASD-512
8CVF-14OVEN-2BASD-63
9CVF-15OVEN-3BASD-745
10
11CVF-16OVEN-4BASD-812
12CVF-18BASD-1012
13CVF-19BASD-113
14
mns


cas.xlsm
CDE
1CDITEMQTY
2CVF-12FRIDG-112
3CVF-12FRIDG-23
4CVF-12FRIDG-34
5CVF-13FRIDG-45
6CVF-14OVEN-112
7CVF-14OVEN-23
8CVF-15OVEN-345
9CVF-16OVEN-412
10CVF-18OVEN-512
11CVF-19OVEN-63
LTTY

cases.xlsm
HIJ
1CDITEMQTY
2CVF-13FRIDG-45
3CVF-14OVEN-112
4CVF-14OVEN-23
5CVF-15OVEN-345
6CVF-13OVEN-412
7CVF-13OVEN-512
8CVF-13OVEN-63
LLO


RESULT should be
cas.xlsm
BCDE
1CDITEMBATQTY
2CVF-12FRIDG-1BASD-112
3FRIDG-2BASD-23
4FRIDG-3BASD-34
5CVF-13FRIDG-4BASD-45
6
7CVF-14OVEN-1BASD-512
8OVEN-2BASD-63
9CVF-15OVEN-3BASD-745
10
11CVF-16OVEN-4BASD-812
12CVF-18BASD-1012
13CVF-19BASD-113
14
mns



cas.xlsm
CDE
1CDITEMQTY
2CVF-12FRIDG-112
3FRIDG-23
4FRIDG-34
5CVF-13FRIDG-45
6CVF-14OVEN-112
7OVEN-23
8CVF-15OVEN-345
9CVF-16OVEN-412
10CVF-18OVEN-512
11CVF-19OVEN-63
LTTY




cas.xlsm
HIJ
1CDITEMQTY
2CVF-13FRIDG-45
3CVF-14OVEN-112
4OVEN-23
5CVF-15OVEN-345
6OVEN-412
7OVEN-512
8OVEN-63
LLO
 
you want to use is the active sheet


No ! just I guess the problem . I want the first code you provided me. even if I use the last code still continues the problem.

I no know what's the problem . I try creating new workbook but the problem still continues.
by the way last code contains typo before for each line contains "."
 
Last edited:
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,214,874
Messages
6,122,036
Members
449,062
Latest member
mike575

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