Consulting

Results 1 to 4 of 4

Thread: Only the string

  1. #1
    VBAX Regular
    Joined
    Aug 2019
    Posts
    54
    Location

    Only the string

    Hi to every one .I have a string like "Example1" , now how can i get only the "Example" string ,without the number
    Thank you for your time
    Kostas

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try this array formula

    =LEFT(A1,MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,RO W(INDIRECT("A1:A"&LEN(A1)))))-1)

    Enter with Ctrl-SHift-Enter
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Or

    =LEFT(A1,LEN(A1)-1)

    and if it is always Example and followed by a number

    =LEFT(A1,7)

  4. #4
    VBAX Regular
    Joined
    Aug 2019
    Posts
    54
    Location
    OK Thank you

Posting Permissions

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