+ Reply to Thread
Results 1 to 9 of 9

Delete rows if cells have character(s)...

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    17

    Delete rows if cells have character(s)...

    Well, it's been a long time since I've work complex Excel editor, perhaps at five yrs, and I have to make a more readable Excel report of data pull out of MAS.

    Total nightmare, 10,000 rows of that!



    Anyways, to get start what's the formula, function, macro, vba for deleting rows if a cell have character(s)?
    Last edited by elsoung; 10-05-2012 at 02:03 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Delete rows if cells have character(s)...

    Hi

    formula - isnumber(cell_reference)
    VBA - isnumeric(cell_reference)

    Now how you do what you want to do with that information really depends on how you are approaching things. Macro or manual based on formulas, filters etc.

    rylo

  3. #3
    Registered User
    Join Date
    10-03-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Delete rows if cells have character(s)...

    Don't see how the isnumber(cell_reference) formula deletes rows if a specify cell has at least one character.



    I would like to delete rows 7 and 11. Is there anyway to delete that rows just because there are characters in cells I7 and I11 or P7 and P11?
    Last edited by elsoung; 10-05-2012 at 02:02 PM.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Delete rows if cells have character(s)...

    Hi

    Hard to tell from the screen shot (how about attaching an example file), but do you want to delete the row if there is anything in column I or P not just a non numeric value? It looks as though all the other cells in those columns are blank.

    rylo

  5. #5
    Registered User
    Join Date
    10-03-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Delete rows if cells have character(s)...

    Quote Originally Posted by rylo View Post
    Hi

    Hard to tell from the screen shot (how about attaching an example file), but do you want to delete the row if there is anything in column I or P not just a non numeric value? It looks as though all the other cells in those columns are blank.

    rylo
    Column I or P don't have numeric characters, I'm just asking how you can delete rows if a cell has anything in it.
    Last edited by elsoung; 10-05-2012 at 02:02 PM.

  6. #6
    Registered User
    Join Date
    10-03-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Delete rows if cells have character(s)...

    One other question. in the attached example1.xlsx. I've inserted another column, colunm A. Is there anyway pull out only the 50-02s, 50-03s, 50-04s, etc... but not the stores like 50-B84116, 50-C05689, etc...

    The 50-05 is the same saleman is doesn't matter about the 50-05c, 50-05f, etc... I just want to pull out the salesman and not the stores.
    Last edited by elsoung; 10-05-2012 at 02:01 PM.

  7. #7
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Delete rows if cells have character(s)...

    Hi

    For both I think you can use filters to determine the relevant rows, then select the visible rows and delete them. Have you tried to do anything with filters with regard to this?

    rylo

  8. #8
    Registered User
    Join Date
    10-03-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Delete rows if cells have character(s)...

    No, haven't thought of using filters.

    Good idea, it's just that I've been out of this Excel world for probably a good 7-10 yrs and suddenly my job as an IT System Tech has suddenly thrown this Sage MAS database-to-Excel of at least 50,000 rows at me and creating a spreadsheet report and be a financial analyst!

    Got anymore ideas in filtering to bring back old memories to help get me rolling?


    Thanks!

  9. #9
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Delete rows if cells have character(s)...

    Hi

    OK, run the following across your data. It will get rid of the relevant rows, remove the merged cells, and apply an autofilter.

    Please Login or Register  to view this content.
    Then select B1, select the filter dropdown, text filters, Begins with, 50-05, and OK. This will bring back all the required entries.

    HTH

    rylo

+ 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