+ Reply to Thread
Results 1 to 3 of 3

Referencing only first 4 numbers in alpha-numeric cell

  1. #1
    Registered User
    Join Date
    12-22-2011
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2010
    Posts
    58

    Referencing only first 4 numbers in alpha-numeric cell

    Hi all,

    The item numbers my company uses to identify a certain product has changed from being alpha-numeric to only numeric. For example, we use to call a product 5700A31DP and now it is simply 5700. Thousands of these alpha-numeric codes are listed in excel and I don't have time to go through them all manually. Is there a way that I can transform 5700A31DP to 5700?

    Basically, I need f(5700A31DP)=5700, where f is a function in excel.

    Any ideas would be much appreciated.

    Thanks

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Referencing only first 4 numbers in alpha-numeric cell

    Hi Subject,

    Try using the LEFT function. If your string "5700A31DP" is in A1, use

    =LEFT(A1,4)

  3. #3
    Registered User
    Join Date
    12-22-2011
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Referencing only first 4 numbers in alpha-numeric cell

    Perfect. You just saved me hours of work.
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1