LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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

 
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
how to split a large excel file into multiple smaller exel files. RM Excel Discussion (Misc queries) 2 February 17th 10 10:13 PM
Split a worksheet into multiple worksheets of the same Excel file shree Excel Discussion (Misc queries) 1 November 4th 08 08:24 PM
How to split up one spreadsheet into multiple worksheets Gloria Lewis Excel Discussion (Misc queries) 1 March 3rd 08 05:18 PM
split results to multiple worksheets Rich Excel Worksheet Functions 3 April 11th 05 07:51 PM
Data from One Worksheet split into Multiple Worksheets DougJoe Excel Programming 2 January 19th 04 08:06 PM


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