+ Reply to Thread
Results 1 to 4 of 4

If it's not a space, return the cell contents.

  1. #1
    Gee...
    Guest

    If it's not a space, return the cell contents.

    I have a column of data that's generated when some tests are done.
    There are "File" names, then any number of "Page" names.
    All the Page names start with 5 spaces (space-bar hits).
    I would like an if/then function that would look at the first character and
    if it's not a space to return the contents of the cell.
    Like if the cell says " A23 " I would get a return of "" (nothing).
    If the cell says "BC55HTM" I would get a return of "BC55HTM"



  2. #2
    Govind
    Guest

    Re: If it's not a space, return the cell contents.

    Hi,

    Use

    =IF(LEFT(A1,1)=" ","",A1)

    Regards

    Govind.

    Gee... wrote:

    > I have a column of data that's generated when some tests are done.
    > There are "File" names, then any number of "Page" names.
    > All the Page names start with 5 spaces (space-bar hits).
    > I would like an if/then function that would look at the first character and
    > if it's not a space to return the contents of the cell.
    > Like if the cell says " A23 " I would get a return of "" (nothing).
    > If the cell says "BC55HTM" I would get a return of "BC55HTM"
    >
    >


  3. #3
    Biff
    Guest

    Re: If it's not a space, return the cell contents.

    Hi!

    Try this:

    =IF(LEFT(A1)=" ","",A1)

    Or

    =IF(LEFT(A1)=CHAR(32),"",A1)

    Biff

    "Gee..." <[email protected]> wrote in message
    news:[email protected]...
    >I have a column of data that's generated when some tests are done.
    > There are "File" names, then any number of "Page" names.
    > All the Page names start with 5 spaces (space-bar hits).
    > I would like an if/then function that would look at the first character
    > and
    > if it's not a space to return the contents of the cell.
    > Like if the cell says " A23 " I would get a return of ""
    > (nothing).
    > If the cell says "BC55HTM" I would get a return of "BC55HTM"
    >
    >




  4. #4
    Gee...
    Guest

    RE: If it's not a space, return the cell contents.

    Thanks, guys...just what I needed!

    "Gee..." wrote:

    > I have a column of data that's generated when some tests are done.
    > There are "File" names, then any number of "Page" names.
    > All the Page names start with 5 spaces (space-bar hits).
    > I would like an if/then function that would look at the first character and
    > if it's not a space to return the contents of the cell.
    > Like if the cell says " A23 " I would get a return of "" (nothing).
    > If the cell says "BC55HTM" I would get a return of "BC55HTM"
    >
    >


+ 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