Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Copy Row and row above to new sheet

Hi,
I have a sheet with subtotals sample data:
PART CPART JAN FEB MAR etc TOTAL
XYZ XYZ-1 500 1500 500
XYZ XYZ-1 100 2000 1000
600 3500 1500 5600 (This is subtotal row)
XYZZ XYZ-15 2000 1000 500
XYZZ XYZ-15 500 1000 1000
2500 2000 1500 6000 (This is subtotal row)
The end product I would like to get is:
PART CPART JAN FEB MAR etc TOTAL
XYZ XYZ-1 600 3500 1500 5600
XYZZ XYZ-15 2500 2000 1500 6000

Basically, need one row that shows the part,cpart,subtotals. Right now
Manually I would have to copy The Part,CPART then The subtotals, which if I
have alot of parts would be to time consuming.

So thinking need a few steps:
1. If Column A empty then copy as values that row and row above to new sheet.
2. In new sheet if Column A empty then move that row Up.

I hope I'm explaining this correctly. I know that I can delete a row if
column a is empty but need to figure out how to copy that row and row above
to new sheet.

Please advise any help. Really appreciate it
Juan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Copy Row and row above to new sheet

I'd remove the subtotals and then let excel put them in:

Data|subtotals (maybe twice???)

Then use the outlining symbols to hide the details.

===
It sounds like a perfect excuse to learn about pivottables (data|pivotable).

To read more about the pivottable stuff, you may want to look at some links:

Debra Dalgleish's pictures at Jon Peltier's site:
http://peltiertech.com/Excel/Pivots/pivottables.htm
And Debra's own site:
http://www.contextures.com/xlPivot01.html

John Walkenbach also has some at:
http://j-walk.com/ss/excel/files/general.htm
(look for Tony Gwynn's Hit Database)

Chip Pearson keeps Harald Staff's notes at:
http://www.cpearson.com/excel/pivots.htm

MS has some at (xl2000 and xl2002):
http://office.microsoft.com/downloads/2000/XCrtPiv.aspx
http://office.microsoft.com/assistan...lconPT101.aspx

Juan wrote:

Hi,
I have a sheet with subtotals sample data:
PART CPART JAN FEB MAR etc TOTAL
XYZ XYZ-1 500 1500 500
XYZ XYZ-1 100 2000 1000
600 3500 1500 5600 (This is subtotal row)
XYZZ XYZ-15 2000 1000 500
XYZZ XYZ-15 500 1000 1000
2500 2000 1500 6000 (This is subtotal row)
The end product I would like to get is:
PART CPART JAN FEB MAR etc TOTAL
XYZ XYZ-1 600 3500 1500 5600
XYZZ XYZ-15 2500 2000 1500 6000

Basically, need one row that shows the part,cpart,subtotals. Right now
Manually I would have to copy The Part,CPART then The subtotals, which if I
have alot of parts would be to time consuming.

So thinking need a few steps:
1. If Column A empty then copy as values that row and row above to new sheet.
2. In new sheet if Column A empty then move that row Up.

I hope I'm explaining this correctly. I know that I can delete a row if
column a is empty but need to figure out how to copy that row and row above
to new sheet.

Please advise any help. Really appreciate it
Juan


--

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
copy rows from one Data sheet to another sheet based on cell conte John McKeon Excel Discussion (Misc queries) 2 May 15th 10 06:49 AM
Copy Sheet to new Sheet and clear cells on original sheets Boiler-Todd Excel Discussion (Misc queries) 7 September 23rd 09 10:02 PM
Auto Copy/autofill Text from sheet to sheet if meets criteria Joyce Excel Discussion (Misc queries) 0 November 20th 08 11:05 PM
relative sheet references ala sheet(-1)!B11 so I can copy a sheet. RonMc5 Excel Discussion (Misc queries) 9 February 3rd 05 12:51 AM
providing a sheet-copy event or copy CustomProperties Carlos Cortes Excel Programming 2 November 11th 04 08:24 AM


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