Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below

Wow .. if this is possible, this would really help me get my work smoothed out!

Here's a sample of what I wanted to see when I'm done and then a sample of the raw data:

Done:

DRPA 1703.91 43493.18 17801.29 62998.38
DRPU 79.19 0 0 79.19
DRPW 57.6 1950.55 30 2038.15



Befo

DRPA 1703.91 43493.18 17801.29 0 0 0 1703.91 43493.18 17801.29
TOTAL = 62998.38 TOTAL = 0 TOTAL = 62998.38
.................................................. .................................................. ..................................
DRPU 79.19 0 0 0 0 0 79.19 0 0
TOTAL = 79.19 TOTAL = 0 TOTAL = 79.19
.................................................. .................................................. ..................................
DRPW 57.6 1950.55 30 0 0 0 57.6 1950.55 30
TOTAL = 2038.15 TOTAL = 0 TOTAL = 2038.15
.................................................. .................................................. ..................................

Is this possible in written macro?

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Delete every 3rd row, then delete rows 2-7, move info f/every 2ndrow up one to the end and delete the row below

It makes it easier to copy from your message if you post in plain text.

First, I'm guessing that each field/column has its own data.

If that's true, how about this manual effort:

Insert a new column to the right of your data.
=if(left(a1,3)="drp",b8,"deleteme")


But I can't tell if it's really B8 to keep or C9 or whatever.

But you'll be able to tell by just looking. Adjust the formula to match your
data.

Drag it down.

I'm hoping that you end up with good data on the good row and "deleteme" on all
the other.

Then Edit|copy that column
then Edit|paste special|values

Then apply data|filter|autofilter to that column
show only the Deleteme's.
delete the visible rows.

remove the filter and see if it worked.

Try it against a copy of your data--or close without saving!






--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below

Thanks, Dave .. but I'm seeing now that I really muffed my email totally
badly in that I meant to delete every 3rd row, then delete COLUMNS 2 through
7, then move the rows, etc. I was able to capture a lot of ideas from
previous posts and from codes I have in my collection. What you provided
also gave me some ideas

"Dave Peterson" wrote in message
...
It makes it easier to copy from your message if you post in plain text.

First, I'm guessing that each field/column has its own data.

If that's true, how about this manual effort:

Insert a new column to the right of your data.
=if(left(a1,3)="drp",b8,"deleteme")


But I can't tell if it's really B8 to keep or C9 or whatever.

But you'll be able to tell by just looking. Adjust the formula to match

your
data.

Drag it down.

I'm hoping that you end up with good data on the good row and "deleteme"

on all
the other.

Then Edit|copy that column
then Edit|paste special|values

Then apply data|filter|autofilter to that column
show only the Deleteme's.
delete the visible rows.

remove the filter and see if it worked.

Try it against a copy of your data--or close without saving!






--

Dave Peterson



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
Macro to delete blank rows and move data/info samoan Excel Discussion (Misc queries) 3 September 19th 08 04:50 PM
How to Delete a Range in Closed Workbook (to Replace Delete Query) [email protected] Excel Discussion (Misc queries) 1 March 8th 06 10:10 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM
how to delete the 1st letter form a set of rows of info. KimSingh Excel Worksheet Functions 3 February 28th 05 09:01 PM
I want to delete duplicate rows of similar info and use the lates. jsawyer Excel Discussion (Misc queries) 3 February 15th 05 11:17 PM


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