PC Review


Reply
Thread Tools Rate Thread

Combining information from rows

 
 
Danielle
Guest
Posts: n/a
 
      2nd Jul 2008
I have an excel spreadsheet with lots of duplicate contacts, but their
information is spread throughout the different rows. For example, I have 3
rows for John Doe, but his address is in the first row, his phone number is
in the second row, and his affiliation is in the third row.

Is there a way to merge the information from all three rows into one? I have
a few thousand records like this.

Thanks!
 
Reply With Quote
 
 
 
 
vezerid
Guest
Posts: n/a
 
      2nd Jul 2008
Question: are all your records like:

John Doe 1 A street
Jane Doe 3 B str
John Doe 212-555-5555
Mike Doe 7 C str
John Doe affil1
Jane Doe 313-444-4444
Mike Doe 414-666-6666
Jane Doe affil2
Mike Doe affil3

In other words, (1) do you always have the key in first column? (2) is
phone always in a later row than address and affiliation in a later
row than phone?



On Jul 2, 7:43 pm, Danielle <Danie...@discussions.microsoft.com>
wrote:
> I have an excel spreadsheet with lots of duplicate contacts, but their
> information is spread throughout the different rows. For example, I have 3
> rows for John Doe, but his address is in the first row, his phone number is
> in the second row, and his affiliation is in the third row.
>
> Is there a way to merge the information from all three rows into one? I have
> a few thousand records like this.
>
> Thanks!


 
Reply With Quote
 
Danielle
Guest
Posts: n/a
 
      2nd Jul 2008
The records are like this:
First Last Phone Address Affiliation
John Doe 555-555-5555
John Doe 123 Road
John Doe Yes
Jane Doe 555-555-5555
Etc.

Yes, the phone is always in a later row than address, and affiliation is in
a later row than that.

"vezerid" wrote:

> Question: are all your records like:
>
> John Doe 1 A street
> Jane Doe 3 B str
> John Doe 212-555-5555
> Mike Doe 7 C str
> John Doe affil1
> Jane Doe 313-444-4444
> Mike Doe 414-666-6666
> Jane Doe affil2
> Mike Doe affil3
>
> In other words, (1) do you always have the key in first column? (2) is
> phone always in a later row than address and affiliation in a later
> row than phone?
>
>
>
> On Jul 2, 7:43 pm, Danielle <Danie...@discussions.microsoft.com>
> wrote:
> > I have an excel spreadsheet with lots of duplicate contacts, but their
> > information is spread throughout the different rows. For example, I have 3
> > rows for John Doe, but his address is in the first row, his phone number is
> > in the second row, and his affiliation is in the third row.
> >
> > Is there a way to merge the information from all three rows into one? I have
> > a few thousand records like this.
> >
> > Thanks!

>
>

 
Reply With Quote
 
vezerid
Guest
Posts: n/a
 
      3rd Jul 2008
First you need to produce a list of First/Last without duplicates. You
can use the advanced filter for this.
1. Insert an empty column after column B, to separate the first two
columns.
2. Click in A2. Issue Data>Filter>Advanced filter...
3. Filter the list in another location. Check H1. Check also Unique
records only.

At the end of this step you have just the names without duplicates.
Complete the headers next to First and Last. Now use the following
*array* formula in J2 (array formula: commit with Shift+Ctrl+Enter):

=INDEX(C$2:C$7,MATCH(1,($A$2:$A$7=$H2)*($B$2:$B$7=$I2)*(C$2:C$7<>""),
0))

You can copy the formula to the right and down for as many rows as
necessary. In my example I assumed data go up to row 7, which they
don't. Change the 7 to the last row with data. Leave the $$ as they
are.

HTH
Kostis

On Jul 2, 9:37 pm, Danielle <Danie...@discussions.microsoft.com>
wrote:
> The records are like this:
> First Last Phone Address Affiliation
> John Doe 555-555-5555
> John Doe 123 Road
> John Doe Yes
> Jane Doe 555-555-5555
> Etc.
>
> Yes, the phone is always in a later row than address, and affiliation is in
> a later row than that.
>
> "vezerid" wrote:
> > Question: are all your records like:

>
> > John Doe 1 A street
> > Jane Doe 3 B str
> > John Doe 212-555-5555
> > Mike Doe 7 C str
> > John Doe affil1
> > Jane Doe 313-444-4444
> > Mike Doe 414-666-6666
> > Jane Doe affil2
> > Mike Doe affil3

>
> > In other words, (1) do you always have the key in first column? (2) is
> > phone always in a later row than address and affiliation in a later
> > row than phone?

>
> > On Jul 2, 7:43 pm, Danielle <Danie...@discussions.microsoft.com>
> > wrote:
> > > I have an excel spreadsheet with lots of duplicate contacts, but their
> > > information is spread throughout the different rows. For example, I have 3
> > > rows for John Doe, but his address is in the first row, his phone number is
> > > in the second row, and his affiliation is in the third row.

>
> > > Is there a way to merge the information from all three rows into one? I have
> > > a few thousand records like this.

>
> > > Thanks!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining Information Brian T Microsoft Access 2 28th Dec 2009 04:04 PM
Combining Information from rows =?Utf-8?B?VGVycmVsbA==?= Microsoft Excel Misc 9 11th Feb 2006 09:41 AM
Combining two rows of information..... cwangosu Microsoft Excel Discussion 3 15th Nov 2004 01:13 PM
Combining information from multiple rows Bakwan Microsoft Excel Misc 1 9th Jul 2004 08:44 AM
combining information in multiple rows bakwan Microsoft Excel Misc 1 8th Jul 2004 02:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:36 PM.