Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Compare and delete in excel

Hello All ,

here is some data i have in Excel in just one row

15023199 C
15023199 D
15023200 A
15023200 D
15023199 E
15023199 B
........
....
....
The Number Here is the sequence number and the Alphabet here is the
confidence level.
I need to compare data of each row with other and delete the row with same
sequence number and lowerconfidence level (A --high confidence----E-- high
confidence)

so inthe example above
15023199 should get B and 15023200 Should have an A.

thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Compare and delete in excel

If you can sort this data by sequence number then by confidence level,
you would have:

15023199 B
15023199 C
15023199 D
15023199 E
15023200 A
15023200 D

Then the value you want to retain will always be the first in any
block of numbers - this will make your coding easier to implement.

Hope this helps.

Pete

On Mar 21, 4:59 pm, Please help in building a Vba in excel
soft.com wrote:
Hello All ,

here is some data i have in Excel in just one row

15023199 C
15023199 D
15023200 A
15023200 D
15023199 E
15023199 B
.......
...
...
The Number Here is the sequence number and the Alphabet here is the
confidence level.
I need to compare data of each row with other and delete the row with same
sequence number and lowerconfidence level (A --high confidence----E-- high
confidence)

so inthe example above
15023199 should get B and 15023200 Should have an A.

thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Compare and delete in excel

i am week in coding stuff in excel, actually preety new ,

can you help me to build some macros or some VB code .

thanks for your reply

"Pete_UK" wrote:

If you can sort this data by sequence number then by confidence level,
you would have:

15023199 B
15023199 C
15023199 D
15023199 E
15023200 A
15023200 D

Then the value you want to retain will always be the first in any
block of numbers - this will make your coding easier to implement.

Hope this helps.

Pete

On Mar 21, 4:59 pm, Please help in building a Vba in excel
soft.com wrote:
Hello All ,

here is some data i have in Excel in just one row

15023199 C
15023199 D
15023200 A
15023200 D
15023199 E
15023199 B
.......
...
...
The Number Here is the sequence number and the Alphabet here is the
confidence level.
I need to compare data of each row with other and delete the row with same
sequence number and lowerconfidence level (A --high confidence----E-- high
confidence)

so inthe example above
15023199 should get B and 15023200 Should have an A.

thanks




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Compare and delete in excel

You don't need to do it by macro, but it is easy enough to turn on the
macro recorder to record the following actions and then play them back
in the future if you need to repeat them.

Ensure you have headings in row 1 - eg "Serial" in A1 and "Level" in
B1. Highlight all the data, including the headings and Data | Sort,
click Header Row and sort by Serial then by Level and click OK. Enter
a heading in C1 - "Check" - and this formula in C2:

=IF(A2=A1,"Remove","Keep")

Copy the formula down column C for as many entries as you have in A
and B. Highlight column C by clicking on the column identifier then
Data | Filter | Autofilter. Using the pull-down arrow in C1, select
"Remove". Highlight all the visible rows (not the headings) then Edit
| Delete Row. Use the pull-down in C1 to select All. Highlight column
C then Edit | Delete, and you will end up with the unique values you
require.

Hope this helps.

Pete


On Mar 21, 5:42 pm, Please help in building a Vba in excel
soft.com wrote:
i am week in coding stuff in excel, actually preety new ,

can you help me to build some macros or some VB code .

thanks for your reply



"Pete_UK" wrote:
If you can sort this data by sequence number then by confidence level,
you would have:


15023199 B
15023199 C
15023199 D
15023199 E
15023200 A
15023200 D


Then the value you want to retain will always be the first in any
block of numbers - this will make your coding easier to implement.


Hope this helps.


Pete


On Mar 21, 4:59 pm, Please help in building a Vba in excel
soft.com wrote:
Hello All ,


here is some data i have in Excel in just one row


15023199 C
15023199 D
15023200 A
15023200 D
15023199 E
15023199 B
.......
...
...
The Number Here is the sequence number and the Alphabet here is the
confidence level.
I need to compare data of each row with other and delete the row with same
sequence number and lowerconfidence level (A --high confidence----E-- high
confidence)


so inthe example above
15023199 should get B and 15023200 Should have an A.


thanks- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Compare and delete in excel

Thanks pete,

It works fine..but kind on manual process, will try to put it in a macro,

thanks a lot


"Pete_UK" wrote:

You don't need to do it by macro, but it is easy enough to turn on the
macro recorder to record the following actions and then play them back
in the future if you need to repeat them.

Ensure you have headings in row 1 - eg "Serial" in A1 and "Level" in
B1. Highlight all the data, including the headings and Data | Sort,
click Header Row and sort by Serial then by Level and click OK. Enter
a heading in C1 - "Check" - and this formula in C2:

=IF(A2=A1,"Remove","Keep")

Copy the formula down column C for as many entries as you have in A
and B. Highlight column C by clicking on the column identifier then
Data | Filter | Autofilter. Using the pull-down arrow in C1, select
"Remove". Highlight all the visible rows (not the headings) then Edit
| Delete Row. Use the pull-down in C1 to select All. Highlight column
C then Edit | Delete, and you will end up with the unique values you
require.

Hope this helps.

Pete


On Mar 21, 5:42 pm, Please help in building a Vba in excel
soft.com wrote:
i am week in coding stuff in excel, actually preety new ,

can you help me to build some macros or some VB code .

thanks for your reply



"Pete_UK" wrote:
If you can sort this data by sequence number then by confidence level,
you would have:


15023199 B
15023199 C
15023199 D
15023199 E
15023200 A
15023200 D


Then the value you want to retain will always be the first in any
block of numbers - this will make your coding easier to implement.


Hope this helps.


Pete


On Mar 21, 4:59 pm, Please help in building a Vba in excel
soft.com wrote:
Hello All ,


here is some data i have in Excel in just one row


15023199 C
15023199 D
15023200 A
15023200 D
15023199 E
15023199 B
.......
...
...
The Number Here is the sequence number and the Alphabet here is the
confidence level.
I need to compare data of each row with other and delete the row with same
sequence number and lowerconfidence level (A --high confidence----E-- high
confidence)


so inthe example above
15023199 should get B and 15023200 Should have an A.


thanks- Hide quoted text -


- Show quoted text -






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Compare and delete in excel

Turn the macro recorder on while you do it and you will have your
macro. You may need to edit it, for example to suit the number of data
items you have each time you run.

Good luck, and thanks for feeding back.

Pete

On Mar 22, 5:55 pm, Please help in building a Vba in excel
soft.com wrote:
Thanks pete,

It works fine..but kind on manual process, will try to put it in a macro,

thanks a lot



"Pete_UK" wrote:
You don't need to do it by macro, but it is easy enough to turn on the
macro recorder to record the following actions and then play them back
in the future if you need to repeat them.


Ensure you have headings in row 1 - eg "Serial" in A1 and "Level" in
B1. Highlight all the data, including the headings and Data | Sort,
click Header Row and sort by Serial then by Level and click OK. Enter
a heading in C1 - "Check" - and this formula in C2:


=IF(A2=A1,"Remove","Keep")


Copy the formula down column C for as many entries as you have in A
and B. Highlight column C by clicking on the column identifier then
Data | Filter | Autofilter. Using the pull-down arrow in C1, select
"Remove". Highlight all the visible rows (not the headings) then Edit
| Delete Row. Use the pull-down in C1 to select All. Highlight column
C then Edit | Delete, and you will end up with the unique values you
require.


Hope this helps.


Pete


On Mar 21, 5:42 pm, Please help in building a Vba in excel
soft.com wrote:
i am week in coding stuff in excel, actually preety new ,


can you help me to build some macros or some VB code .


thanks for your reply


"Pete_UK" wrote:
If you can sort this data by sequence number then by confidence level,
you would have:


15023199 B
15023199 C
15023199 D
15023199 E
15023200 A
15023200 D


Then the value you want to retain will always be the first in any
block of numbers - this will make your coding easier to implement.


Hope this helps.


Pete


On Mar 21, 4:59 pm, Please help in building a Vba in excel
soft.com wrote:
Hello All ,


here is some data i have in Excel in just one row


15023199 C
15023199 D
15023200 A
15023200 D
15023199 E
15023199 B
.......
...
...
The Number Here is the sequence number and the Alphabet here is the
confidence level.
I need to compare data of each row with other and delete the row with same
sequence number and lowerconfidence level (A --high confidence----E-- high
confidence)


so inthe example above
15023199 should get B and 15023200 Should have an A.


thanks- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I compare cells and if FALSE compare to next cell in EXCEL Cindie Excel Worksheet Functions 0 March 24th 06 05:29 PM
How to Delete a Range in Closed Workbook (to Replace Delete Query) [email protected] Excel Discussion (Misc queries) 1 March 8th 06 10:10 AM
Compare & Delete Centrol Excel Discussion (Misc queries) 2 September 26th 05 07:17 AM
How do i delete a macro in Excel 2003 when delete isn't highlight Abel Excel Discussion (Misc queries) 2 September 13th 05 04:09 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM


All times are GMT +1. The time now is 02:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"