+ Reply to Thread
Results 1 to 5 of 5

Searching & Extracting Information

  1. #1
    Registered User
    Join Date
    06-11-2008
    Posts
    3

    Question Searching & Extracting Information

    I'm having troubles writing a formula that will do what I want it to. I have around 8000 rows of single column information. The Fields contain a number, between 1-4 digits long in the beginning. Then they contain a name and sometimes a number at the end of the last name, which is either 1,2,3 or 4. What I'm trying to do is delete all the rows that do not contain that number in between the name.

    Example:

    A1790: 1787 SPEARS, BRITNEY
    A1791: 1788 JACKSON, ALLEN
    A1792: 1789 JOHNSON 4, JACK
    A1793: 1790 JOHNSON 1, MAGIC

    I want the function to delete rows A1790 & A1791 because they do not have a number at the end of the last name.

    How would I go about doing this?

  2. #2
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    try this code...
    Assumption made :
    name is in column B

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-11-2008
    Posts
    3
    Shijesh,
    First off thank you for the quick reply. Your function works, but it does the opposite of what I'm looking for. Your function currently deletes all the rows that have numbers at the end of the last name. I'm looking for it to delete all the rows that do not have numbers at the end of the last name. How would that function be modified to do so?

  4. #4
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    not a problem,

    heres the code for that

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-11-2008
    Posts
    3
    Shijesh,
    I fixed the function to work as I wanted, I reversed the If function. Thank you for your help, your resolved my headache.

+ 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