Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2007

Tip: Looking for answers? Try searching our database.

Removing items from worksheet by account number question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LiveUser - 09 Nov 2007 15:53 GMT
I need to remove everything that is related to one account number and so on
for other account numbers is there a way to do this or a way to highlight
them...

Thank you.
Bernard Liengme - 09 Nov 2007 20:40 GMT
You need to tell us how the data is set out
Signature

Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

>I need to remove everything that is related to one account number and so on
> for other account numbers is there a way to do this or a way to highlight
> them...
>
> Thank you.
LiveUser - 09 Nov 2007 21:20 GMT
1st worksheet (Master) - I want to delete from Master
    A             B>H
Account 1      Data
Account 1      Data
Account 1      Data
Account 2      Data
Account 3      Data
Account 3      Data
Account 3      Data
Account 3      Data

2nd worksheet (Accounts to be deleted)

    A
Account 1
Account 3
Account 7
Accoun 25
Account 100

Thank you.

> You need to tell us how the data is set out
> >I need to remove everything that is related to one account number and so on
> > for other account numbers is there a way to do this or a way to highlight
> > them...
> >
> > Thank you.
Bernard Liengme - 10 Nov 2007 13:31 GMT
I will assume on Sheet1 (Master) the top row has labels (account, etc)
I will assume on Sheet2 the account numbers are in column A
On the Master sheet, insert a new column A; label it Code
In A2 enter the formula =COUNTIF(Sheet2!A:A,B2)
Copy down the column (quickest way is to double click the fill handle -
small solid square in lower right corner of select cell)
Accounts that are NOT to be deleted with have 0, the others will have 1 in
the Code column
Select all the data on the Master sheet and use Data | Sort, sort by the
Code
Now you can readily delete all the rows with 1 in column A.
when this is done you may delete column A
best wishes
Signature

Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

> 1st worksheet (Master) - I want to delete from Master
>     A             B>H
[quoted text clipped - 26 lines]
>> >
>> > Thank you.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.