Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
C. C. is offline
external usenet poster
 
Posts: 14
Default Match and combine multiple rows into one

Hi all,

I have the data set below in three separate columns in one worksheet

A3 B3 C3
10 71 120171
10 71 43311
10 71 43312
10 72 101321
10 72 10372
1 421 42101
1 421 42102

I want the data to just match and return the first two rows and
combine it into one cell in another worksheet so it would look like
this (with the dash):

A3
10-71
10-72
1-421


Thanks!

Cheers,
Chris
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Match and combine multiple rows into one

Add headers to row 1 (if you don't have them)
create a new column (column D???)
In D2:
=a2&"-"&b2
Drag down your list as far as you need.

Then use the technique at Debra Dalgleish's site to extract the unique entries
for that column:

http://contextures.com/xladvfilter01.html#FilterUR

If you're going to sort that data, you may want to use a formula like:

=text(a2,"000")&"-"&text(b2,"000")

so that they sort nicely.

"C." wrote:

Hi all,

I have the data set below in three separate columns in one worksheet

A3 B3 C3
10 71 120171
10 71 43311
10 71 43312
10 72 101321
10 72 10372
1 421 42101
1 421 42102

I want the data to just match and return the first two rows and
combine it into one cell in another worksheet so it would look like
this (with the dash):

A3
10-71
10-72
1-421

Thanks!

Cheers,
Chris


--

Dave Peterson
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
Combine multiple rows into one. Linnaeus Excel Discussion (Misc queries) 2 September 17th 09 07:33 PM
How to combine information from multiple rows into one Zuzie Excel Discussion (Misc queries) 0 July 24th 08 12:48 PM
combine contents of multiple rows in one row Rohit Excel Discussion (Misc queries) 1 July 14th 08 10:22 PM
Match & combine rows from 2 worksheets Doug Excel Worksheet Functions 6 February 6th 07 05:59 PM
Combine Data from Multiple Rows MR Excel Discussion (Misc queries) 1 January 24th 07 06:44 PM


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