If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Excel Help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-04-04, 17:29
exdter exdter is offline
Registered User
 
Join Date: Aug 2003
Posts: 328
Excel Help

I have an Excel sheet that looks like this:

Name: Name1
Company: Company1
email: email1

Name: Name2
Company: Company2
email: email2

Name: Name3
Company: Company3

Name: Name4
Company: Company4
email: email4

As you can see, some entries have a name, company, and email, while others only have name and company. I would like to know how to delete only those entries that have a name and company, but no email. Is this possible?
Thanks
Reply With Quote
  #2 (permalink)  
Old 08-11-04, 14:42
JerryDal JerryDal is offline
Registered User
 
Join Date: Jan 2002
Location: Bay Area
Posts: 473
Here is a formula and attached Excel example of how to mark rows to delete, where there is no "email:" label. The asterisk symbol * means AND, the plus symbol + means OR.

=IF((A1="Company:")*(A2="")+(A1="Name:")*(A3="")," DEL","")

Then you delete all rows with "DEL" displayed.

The formula reads: if column A cell is "Company:" and the next cell is blank, or if column A cell is "Name:" and 3rd cell down is blank, then display "DEL", otherwise display nothing.

Jerry
Attached Files
File Type: zip Example.zip (1.6 KB, 16 views)
Reply With Quote
  #3 (permalink)  
Old 08-13-04, 09:49
exdter exdter is offline
Registered User
 
Join Date: Aug 2003
Posts: 328
Thank you very much. That was a huge help!!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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