LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Extracting rows based on value in first row

I would like to create a macro that after the data is sorted and subtotaled,
it would go to a cell, for instance cost center, and all the cells and the
enitre rows that match that cost center be copied and added to a new
worksheet. I have created the macro to insert the new sheet and copy and
paste the data in the correct position by using the end up or down command,
but often the cells that are selected may include the wrong rows, especially
if there is only one cost center in that group. If I could write the macro
to recognize only the cost center number and select the cells based on that
number I believe all would work. I would like it to look at the first row of
the group after subtotalling and copy all the rows with that cost center.
Any help would be appreciated.
 
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
Extracting Rows based on a number in a field Yookaroo Excel Worksheet Functions 2 June 26th 09 10:46 PM
Extracting specific rows out of one worksheet based on an identifi Patrick Excel Discussion (Misc queries) 1 March 31st 09 04:23 PM
Extracting rows based on fixed criteria EdMac Excel Discussion (Misc queries) 6 July 6th 06 07:07 PM
Extracting HTML from web based query? 99atlantic Excel Discussion (Misc queries) 1 June 15th 06 11:15 PM
Extracting data based on content loopkid1 Excel Discussion (Misc queries) 5 March 7th 06 03:08 PM


All times are GMT +1. The time now is 05:53 PM.

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"