LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default help with macro to delete entries in a table


hi all,

I have a spreadsheet that contains the copied and pasted contents of a
pivot table.
the data has lost its pivot properties so can be manipulated as
desired.

I have attached a simple worksheet outlining the problem in the zip
file.

what I need to do is go through the 'table' and examine each pivot
'group'
(by group I mean where is totals up a field so you have "field one" and
"field one total")
If you look in the attached spreadsheet, you can see "Committed
Projects" in A9.
to the right of that you can see (moving down) 6 cells of data and to
the right of them a value in column C.
I have to go through and delete any rows that have a '0' in C.
with this examlpe though, you can see that everything has a zero in
apart from C14.
I still need to keep the grouping, "Committed Projects" and "committed
projects total", so i'd need to shift the contents of C14 up to be C9

does this make sense?

can anybody suggest a way to do this?

previously I was using the following:

Code:
--------------------

For iRow = Range("C65536").End(xlUp).Row To 5 Step -1
If Range("C" & iRow).Value = 0 Then
Range("C" & iRow).EntireRow.Delete
End If
Next
--------------------


but this would then leave funny looking results as row 9 would have
been deleted.

thanks in advance,
Matt


+-------------------------------------------------------------------+
|Filename: exceltip.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4518 |
+-------------------------------------------------------------------+

--
matpj
------------------------------------------------------------------------
matpj's Profile: http://www.excelforum.com/member.php...o&userid=21076
View this thread: http://www.excelforum.com/showthread...hreadid=526021

 
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 entries in Go To hac1932 Excel Discussion (Misc queries) 0 March 13th 09 06:15 PM
How do I delete duplicate entries? Chris Mitchell Excel Worksheet Functions 3 November 4th 04 02:43 PM
How do I delete repeated entries. Benbo Excel Programming 1 August 25th 04 01:08 AM
Macro to delete duplicate entries Ray[_12_] Excel Programming 2 August 20th 04 02:12 AM
Macro to Refresh Pivot Table AND Delete Old Items Jason K[_3_] Excel Programming 1 September 25th 03 04:41 AM


All times are GMT +1. The time now is 11:49 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"