Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Another delete entire row

I have a spreadsheet imported from accounting software that shows all
customer activity in the last year by month.Column B through AA contains the
dollar amounts paid by the customer. What I want to do is delete any rows
that have zero balances in every column. If a row has any dollar amount over
zero then I want to keep that row. I hope this makes sense. Someone please
help.

--
______________________________
Thank you, Sean
Artist/Production Manager
Please visit us at www.oatesflag.com
502-267-8200
502-267-8246 fax


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Another delete entire row


For i = Cells(Rows.Count,"A").End(xlUp).Row Step -1
If WorksheetFunction.CountIf(Rows(i & ":" & i), "<0") 0 Then
Cells(i,"A").Entirerow.Delete
EDnd If
Next i

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Sean" wrote in message
...
I have a spreadsheet imported from accounting software that shows all
customer activity in the last year by month.Column B through AA contains

the
dollar amounts paid by the customer. What I want to do is delete any rows
that have zero balances in every column. If a row has any dollar amount

over
zero then I want to keep that row. I hope this makes sense. Someone please
help.

--
______________________________
Thank you, Sean
Artist/Production Manager
Please visit us at www.oatesflag.com
502-267-8200
502-267-8246 fax




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
Delete an entire row One-Leg Excel Discussion (Misc queries) 13 November 11th 08 08:27 PM
Delete an entire row if two cells...... Red2003XLT Excel Discussion (Misc queries) 3 April 30th 08 09:48 PM
Delete entire row if David T Excel Discussion (Misc queries) 2 December 6th 06 10:14 PM
Delete entire row if A1,2,3... is empty cimento cola Excel Programming 4 February 21st 04 04:31 PM
Delete Entire Row. Sam Excel Programming 5 December 21st 03 05:56 AM


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

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

About Us

"It's about Microsoft Excel"