+ Reply to Thread
Results 1 to 6 of 6

Ignor Spaces

  1. #1
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723

    Ignor Spaces

    HI,

    D1 HAS IN IT LOOSE SHELF 1262X459 AND E1 HAS 262X459

    i have extracted the 262X459 BY USING =RIGHT(D1,8) SO I DID EXPECT TO SEE
    1262X459
    what has happened is there is a space ater the 459
    this space could accur in 50 % of the cell if i put = right(d1,9) i will get on this example f in my result

    any idea how to ignor the space

    thanks steve

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by stevekirk
    HI,

    D1 HAS IN IT LOOSE SHELF 1262X459 AND E1 HAS 262X459

    i have extracted the 262X459 BY USING =RIGHT(D1,8) SO I DID EXPECT TO SEE
    1262X459
    what has happened is there is a space ater the 459
    this space could accur in 50 % of the cell if i put = right(d1,9) i will get on this example f in my result

    any idea how to ignor the space

    thanks steve
    try =Len(D1) and =Right(D1,1) to check for spaces.

    then =Trim(Right(D1,9) should work

    ---

  3. #3
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723

    ignor spaces

    hi bryan

    i have tried to enter the first formular but it just gives me the error message

    steve

  4. #4
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    =Trim(Right(D1,9) should work as suggested in the previous post

    or

    =right(trim(d1),8)

    Regards

    Dav

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by stevekirk
    HI,

    D1 HAS IN IT LOOSE SHELF 1262X459 AND E1 HAS 262X459

    i have extracted the 262X459 BY USING =RIGHT(D1,8) SO I DID EXPECT TO SEE
    1262X459
    what has happened is there is a space ater the 459
    this space could accur in 50 % of the cell if i put = right(d1,9) i will get on this example f in my result

    any idea how to ignor the space

    thanks steve
    Hi stevekirk,

    Try this formula,

    =RIGHT(TRIM(D1),8)

    oldchippy

  6. #6
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723

    Ignor Spaces

    thank you all

    steve

+ 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