Excel Help

Soldato
Joined
1 Nov 2002
Posts
6,487
Location
South Shields
Hi,
Ive got an Excel worksheet with 63000 products on, and every item has a Part No and Description. The problem is the part no is repeated in the description field as shown below,
Is there any way to automatically remove the part no from the description field?
Code:
Part No          Description
A1               A1 Product 1
A2               A2 Product 2
 
Assuming "Part Number" is column A and "Description" is Column B, try this in Column C....

=RIGHT(B1, LEN(B1)-LEN(A1)-1)

It basically counts the number of characters in the "Decription" field (LEN(B1)) and the number of charactes in the "Part Number" (LEN(A1)).

It then takes the "Description" (B1) and removes the first "n" letters from the left. Where "n" = "LEN(B1)-LEN(A1)-1" (the extra -1 is to account for the first "space", that I assume you'll want to remove too)

Try it - it should work :)
 
Back
Top Bottom