+ Reply to Thread
Results 1 to 4 of 4

Extracting Number of Characters

  1. #1
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    215

    Extracting Number of Characters

    Dear Excel Community

    Can someone kindly advise the best formula to use for Column C in the attachment

    In Column A I have SD0350 - No. of Customers Numbers

    Column B should extract SD0350 and I have used =LEFT(A2,6)

    Column C should extract No. of Customers Numbers and that is where I am stuck

    I have about 350 rows to perform this task.

    I welcome any suggestions my friends

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Extracting Number of Characters

    A2 A3 and A5 have a space before the hyphen.
    A4 does not

    Is that just a typo, or will there sometimes be the space, and sometimes not?

    If that was just a typo, and the space will always be there
    Then you can use
    =MID(A2,10,155)
    Last edited by Jonmo1; 02-24-2015 at 03:34 PM.

  3. #3
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    215

    Re: Extracting Number of Characters

    Jonmo1

    Many thanks for your prompt reply.

    It was a typo by me but your suggestion has saved me a lot of time.

    Most grateful to you.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Extracting Number of Characters

    You're welcome..

    Turns out I had a typo of my own there.
    In intended that last number to be 255, not 155..
    No real reason, it's just meant to be a number that is larger than the length of the original string.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Extracting characters
    By siobeh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2014, 10:28 PM
  2. [SOLVED] Extracting characters inbetween [ ]
    By CFlack8472 in forum Excel General
    Replies: 5
    Last Post: 07-05-2012, 12:11 PM
  3. Extracting certain characters from a value
    By Luuke86 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2010, 06:11 PM
  4. extracting characters in a URL
    By claws in forum Excel General
    Replies: 6
    Last Post: 04-05-2010, 08:39 AM
  5. Extracting Characters
    By TaGY2K in forum Excel General
    Replies: 1
    Last Post: 11-09-2009, 06:06 PM

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