+ Reply to Thread
Results 1 to 9 of 9

Deletion of excel lines starting from specific text

  1. #1
    Registered User
    Join Date
    06-30-2011
    Location
    New Delhi
    MS-Off Ver
    Excel 2003
    Posts
    46

    Deletion of excel lines starting from specific text

    well, i had put some query few time back, but did'nt get usefull response. All i need to know that is there any way through which we can delete those excel rows which starts from some special text like: Molecular weight,G+C content, Length etc........... Actually i have an excel file which looks something like below......and i need the addition or sum of the data under Number column




    DNA molecule: Contig1
    Length = 10221 base pairs
    Molecular Weight = 3117106.00 Daltons, single stranded
    Molecular Weight = 6206947.00 Daltons, double stranded
    G+C content = 45.48
    A+T content = 52.90

    Nucleotide Number Mol
    A 3044 29.78
    C 2452 23.99
    G 2196 21.49
    T 2363 23.12
    N 166 1.62



    DNA molecule: Contig2
    Length = 6218 base pairs
    Molecular Weight = 1883258.00 Daltons, single stranded
    Molecular Weight = 3774966.00 Daltons, double stranded
    G+C content = 43.42
    A+T content = 52.91

    Nucleotide Number Mol
    A 1652 26.57
    C 1240 19.94
    G 1460 23.48
    T 1638 26.34
    N 228 3.67

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Deletion of excel lines starting from specific text

    You will need to explain some more. Maybe attach a sample excel file.

    Your above data does not explain much.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    06-30-2011
    Location
    New Delhi
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Deletion of excel lines starting from specific text

    ok, so for ur reference i m attaching the file, if u r able to understand the problem then reply me....
    Attached Files Attached Files

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Deletion of excel lines starting from specific text

    Why is row 6 deleted from Sheet1? Confidence_0.176_Length_582 is not duplicating where column D = Mack.

  5. #5
    Registered User
    Join Date
    06-30-2011
    Location
    New Delhi
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Deletion of excel lines starting from specific text

    seems like u had posted some one elses query, as there is data in row 6.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Deletion of excel lines starting from specific text

    No no, what i meant to ask is - why should row 6 be deleted?

    If you check the output in rows 11 onwards, row 6 is not showing.

  7. #7
    Registered User
    Join Date
    06-30-2011
    Location
    New Delhi
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Deletion of excel lines starting from specific text

    heyy big big sorry, actually i had uploaded the wrong file earlier from my desktop. Just bcoz of hurry couldnt uploaded the accurate file. So i m now uploading the correct one..
    Really sorry for the previous one.....
    Attached Files Attached Files

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Deletion of excel lines starting from specific text

    Can you specify what content in the rows need to be deleted?

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Deletion of excel lines starting from specific text

    If you review the answer in your other thread, this whole process may be unnecessary.

    http://www.excelforum.com/excel-gene...bles-data.html
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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