Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Benson
 
Posts: n/a
Default Delete rows based on multiple criterias

Hi there,

I have a task i have to complete weekly which is really starting to bore me!!

Basically, i receive a report in excel detailing the SMS messages everybody
in the company has sent. I.e. i have a date, senders email, destination,
first name, last name, blah blah blah and the actual message sent. Now im
only interested in the messages sent by my company and not out sister company.

What i have been doing is auto filtering on the Senders email column for the
lines im not interested in and manually delete them, thus leaving me with
just the ones i want to analyse. My question is, does anybody have an idea
how to automaticaaly do this? When the rows i DONT want are identified i
could do with the entire row being deleted, not just the email address cell.

Thanks in advanced, any further info required please let me know!
  #2   Report Post  
bpeltzer
 
Posts: n/a
Default Delete rows based on multiple criterias

I'd keep a (growing) list of email addresses to delete. Then when you get
the weekly log, Data Filter Advanced Filter. The list range would be
your new log and the criteria would be your running list. The filter will
leave only the rows to delete visibile, so you can just select them all and
delete. As you go through the ones that remain, you'll find new addresses to
add to your 'delete list'.
HTH. --Bruce

"Benson" wrote:

Hi there,

I have a task i have to complete weekly which is really starting to bore me!!

Basically, i receive a report in excel detailing the SMS messages everybody
in the company has sent. I.e. i have a date, senders email, destination,
first name, last name, blah blah blah and the actual message sent. Now im
only interested in the messages sent by my company and not out sister company.

What i have been doing is auto filtering on the Senders email column for the
lines im not interested in and manually delete them, thus leaving me with
just the ones i want to analyse. My question is, does anybody have an idea
how to automaticaaly do this? When the rows i DONT want are identified i
could do with the entire row being deleted, not just the email address cell.

Thanks in advanced, any further info required please let me know!

  #3   Report Post  
Benson
 
Posts: n/a
Default Delete rows based on multiple criterias

Hi there,

Thanks for the quick response....but i dont understand :-( Where would i
keep the list of email addresses to delete? I have tried a custom filter on
auto filter but it only allows you to specify 3 addresses to filter out!

Can you explain in a little more detail please? Thanks again!

"bpeltzer" wrote:

I'd keep a (growing) list of email addresses to delete. Then when you get
the weekly log, Data Filter Advanced Filter. The list range would be
your new log and the criteria would be your running list. The filter will
leave only the rows to delete visibile, so you can just select them all and
delete. As you go through the ones that remain, you'll find new addresses to
add to your 'delete list'.
HTH. --Bruce

"Benson" wrote:

Hi there,

I have a task i have to complete weekly which is really starting to bore me!!

Basically, i receive a report in excel detailing the SMS messages everybody
in the company has sent. I.e. i have a date, senders email, destination,
first name, last name, blah blah blah and the actual message sent. Now im
only interested in the messages sent by my company and not out sister company.

What i have been doing is auto filtering on the Senders email column for the
lines im not interested in and manually delete them, thus leaving me with
just the ones i want to analyse. My question is, does anybody have an idea
how to automaticaaly do this? When the rows i DONT want are identified i
could do with the entire row being deleted, not just the email address cell.

Thanks in advanced, any further info required please let me know!

  #4   Report Post  
bpeltzer
 
Posts: n/a
Default Delete rows based on multiple criterias

Keep the 'delete table' separate (probably in a separate workbook). And it's
not a customer filter but an Advanced Filter. For that, you have to specify
the criteria range, which would be this separate table. The key to make that
work is that the column headers in your criteria table must match the column
headers in your log.
Ex: if your log has columns including 'Date' 'Sender' 'Text, ... and you
only want to filter out based on 'Sender', your 'delete table' would have one
column with the header 'Sender', followed by all the senders you want to
delete.
You'd highlight your new weekly log, then go to the menu: Data Filter
Advanced Filter. Excel will default to the highlighted range as the List
Range. This is correct, so click in the Criteria Range text box, click the
spreadsheet icon and select your 'delete table' (including the header!).
Click OK and only the entries matching your delete list will remain visible.
Delete those then turn off the filter.

"Benson" wrote:

Hi there,

Thanks for the quick response....but i dont understand :-( Where would i
keep the list of email addresses to delete? I have tried a custom filter on
auto filter but it only allows you to specify 3 addresses to filter out!

Can you explain in a little more detail please? Thanks again!

"bpeltzer" wrote:

I'd keep a (growing) list of email addresses to delete. Then when you get
the weekly log, Data Filter Advanced Filter. The list range would be
your new log and the criteria would be your running list. The filter will
leave only the rows to delete visibile, so you can just select them all and
delete. As you go through the ones that remain, you'll find new addresses to
add to your 'delete list'.
HTH. --Bruce

"Benson" wrote:

Hi there,

I have a task i have to complete weekly which is really starting to bore me!!

Basically, i receive a report in excel detailing the SMS messages everybody
in the company has sent. I.e. i have a date, senders email, destination,
first name, last name, blah blah blah and the actual message sent. Now im
only interested in the messages sent by my company and not out sister company.

What i have been doing is auto filtering on the Senders email column for the
lines im not interested in and manually delete them, thus leaving me with
just the ones i want to analyse. My question is, does anybody have an idea
how to automaticaaly do this? When the rows i DONT want are identified i
could do with the entire row being deleted, not just the email address cell.

Thanks in advanced, any further info required please let me know!

  #5   Report Post  
Benson
 
Posts: n/a
Default Delete rows based on multiple criterias

That works a treat :-)

Thanks very much for your help....one thing i have changed from what you
suggested though. Instead of doing a list of not allowed email addresses i
have created one for "allowed addresses". This then leaves a list of the SMS
messages i want so i can Ctrl+* then Alt+; to select the values "on top" then
copy them out!

"bpeltzer" wrote:

Keep the 'delete table' separate (probably in a separate workbook). And it's
not a customer filter but an Advanced Filter. For that, you have to specify
the criteria range, which would be this separate table. The key to make that
work is that the column headers in your criteria table must match the column
headers in your log.
Ex: if your log has columns including 'Date' 'Sender' 'Text, ... and you
only want to filter out based on 'Sender', your 'delete table' would have one
column with the header 'Sender', followed by all the senders you want to
delete.
You'd highlight your new weekly log, then go to the menu: Data Filter
Advanced Filter. Excel will default to the highlighted range as the List
Range. This is correct, so click in the Criteria Range text box, click the
spreadsheet icon and select your 'delete table' (including the header!).
Click OK and only the entries matching your delete list will remain visible.
Delete those then turn off the filter.

"Benson" wrote:

Hi there,

Thanks for the quick response....but i dont understand :-( Where would i
keep the list of email addresses to delete? I have tried a custom filter on
auto filter but it only allows you to specify 3 addresses to filter out!

Can you explain in a little more detail please? Thanks again!

"bpeltzer" wrote:

I'd keep a (growing) list of email addresses to delete. Then when you get
the weekly log, Data Filter Advanced Filter. The list range would be
your new log and the criteria would be your running list. The filter will
leave only the rows to delete visibile, so you can just select them all and
delete. As you go through the ones that remain, you'll find new addresses to
add to your 'delete list'.
HTH. --Bruce

"Benson" wrote:

Hi there,

I have a task i have to complete weekly which is really starting to bore me!!

Basically, i receive a report in excel detailing the SMS messages everybody
in the company has sent. I.e. i have a date, senders email, destination,
first name, last name, blah blah blah and the actual message sent. Now im
only interested in the messages sent by my company and not out sister company.

What i have been doing is auto filtering on the Senders email column for the
lines im not interested in and manually delete them, thus leaving me with
just the ones i want to analyse. My question is, does anybody have an idea
how to automaticaaly do this? When the rows i DONT want are identified i
could do with the entire row being deleted, not just the email address cell.

Thanks in advanced, any further info required please let me know!



  #6   Report Post  
bpeltzer
 
Posts: n/a
Default Delete rows based on multiple criterias

Happy to help. Just recognize that if your list is 'allowed addresses', it
will be on you to know when you have to add to the list (you'll never see the
new addresses because they'll get filtered out before your copy operation).
--Bruce

"Benson" wrote:

That works a treat :-)

Thanks very much for your help....one thing i have changed from what you
suggested though. Instead of doing a list of not allowed email addresses i
have created one for "allowed addresses". This then leaves a list of the SMS
messages i want so i can Ctrl+* then Alt+; to select the values "on top" then
copy them out!

"bpeltzer" wrote:

Keep the 'delete table' separate (probably in a separate workbook). And it's
not a customer filter but an Advanced Filter. For that, you have to specify
the criteria range, which would be this separate table. The key to make that
work is that the column headers in your criteria table must match the column
headers in your log.
Ex: if your log has columns including 'Date' 'Sender' 'Text, ... and you
only want to filter out based on 'Sender', your 'delete table' would have one
column with the header 'Sender', followed by all the senders you want to
delete.
You'd highlight your new weekly log, then go to the menu: Data Filter
Advanced Filter. Excel will default to the highlighted range as the List
Range. This is correct, so click in the Criteria Range text box, click the
spreadsheet icon and select your 'delete table' (including the header!).
Click OK and only the entries matching your delete list will remain visible.
Delete those then turn off the filter.

"Benson" wrote:

Hi there,

Thanks for the quick response....but i dont understand :-( Where would i
keep the list of email addresses to delete? I have tried a custom filter on
auto filter but it only allows you to specify 3 addresses to filter out!

Can you explain in a little more detail please? Thanks again!

"bpeltzer" wrote:

I'd keep a (growing) list of email addresses to delete. Then when you get
the weekly log, Data Filter Advanced Filter. The list range would be
your new log and the criteria would be your running list. The filter will
leave only the rows to delete visibile, so you can just select them all and
delete. As you go through the ones that remain, you'll find new addresses to
add to your 'delete list'.
HTH. --Bruce

"Benson" wrote:

Hi there,

I have a task i have to complete weekly which is really starting to bore me!!

Basically, i receive a report in excel detailing the SMS messages everybody
in the company has sent. I.e. i have a date, senders email, destination,
first name, last name, blah blah blah and the actual message sent. Now im
only interested in the messages sent by my company and not out sister company.

What i have been doing is auto filtering on the Senders email column for the
lines im not interested in and manually delete them, thus leaving me with
just the ones i want to analyse. My question is, does anybody have an idea
how to automaticaaly do this? When the rows i DONT want are identified i
could do with the entire row being deleted, not just the email address cell.

Thanks in advanced, any further info required please let me know!

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
Can I delete blank rows from excel without selecting them? rgtest Excel Worksheet Functions 9 February 14th 09 03:12 PM
Delete Rows based on criteria in excel Novaglory Excel Discussion (Misc queries) 5 July 10th 07 08:29 PM
delete rows from multiple worksheets dckrause Excel Worksheet Functions 1 June 1st 05 03:24 AM
generate multiple rows based on cell value Theresa Excel Worksheet Functions 0 May 25th 05 11:18 PM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM


All times are GMT +1. The time now is 01:22 AM.

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"