+ Reply to Thread
Results 1 to 4 of 4

Replace blanks/spaces

  1. #1
    Forum Contributor
    Join Date
    11-24-2008
    Location
    leicester
    MS-Off Ver
    Microsoft 365
    Posts
    161

    Replace blanks/spaces

    Hi,

    I have pulled the first 11 characters/digits from a string of text (as im trying to find a product code that is 11 characters/digits and always at the start) problems is otehr lunes are duff infimation, but mainly have a space in the first 11 characters/digits - is there way of replacing these?

    Alternativetly is there a way to say if i find two or three letters at the start of a cell, pull the data otherwise ignore it?

    Plaese let me know if you need any further info?

    A

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Replace blanks/spaces

    Do you mean only pull the 11 chars if there's no space ?

    =REPT(LEFT(A1,11),ISERROR(FIND(" ",LEFT(A1,11))))

  3. #3
    Forum Contributor
    Join Date
    11-24-2008
    Location
    leicester
    MS-Off Ver
    Microsoft 365
    Posts
    161

    Re: Replace blanks/spaces

    Thats great - thanks you.

    How do i add to the below formula to alos not innclude any that have a / in the first 11 aswell?

    Thanks again

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Replace blanks/spaces

    one way:

    Please Login or Register  to view this content.

+ 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