LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Copy data in table to column in worksheet

I would like to know if a macro, or a formula, can accomplish the following.
ON worksheet 1, I have data in table format. Within the range of data (every
other column), for each cell that has a value, I would like that value copied
to the first blank row, within column A, of worksheet 2. Column B of WS2
would then be populated with the row label for that piece of data; Column C
of WS 2 would be populated with the column label for that piece of data.

The data can be copied from WS1 in any order (top to bottom first, left to
right first), but it should only search for data in every other column (B & D
in the example below). If a cell is blank, nothing would be copied to WS2.
That cell would not remain blank, however. EAch searchd cell in WS1 (with
data) would be copied to the next blank cell in Col A in WS2

Worksheet 1:

A B C D E
1 Line # AM PM
2 L1 2199 Smith 2173 Jones
3 L2 2203 Johnson
4 L3 2200 Brown 2177 Edwards


Worksheet 2 results:

A B C
1 2199 L1 AM
2 2200 L3 AM
3 2173 L1 PM
4 2203 L2 PM
5 2177 L3 PM

Thank you all for your help
 
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
Macro to Copy Pivot Table Data to Another Worksheet in Same Workbo jeannie v Excel Worksheet Functions 8 March 11th 14 09:15 AM
Copy data from other worksheet based on column header [email protected] Excel Discussion (Misc queries) 0 April 29th 08 08:18 PM
copy column cell data onto another worksheet NgS Excel Programming 1 April 10th 07 09:00 AM
Copy Column data to other worksheet Rits Excel Programming 2 November 30th 06 02:57 PM
How to create a macro to copy data from a column to a row in another worksheet? NewAtExcel Excel Programming 0 January 1st 04 12:38 AM


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