+ Reply to Thread
Results 1 to 12 of 12

Delete rows while keeping the rows with numrics

  1. #1
    Registered User
    Join Date
    10-06-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Delete rows while keeping the rows with numrics

    I am importing the file from the some simulation software for fluid mechanics. The data I am getting is in this format a.jpg. I want to keep the data with x,y,z coordinates, while removing all other data.

    Regards

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Delete rows while keeping the rows with numrics

    attach a sample file (xls) for testing
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    10-06-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Delete rows while keeping the rows with numrics

    Dear Patel

    Thanks for your time and prompt response.

    Here is the sample file for your reference. Book1.xlsx

    Thank again.

    Kind Regards
    Sijal
    Last edited by Sijal; 10-06-2012 at 11:21 AM.

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Delete rows while keeping the rows with numrics

    do you want coordinates in 3 separate cells , or as string as now ?
    Last edited by patel45; 10-06-2012 at 11:49 AM.

  5. #5
    Registered User
    Join Date
    10-06-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Delete rows while keeping the rows with numrics

    Dear Patel

    It would be even better to have coordinates in 3 separate cells, but even as string will do the job as I can convert them into column with command "text into column". I also need that the comma and other string should not be there with x,y,z coordinates.

    Regards
    Sijal

  6. #6
    Registered User
    Join Date
    10-06-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Delete rows while keeping the rows with numrics

    At the moment I just need the x,y,z coordinates whether separate or as string.

  7. #7
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,517

    Re: Delete rows while keeping the rows with numrics

    Give this a try

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  8. #8
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Delete rows while keeping the rows with numrics

    Please Login or Register  to view this content.

  9. #9
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,517

    Re: Delete rows while keeping the rows with numrics

    I missed that you wanted them put into separate columns try this

    Please Login or Register  to view this content.
    Last edited by mike7952; 10-06-2012 at 12:12 PM.

  10. #10
    Registered User
    Join Date
    10-06-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Delete rows while keeping the rows with numrics

    Dear Mike and Patel

    Thankyou for your help. I have tried the solution provided by Mike and it is awesome. But there is one problem in the last step. The x-coordinate which has two digits, the minus sign is missing. Any solution?

    Best Regards
    Sijal

  11. #11
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,517

    Re: Delete rows while keeping the rows with numrics

    Change this line. Make it +3 instead of +5

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    10-06-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Delete rows while keeping the rows with numrics

    Dear Mike

    Thank-you very much. Problem is solved.

    I also thank-you Patel and will give try to the VBA code you have just attached.

    Best Regards
    Sijal

+ 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