+ Reply to Thread
Results 1 to 2 of 2

Identify rows to delete from datatype

  1. #1
    Registered User
    Join Date
    07-04-2005
    Posts
    6

    Identify rows to delete from datatype

    Hey,

    I have a large spreadsheet and I need help with identifying which rows start with a text field so I can delete them - while not deleting the rows which start with a numeric format.

    For example:

    Col1 Col2 Col3
    row 1 - 222 hhh 777
    row 2 - abc jjj jjjj
    row 3 - 333 kkk kkk


    So, I would need row 2 (above) deleted but I need to retain rows 1 and 3.

    The text is different every time, is there a way to search for datatypes?

    Thanks

  2. #2
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379
    This Macro should delete all the rows where the first cell is not a number.

    Please Login or Register  to view this content.
    EDIT: For clarification the above macro starts in cell A1 and goes down checking each row until it gets to an empty cell (I assume this will be then end of your data) when it will stop. Let me know if this works for you or any problems you have.
    Last edited by ChrisMattock; 11-20-2008 at 06:25 PM.

+ 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