+ Reply to Thread
Results 1 to 6 of 6

delete rows but count data

  1. #1
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    delete rows but count data

    Is there a way to take this file and delete duplicates found in column B but count all of the duplicates with OK in column D? Would be ok to add a column to the sheet that shows count.
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Tortus,

    After looking at the file, I am not sure what criteria you are using for a duplicate. There are other columns that, seem to me, could influence the decision, like the date/time. Is the entire row to be deleted if a duplicate is found?

    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417
    column B would be the duplicates. column B shows the points that alarm and they need to be counted but they don't need to be duplicated in the sheet.

    example would be row 26 should be deleted and row 27 stay and in a new column beside column B should show a 2

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Tortus,

    Row 26 goes and row 27 stays. So, delete duplicates if there is no OK in column "D". Do you want just the value in cell "B" deleted or other columns in that same row deleted as well?

    Sincerely,
    Leith Ross

  5. #5
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417
    Keep the OK rows and delete everything else.

    headers should be something like this

    TIME SOURCE CONDITION SOURCECOUNT STATUS LEVEL DESCRIPTION VALUE UNITS you can delete the operator also

    Sourcecount should be added and should show the sum of the duplicates.



    What I've done with this is record a macro that imports a text file into excel. I'm going to use the code that filters the data in this way to finnish the macro... it will be cool! I'm going to attach a file that will show what I think it should look like when done... I'm only going to use a few rows for example
    Last edited by Tortus; 01-14-2009 at 06:08 PM.

  6. #6
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417
    I used the first 2 Source tags to show the example
    Attached Files Attached Files

+ 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