+ Reply to Thread
Results 1 to 7 of 7

Removing data from cell within an excel spreadsheet

Hybrid View

  1. #1
    Dawn
    Guest

    Removing data from cell within an excel spreadsheet

    I have a very large spreadsheet in which column A contains a list of names
    e.g. Fred Bloggs. I need only the surname in this column - is there anyway I
    can remove the christian name without having to do this individually cell by
    cell.

  2. #2
    Ron Rosenfeld
    Guest

    Re: Removing data from cell within an excel spreadsheet

    On Thu, 16 Feb 2006 09:27:27 -0800, "Dawn" <Dawn@discussions.microsoft.com>
    wrote:

    >I have a very large spreadsheet in which column A contains a list of names
    >e.g. Fred Bloggs. I need only the surname in this column - is there anyway I
    >can remove the christian name without having to do this individually cell by
    >cell.


    Yes you can. And the manner depends on exactly how the names are formatted.

    If the surname is always the last word in the cell, then it can be extracted
    using the formula:

    =MID(A1,FIND(CHAR(1),SUBSTITUTE(
    A1," ",CHAR(1),LEN(A1)-LEN(
    SUBSTITUTE(A1," ",""))))+1,255)

    If other formats are possible, you will need to post them here.

    In B1 enter the above formula, then copy/drag down as far as needed.


    --ron

  3. #3
    Dawn
    Guest

    Re: Removing data from cell within an excel spreadsheet

    Many thanks - you have saved me an awful lot of time.

    Regards
    Dawn

    "Ron Rosenfeld" wrote:

    > On Thu, 16 Feb 2006 09:27:27 -0800, "Dawn" <Dawn@discussions.microsoft.com>
    > wrote:
    >
    > >I have a very large spreadsheet in which column A contains a list of names
    > >e.g. Fred Bloggs. I need only the surname in this column - is there anyway I
    > >can remove the christian name without having to do this individually cell by
    > >cell.

    >
    > Yes you can. And the manner depends on exactly how the names are formatted.
    >
    > If the surname is always the last word in the cell, then it can be extracted
    > using the formula:
    >
    > =MID(A1,FIND(CHAR(1),SUBSTITUTE(
    > A1," ",CHAR(1),LEN(A1)-LEN(
    > SUBSTITUTE(A1," ",""))))+1,255)
    >
    > If other formats are possible, you will need to post them here.
    >
    > In B1 enter the above formula, then copy/drag down as far as needed.
    >
    >
    > --ron
    >


  4. #4
    Ron Rosenfeld
    Guest

    Re: Removing data from cell within an excel spreadsheet

    On Fri, 17 Feb 2006 02:50:28 -0800, "Dawn" <Dawn@discussions.microsoft.com>
    wrote:

    >Many thanks - you have saved me an awful lot of time.
    >
    >Regards
    >Dawn
    >


    You're welcome. Glad to help. Thanks for the feedback.
    --ron

  5. #5
    Dawn
    Guest

    Re: Removing data from cell within an excel spreadsheet

    Ron

    Could you also let me know the formula to use to so I can extract the
    christian name from the column.

    Many thanks

    Dawn

    "Ron Rosenfeld" wrote:

    > On Thu, 16 Feb 2006 09:27:27 -0800, "Dawn" <Dawn@discussions.microsoft.com>
    > wrote:
    >
    > >I have a very large spreadsheet in which column A contains a list of names
    > >e.g. Fred Bloggs. I need only the surname in this column - is there anyway I
    > >can remove the christian name without having to do this individually cell by
    > >cell.

    >
    > Yes you can. And the manner depends on exactly how the names are formatted.
    >
    > If the surname is always the last word in the cell, then it can be extracted
    > using the formula:
    >
    > =MID(A1,FIND(CHAR(1),SUBSTITUTE(
    > A1," ",CHAR(1),LEN(A1)-LEN(
    > SUBSTITUTE(A1," ",""))))+1,255)
    >
    > If other formats are possible, you will need to post them here.
    >
    > In B1 enter the above formula, then copy/drag down as far as needed.
    >
    >
    > --ron
    >


  6. #6
    Ron Rosenfeld
    Guest

    Re: Removing data from cell within an excel spreadsheet

    On Mon, 20 Feb 2006 02:31:34 -0800, "Dawn" <Dawn@discussions.microsoft.com>
    wrote:

    >Ron
    >
    >Could you also let me know the formula to use to so I can extract the
    >christian name from the column.
    >
    >Many thanks
    >
    >Dawn


    Try this:

    =LEFT(A1,FIND(CHAR(1),SUBSTITUTE(
    A1," ",CHAR(1),LEN(A1)-LEN(
    SUBSTITUTE(A1," ",""))))-1)


    --ron

  7. #7
    Dawn
    Guest

    Re: Removing data from cell within an excel spreadsheet

    Ron

    Again, many thanks - that also worked.

    Regards
    Dawn

    "Ron Rosenfeld" wrote:

    > On Mon, 20 Feb 2006 02:31:34 -0800, "Dawn" <Dawn@discussions.microsoft.com>
    > wrote:
    >
    > >Ron
    > >
    > >Could you also let me know the formula to use to so I can extract the
    > >christian name from the column.
    > >
    > >Many thanks
    > >
    > >Dawn

    >
    > Try this:
    >
    > =LEFT(A1,FIND(CHAR(1),SUBSTITUTE(
    > A1," ",CHAR(1),LEN(A1)-LEN(
    > SUBSTITUTE(A1," ",""))))-1)
    >
    >
    > --ron
    >


+ 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