Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Split a worksheet into multiple worksheets of the same Excel file

Hi,

I'm looking for an example of how to split an excel worksheet into
multiple worksheet based on value in a specified column. This is
illustrated through the following example. Suppose I have an input
file that looks like this. I want to split it into multiple
worksheets all contained in the same excel file such that there is one
sheet per value in the 2nd column. Any help pointers would be greatly
appreciated.

Another feature - this is nice to have..but not essential..is, I would
like to color code data lines based on values in 3rd column. If the
value is 1, the text in those data lines in the resulting worksheet
would be red, if its 2 - those lines would be green, 3 would be blue.

Thank you,
Shree

Input File consisting of 3 columns (Name, Functional Area, Code)
===========
Sheet 1 (overall list of records)

Name Functional Area Code
name1 Engineering 1
name2 Sales 2
name3 Manufacturing 1
name4 Engineering 3
name5 Sales 4


Output File
===========
Sheet 1 - same as the Input File
Subsequent sheets - one per Functional area
Hence, from the above example

Sheet 2 (Engineering)
Name Functional Area Code
name1 Engineering 1
name4 Engineering 3

Sheet 3 (Sales)
Name Functional Area Code
name2 Sales 2
name5 Sales 4

Sheet 3 (Manufacturing)
Name Functional Area Code
name3 Manufacturing 1

  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Split a worksheet into multiple worksheets of the same Excel file

hi shree

You can start here
http://www.rondebruin.nl/copy5.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"shree" wrote in message ...
Hi,

I'm looking for an example of how to split an excel worksheet into
multiple worksheet based on value in a specified column. This is
illustrated through the following example. Suppose I have an input
file that looks like this. I want to split it into multiple
worksheets all contained in the same excel file such that there is one
sheet per value in the 2nd column. Any help pointers would be greatly
appreciated.

Another feature - this is nice to have..but not essential..is, I would
like to color code data lines based on values in 3rd column. If the
value is 1, the text in those data lines in the resulting worksheet
would be red, if its 2 - those lines would be green, 3 would be blue.

Thank you,
Shree

Input File consisting of 3 columns (Name, Functional Area, Code)
===========
Sheet 1 (overall list of records)

Name Functional Area Code
name1 Engineering 1
name2 Sales 2
name3 Manufacturing 1
name4 Engineering 3
name5 Sales 4


Output File
===========
Sheet 1 - same as the Input File
Subsequent sheets - one per Functional area
Hence, from the above example

Sheet 2 (Engineering)
Name Functional Area Code
name1 Engineering 1
name4 Engineering 3

Sheet 3 (Sales)
Name Functional Area Code
name2 Sales 2
name5 Sales 4

Sheet 3 (Manufacturing)
Name Functional Area Code
name3 Manufacturing 1

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
Split one worksheet to multiple Carolina Girl Excel Worksheet Functions 1 October 8th 08 04:56 PM
how can I split the worksheet in two different worksheets Eva New Users to Excel 1 July 23rd 08 10:11 AM
How to split up one spreadsheet into multiple worksheets Gloria Lewis Excel Discussion (Misc queries) 1 March 3rd 08 05:18 PM
i want to open large file 300 col, how to split between worksheets bluelagoon_HP Excel Discussion (Misc queries) 5 July 29th 06 12:28 AM
split results to multiple worksheets Rich Excel Worksheet Functions 3 April 11th 05 07:51 PM


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