Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
couriced
 
Posts: n/a
Default Find data in columns, then place in rows


I'm stumped as to how to do this. I've tried several approaches but my
Excel skills aren't quite there I guess.

Here's what I'm trying to do...data is setup in columns Like below:

A B
EMP ID CUST ID
001 AAA
001 BBB
001 CCC
002 DDD
003 EEE
003 FFF
004 GGG

I'm trying to search the data for matches, and have it appear in rows
like this:

A B C D
EMP ID
001 AAA BBB CCC
002 DDD
003 EEE FFF
004 GGG


Any suggestions are greatly appreciated!


--
couriced
------------------------------------------------------------------------
couriced's Profile: http://www.excelforum.com/member.php...o&userid=26900
View this thread: http://www.excelforum.com/showthread...hreadid=471533

  #2   Report Post  
Domenic
 
Posts: n/a
Default

Assumptions:

A1:B8 contains your source data

First row contains your headers/labels

Column D, starting at D2, contains your list of unique 'Employee ID'
numbers

Formula:

E2, copied across and down:

=IF(COLUMNS($E2:E2)<=COUNTIF($A$2:$A$8,$D2),INDEX( $B$2:$B$8,SMALL(IF($A$2
:$A$8=$D2,ROW($B$2:$B$8)-ROW($B$2)+1),COLUMNS($E2:E2))),"")

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Note that you can generate a unique list of 'Employee IDs' by using
Advanced Filter and checking 'Unique records only'.

Hope this helps!

In article ,
couriced
wrote:

I'm stumped as to how to do this. I've tried several approaches but my
Excel skills aren't quite there I guess.

Here's what I'm trying to do...data is setup in columns Like below:

A B
EMP ID CUST ID
001 AAA
001 BBB
001 CCC
002 DDD
003 EEE
003 FFF
004 GGG

I'm trying to search the data for matches, and have it appear in rows
like this:

A B C D
EMP ID
001 AAA BBB CCC
002 DDD
003 EEE FFF
004 GGG


Any suggestions are greatly appreciated!

  #3   Report Post  
couriced
 
Posts: n/a
Default


Worked great, thanks so much!


--
couriced
------------------------------------------------------------------------
couriced's Profile: http://www.excelforum.com/member.php...o&userid=26900
View this thread: http://www.excelforum.com/showthread...hreadid=471533

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
Dealing with data in several columns AND rows RJPerri Excel Discussion (Misc queries) 2 September 14th 05 12:57 PM
How to reverse order of rows and columns Johnny Excel Discussion (Misc queries) 3 September 11th 05 03:42 PM
Convert data from rows to columns boksic Excel Discussion (Misc queries) 4 July 4th 05 11:40 AM
Matching Date From Two Groups wsteel Excel Worksheet Functions 3 June 25th 05 02:58 AM
How to keep rows together when sorting columns? Amit Excel Worksheet Functions 1 March 28th 05 06:01 PM


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