using formula delete selection
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Using formula to delete selection of non-empty rows

Using formula to delete selection of non-empty rows

The UK's most regular instructor-led training courses.
Training information: excel word powerpoint courses london · Microsoft+excel+training · Microsoft Excel Training UK
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Medium Priority · Version 2003

Using formula to delete selection of non-empty rows

Linda has attended:
Excel Advanced course
Excel VBA course

by - delegate Linda [7 posts] (2008 Jul 1 Tue, 14:34) replyReply

Hi there, I have a big table and each month I have to delete out some old lines and send it to clients. I want to know if there is a way to "say" to excel "if this cell is less than x THEN delete row." Any suggestions?

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2008 Nov 25 Tue Bloomsbury 0 FULL    
2003 2008 Nov 27 Thu Southwark 3 book now £210 £215
2007 2008 Nov 28 Fri Bloomsbury 0 FULL    
2003 2008 Dec 2 Tue Bloomsbury 3 book now £210 £215
2003 2008 Dec 4 Thu Bayswater 6 book now £195 £205
2007 2008 Dec 8 Mon Bayswater 5 book now £212 £224
Full Schedule: See all 113 Excel Intermediate course dates.
Bookings currently available until 25th November 2009.

RE: using formula to delete selection of non-empty rows

by - trainer Pete platinum contributer[799 posts] (2008 Jul 7 Mon, 09:20) replyReply

Hi Linda,

Thank you for the post, in response, without knowing exactly how your table works I have created a little scenario, hopefully you can adapt this to your problem:

For example; Cells A1:A100 have the data that you wish to check. Now to locate the "less than x" entries to be deleted, I would use the following formula in cell B1 ... =--(IF(A1<"x",0,"")) (where "x" is your criteria)

and I then would copy this down to cells B2:B100 (double click on the fill handle in B1)

Then I would select cells C1:C100, and action the following command; EDIT|Goto|Special|Formulas|Errors and the cells showing #VALUE errors would be selected.

(Note this selection would be easier if the range was named.)

Then action; Edit|Delete|Entire row

You might consider recording all that lot into a macro, then you have it automated:

I hope that has helped, regards Pete


Related articles

· Reporting and Analysis with Excel
· Excel and Inventory Management
· Creating Charts with Excel
· Basic Excel Training
· An Introduction to Microsoft Excel: Top Features for the Excel Novice

Please browse our web site to find out more about
excel word powerpoint courses london and other Microsoft training courses.

Excel tip:

Using Excel's MODE function

Use Excel's MODE function to display the most common value present in a particular range of cells.

The Mode function looks like this:

=MODE(cell range)

As an example, if 35 is the most commonly recurring number in a particular cell range, then the function will display 35.

View all Excel hints and tips

Rate this page:
3.5/5 (2 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz