Recherche de code article

Copper Contributor

Bonjour, j'ai une base de données qui reprend les codes articles fournisseurs mais avec une extension (qui peut varier) pour préciser l'option du code article. J'aimerais réorganiser ma base articles en ayant dans une colonne le code fournisseur et dans l'autre colonne le complément de code qui correspond à son option. Exemple : nous avons un code LMFAO32BM19, le code fournisseur est ici LMFAO32 et l'option BM19. Une simple recherche verticale ne permet que de trouver des codes identiques, pas des codes dont le début est correct et pas la suite. Comment puis je faire? J'ai plus de 5.000 lignes et les faire manuellement me semble une perte de temps. Un tout grand merci pour votre aide

2 Replies

@Caroline_Simonis 

Part of answering this depends on how consistent such things as vendor and  item codes are. Are they all the same length, for example? Is every vendor code 7 characters long? Does every item code begin with "B"?

Excel can easily separate the first seven characters of LMFAO32BM19 by using the LEFT function. For example, assuming the code is in cell A1, this formula in cell B1 would extract the vendor code:

=LEFT(A1,7)

and this, in cell  C1, would extract the item code:

=RIGHT(A1,4)

There are more sophisticated text functions that could be written, but you need to give more examples of how much these combined codes change, how consistent or inconsistent they are

@Caroline_Simonis and to add to @mathetes comments, I presume you have a list of all possible vendor codes, right?  That list could be used, but it would be much easier to help if you provided the workbook or a sanitized version of it (mask any individual people info like names, addresses, etc... or other confidential info with dummy info).  Please also let us know if you have the FILTER() and LET() functions available in your version of Excel (most all should at this point).  You can test by typing = followed by the function name and see if excel shows that function in the quick fill/help info box.