Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 788
Default collapsing rows together

I've got a situation like this:

34F A
34F T
T65 Y
T65 P

and I want to flatten out the rows by the first column to get this:

34F A T
T65 P Y

I have a lot of data I need to do this with unfortunately, any help would be
greatly appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default collapsing rows together

Assume source data as posted within A2:D5
Assume the 2 unique items are listed in E2:E3, viz: 34F, T65

Put this in F2, normal ENTER:
=IF(ISNA(MATCH(1,INDEX(($A$2:$A$5=$E2)*(B$2:B$5<" "),),0)),"",INDEX(B$2:B$5,MATCH(1,INDEX(($A$2:$A$5 =$E2)*(B$2:B$5<""),),0)))
Coy F2 across to H2, fill down. This returns the exact results that you seek.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:363 Subscribers:64
xdemechanik
---
"Chris" wrote:
I've got a situation like this:

34F A
34F T
T65 Y
T65 P

and I want to flatten out the rows by the first column to get this:

34F A T
T65 P Y

I have a lot of data I need to do this with unfortunately, any help would be
greatly appreciated.

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
collapsing rows Jim S. Excel Worksheet Functions 5 December 5th 07 10:17 PM
Collapsing Subtotal Rows Gear$Head Excel Discussion (Misc queries) 0 February 24th 07 05:07 PM
Collapsing Rows EdCPA Excel Discussion (Misc queries) 2 September 22nd 05 01:19 AM
Expanding and collapsing rows Eduardo Excel Discussion (Misc queries) 3 July 13th 05 02:12 PM
Expanding/Collapsing Rows? Jake Excel Worksheet Functions 2 March 27th 05 07:35 PM


All times are GMT +1. The time now is 01:19 PM.

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"