Forum Discussion

Robinazer's avatar
Robinazer
Copper Contributor
Feb 18, 2021
Solved

Cross search matching data - SOLVED

My employer asked me to automate the duplicate positioned items in excel. Our company works with 20.000+ items and the stock in all of the locations is automatically updated each day. When new items are moved by a branch, they often forget to remove the replaced item out of our database.

The location X, X, X, X (rack, shelve, spot, little compartment) now has 2 Items in the database but only 1 in reality.

If for example item D replaces item B at location 1, 1, 1, 1 and they add D in the database but forget to remove B, we see the following

 

Item, Branch, Location 1, Location 2, Location 3, Location 4,

A32751532
B32751111
C32751312
D32751111

 

With only 4 items, it is easy to see that B and D share the same position in the same branch which is an obvious mistake. With over 20.000 items, you have to manually look at each location at each branch which normally takes about 4 to 5 days.

 

The same X.X.X.X. values exist in different branches. the same products are in in different branches. There are around 80 branches. Each branch has up to 9 * 9 * 9 * 9 = 6.561 items (where as 9 is the highest number for a location). Here a more detailed and correct example of our database:

 

Branch, Item, Location 1, Location 2, Location 3, Location 4

300033871111
300033901112
300033881113
300033921114
300033451115
323033781111
323033361112
323033691113
327533871111
327533361112
327533501113
327533591111

 

As you can see, the location 1, 1, 1, 1 is in every branch which is okay, but since it is twice in branch 3275, this is a problem.

 

Is there a way to make a calculation/formula in excel so that I only have to upload the generated XML database and the calculation gives me the duplicate items and their locations automatically?

  • Robinazer 

    Assuming that the layout is as in your second example: Branch in column A, Item in column B, and Locations 1 to 9 in columns C to K:

    Enter a heading such as Duplicate in L1.

    Enter the following formula in L2:

    =COUNTIFS(A:A,A2,C:C,C2,D:D,D2,E:E,E2,F:F,F2,G:G,G2,H:H,H2,I:I,I2,J:J,J2,K:K,K2)>1

    Fill down to the end of the data.

    You can now turn on AutoFilter, and filter column L for TRUE.

    ā€ƒ

2 Replies

  • Robinazer 

    Assuming that the layout is as in your second example: Branch in column A, Item in column B, and Locations 1 to 9 in columns C to K:

    Enter a heading such as Duplicate in L1.

    Enter the following formula in L2:

    =COUNTIFS(A:A,A2,C:C,C2,D:D,D2,E:E,E2,F:F,F2,G:G,G2,H:H,H2,I:I,I2,J:J,J2,K:K,K2)>1

    Fill down to the end of the data.

    You can now turn on AutoFilter, and filter column L for TRUE.

    ā€ƒ

Resources