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 Macro To Delete Filtered Pivot Table Data

XL 2000
XP SP2

I created a Pivot table and now I want to filter or delete the results to
consolidate it further. The current results look like the following;

MID VID Cost Date
100 100 .12 05-05-06
100 112 .11 03-01-05
100 122 .09 01-02-03
101 150 .50 07-26-05
101 161 .55 06-25-02
102 170 .60 05-25-06
102 180 .61 05-02-06
102 192 .59 03-04-06
103 200 .80 05-30-06
103 205 .79 04-05-05
103 208 .78 02-25-04
103 300 .75 04-05-03

I have sorted the data so that the most recent date is always the first for
each MID number. I would like to be able to run a macro that will look at
the column of MID numbers that are the same and then delete all but the
first row of data. In other words it will delete the rows with the oldest
dates for each MID. It should look like the following:

MID VID Cost Date
100 100 .12 05-05-06
101 150 .50 07-26-05
102 170 .60 05-25-06
103 200 .80 05-30-06

I could manually delete each row but the list is over 3,000 rows.

Thanks for any help,

Roger



 
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
How can i get a sum of the data filtered in a pivot table tarabull Excel Discussion (Misc queries) 1 March 26th 09 02:13 PM
Using Pivot Table to Display Filtered Data Only Dawg House Inc Excel Discussion (Misc queries) 6 February 14th 07 01:03 AM
Pivot Table - display filtered data Jeff M Excel Programming 0 October 16th 05 05:50 PM
filtered recodset to pivot table (or not) Robin Hammond[_2_] Excel Programming 2 July 19th 04 07:44 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 08:59 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"