Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am just starting to learn VBA and really struggling with the following
problem. Any help would be appreciated!. I have a list of Excel records which this time round is 4 columns and 45000 records. the columns will always be the same with the same headers but the number of records will change each time. My data looks like the following; Item No Trans Qty Doc Number Location 4001 100 50001 EL4 4001 100 50001 EL7 4001 100 50001 EL9 4001 100 50001 EL4 4002 50 30001 3BJ 4002 50 30001 2DC 4002 50 30001 3BJ 4003 40 20001 EL4 4003 40 20001 EL7 I want to use a macro to look down the data and where the Item No, Trans Qty and Doc Number are the same then keep the 1st record for the 1st location and remove the other records. There may however be some instances where the Item No, Trans Qty, Doc Number AND Location are the same e.g. Item No 4001, Location EL4, and in these cases the records would need to be kept. I would therefore expect to see the following result; Item No Trans Qty Doc Number Location 4001 100 50001 EL4 4001 100 50001 EL4 4002 50 30001 3BJ 4002 50 30001 3BJ 4003 40 20001 EL4 4003 40 20001 EL7 Any ideas? Many thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
remove all duplicate records | Excel Discussion (Misc queries) | |||
remove duplicate records | Excel Discussion (Misc queries) | |||
Remove blank lines between records | Excel Discussion (Misc queries) | |||
remove blank records (row) in worksheet | Excel Discussion (Misc queries) | |||
Check and Remove Records | Excel Discussion (Misc queries) |