+ Reply to Thread
Results 1 to 4 of 4

Need Excel Function that will return # of char in preceding cell

  1. #1
    klafert
    Guest

    Need Excel Function that will return # of char in preceding cell

    I used it before and cant remeber the function command that will allow me to
    copy just the 1st 5 numbers in a cell to another cell. Thes cells are like C
    & D.

    Thanks for your help. Command just slipping my mind.

  2. #2
    IanRoy
    Guest

    RE: Need Excel Function that will return # of char in preceding cell

    In D1, LEFT(C1,5) will return the first five characters in C1.

    "klafert" wrote:

    > I used it before and cant remeber the function command that will allow me to
    > copy just the 1st 5 numbers in a cell to another cell. Thes cells are like C
    > & D.
    >
    > Thanks for your help. Command just slipping my mind.


  3. #3
    Ragdyer
    Guest

    Re: Need Excel Function that will return # of char in preceding cell

    Are you perhaps talking about:

    In D1, enter,

    =LEFT(C1,5)
    OR
    =--LEFT(C1,5)
    to retain numerical format.
    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "klafert" <[email protected]> wrote in message
    news:[email protected]...
    > I used it before and cant remeber the function command that will allow me

    to
    > copy just the 1st 5 numbers in a cell to another cell. Thes cells are like

    C
    > & D.
    >
    > Thanks for your help. Command just slipping my mind.



  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    The 'first' 5 numbers can be interpreted in two ways:

    123456
    =LEFT(C1,5) ---> "12345" (this is a text)
    =--LEFT(C1,5) --->12345 (this is a number)

    654321
    =RIGHT(C1,5) ---> "54321" (this is a text)
    =--RIGHT(C1,5) --->54321 (this is a number)

    HTH
    Ola Sandström

+ 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