+ Reply to Thread
Results 1 to 4 of 4

Clip text to n characters

  1. #1
    David H
    Guest

    Clip text to n characters

    Hi

    I have a column of text of variable length (no. of chars) Which function
    can I use to create a column using, say, the first 20 characters of each
    cell?

    David



  2. #2
    Barb Reinhardt
    Guest

    Re: Clip text to n characters

    Use the function MID

    =MID(TextLocation,StartNumber,Number of Characters)

    To get the first 20 characters of cell C1 use
    =MID(C1,1,20)

    "David H" <daviidh@mh-s.co.uk> wrote in message
    news:OMv34UHBFHA.208@TK2MSFTNGP12.phx.gbl...
    > Hi
    >
    > I have a column of text of variable length (no. of chars) Which function
    > can I use to create a column using, say, the first 20 characters of each
    > cell?
    >
    > David
    >
    >




  3. #3
    wilsid
    Guest

    Re: Clip text to n characters

    MID would be mostly used if you want something in the middle of the string.

    For something like that, I would go with:
    =LEFT(C1,20)
    which will grab the first 20 characters of the string in cell C1

    "Barb Reinhardt" <breinhardt@replytonewsgroup.com> wrote in message
    news:uKXlOfHBFHA.3376@TK2MSFTNGP12.phx.gbl...
    > Use the function MID
    >
    > =MID(TextLocation,StartNumber,Number of Characters)
    >
    > To get the first 20 characters of cell C1 use
    > =MID(C1,1,20)
    >
    > "David H" <daviidh@mh-s.co.uk> wrote in message
    > news:OMv34UHBFHA.208@TK2MSFTNGP12.phx.gbl...
    >> Hi
    >>
    >> I have a column of text of variable length (no. of chars) Which function
    >> can I use to create a column using, say, the first 20 characters of each
    >> cell?
    >>
    >> David
    >>
    >>

    >
    >




  4. #4
    Ken Wright
    Guest

    Re: Clip text to n characters

    Select the column and do Data / text to Columns / Fixed width - Set the
    break at 20 characters and choose 'Do not import' for the second column of
    data within the wizard. Drag out any superfluous breaks first though.

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ----------------------------------------------------------------------------
    It's easier to beg forgiveness than ask permission :-)
    ----------------------------------------------------------------------------

    "David H" <daviidh@mh-s.co.uk> wrote in message
    news:OMv34UHBFHA.208@TK2MSFTNGP12.phx.gbl...
    > Hi
    >
    > I have a column of text of variable length (no. of chars) Which function
    > can I use to create a column using, say, the first 20 characters of each
    > cell?
    >
    > David
    >
    >




+ 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