Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need help in Excel Programming

Hi,

I have a workbook that consists of Sheet 1 and Sheet 2 as example below.

Sheet 1
Market|Name|Salary
A|Andy|1000
A|Janice|500
B|Fong|800
C|Lisa|890

Sheet 2
Market|State|Revenue Jan|Revenue Feb
A|AB|9000|9780
A|AC|8000|7000
D|DF|9000|8000

First, I would like to identify unique value for Market from both sheets. It
should returns A from Sheet 1 and 2, B and C from Sheet 1 and also D from
Sheet 2.

Then I will make a new workbook for each unique value in which this new
workbook will consist 2 Sheet per format in Sheet and 2 as above.

Hence Workbook A is looks like this:
Sheet 1
Market|Name|Salary
A|Andy|1000
A|Janice|500

Sheet 2
A|AB|9000|9780
A|AC|8000|7000

While workbook B is:
Sheet 1:
Market|Name|Salary
B|Fong|800

and no Sheet 2 as B value is not found is data source.

Please assist. Thanks and cheers
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 897
Default Need help in Excel Programming

It sounds like you want a simple autofilter. Simply filter on the
'Market' column for "A" and it will show you all rows with "A" in that
column.

Check out: http://www.contextures.com/xlautofilter01.html

If you now wanted to copy them to a new sheet, simply highlight the
visible rows and paste them into a new sheet.

For a VBA solution check out: http://www.mrexcel.com/archive2/1800/2071.htm

or
http://www.rondebruin.nl/copy5.htm


HTH,
JP

On Jan 28, 10:45*am, Jacey wrote:
Hi,

I have a workbook that consists of Sheet 1 and Sheet 2 as example below.

Sheet 1
Market|Name|Salary
A|Andy|1000
A|Janice|500
B|Fong|800
C|Lisa|890

Sheet 2
Market|State|Revenue Jan|Revenue Feb
A|AB|9000|9780
A|AC|8000|7000
D|DF|9000|8000

First, I would like to identify unique value for Market from both sheets. It
should returns A from Sheet 1 and 2, B and C from Sheet 1 and also D from
Sheet 2.

Then I will make a new workbook for each unique value in which this new
workbook will consist 2 Sheet per format in Sheet and 2 as above.

Hence Workbook A is looks like this:
Sheet 1
Market|Name|Salary
A|Andy|1000
A|Janice|500

Sheet 2
A|AB|9000|9780
A|AC|8000|7000

While workbook B is:
Sheet 1:
Market|Name|Salary
B|Fong|800

and no Sheet 2 as B value is not found is data source.

Please assist. Thanks and cheers


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
ADO programming and Excel Mark \(InWales\)[_26_] Excel Programming 2 March 15th 05 09:32 PM
vfp - excel programming No Name Excel Programming 7 May 21st 04 02:44 PM
Very New in Excel Programming Wael Mabsout Excel Programming 0 January 18th 04 07:26 PM
how to programming Excel in C# Weimin Zhang Excel Programming 0 October 6th 03 03:29 PM
Excel Programming Aravind[_2_] Excel Programming 0 September 10th 03 08:05 AM


All times are GMT +1. The time now is 08:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"