Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy Up To Top 10 To New Worksheet


This is a bit complex so I'll try and be as clear as I can, I really
hope someone can help as my job is at risk at the moment and a lot
depends on me getting as much work done as quickly as possible

I have attached a workbook with some raw data as an example.

I need to copy the data to a New Worksheet called Base_Data_2 so that I
don't lose the original data.

Then I need to find the top 20 code groups based on the total Value in
Column H. I have used a sumif in column O. But I expect there is a
better way.

Code VS has the highest overall value and I need to copy all of the
rows with a VS in column N to a new worksheet called Category_01.

I then need to sort the data by column H Descending and delete any data
below row 10 leaving me with the top 10.

Then move on to the code with the second highest overall value and copy
all of the rows with a CJCR code (just one in this case) in column N to
a new worksheet called Category_02.

I need to do this for the top 20 groups of codes in descending value.
(Note: for some of the data there might not be 20 groups of codes)

At the end I need to bring all of the data into a Summary Sheet copying
from Category_01, Category_02 ect to a Summary sheet.

All help much appreciated.


+-------------------------------------------------------------------+
|Filename: Example.xls |
|Download: http://www.thecodecage.com/attachment.php?attachmentid=26|
+-------------------------------------------------------------------+

--
Timbo
------------------------------------------------------------------------
Timbo's Profile: http://www.thecodecage.com/forumz/member.php?userid=24
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=35230

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Copy Up To Top 10 To New Worksheet

Timbo,
I have downloaded your workbook and I have to say I have no idea of what you
are trying to do. For starters: Column O is a Numeric column. What does
proper do for you?
For Each x In Range("O:O")
' There is not a Proper function in Visual Basic for Applications.
' So, you must use the worksheet function in the following form:
x.Value = Application.Proper(x.Value)
Next
"Timbo" wrote:


This is a bit complex so I'll try and be as clear as I can, I really
hope someone can help as my job is at risk at the moment and a lot
depends on me getting as much work done as quickly as possible

I have attached a workbook with some raw data as an example.

I need to copy the data to a New Worksheet called Base_Data_2 so that I
don't lose the original data.

Then I need to find the top 20 code groups based on the total Value in
Column H. I have used a sumif in column O. But I expect there is a
better way.

Code VS has the highest overall value and I need to copy all of the
rows with a VS in column N to a new worksheet called Category_01.

I then need to sort the data by column H Descending and delete any data
below row 10 leaving me with the top 10.

Then move on to the code with the second highest overall value and copy
all of the rows with a CJCR code (just one in this case) in column N to
a new worksheet called Category_02.

I need to do this for the top 20 groups of codes in descending value.
(Note: for some of the data there might not be 20 groups of codes)

At the end I need to bring all of the data into a Summary Sheet copying
from Category_01, Category_02 ect to a Summary sheet.

All help much appreciated.


+-------------------------------------------------------------------+
|Filename: Example.xls |
|Download: http://www.thecodecage.com/attachment.php?attachmentid=26|
+-------------------------------------------------------------------+

--
Timbo
------------------------------------------------------------------------
Timbo's Profile: http://www.thecodecage.com/forumz/member.php?userid=24
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=35230


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 & paste cells fr open worksheet then close the worksheet Sin Excel Programming 1 October 2nd 06 02:20 PM
Unable to Insert Worksheet/Move and copy worksheet Excel 2003 lukerush Excel Worksheet Functions 2 September 7th 06 05:05 PM
copy range on every worksheet (diff names) to a master worksheet (to be created) Bernie[_2_] Excel Programming 2 September 22nd 04 03:30 PM
copy range on every worksheet (diff names) to a master worksheet (to be created) Bernie[_3_] Excel Programming 0 September 22nd 04 03:26 PM
Code to copy range vs Copy Entire Worksheet - can't figure it out Mike Taylor Excel Programming 1 April 15th 04 08:34 PM


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