create 2 lists from one

palaeontology

Active Member
Hi all,

I have the following data in the range C1:D15 ...

OriginalEmail
Barber, Isabella (59792)melissa.barber@bigpond.com
Barber, Isabella (59792)robert.v.barber@hotmail.com
Bell, Maya (83298)gaye.grahambell@bigpond.com
Bellamywells, Lewis (64795)alanbw@ccpl.net
Bellamywells, Lewis (64795)bellamywells@hotmail.com
Brueckner, Amber (87862)leannebrue@hotmail.com
Brueckner, Amber (87862)rodrcsmith@gmail.com
Chapman, Jack (66886)david@propertynorth.com
Chapman, Jack (66886)dee@propertynorth.com
Combarngo, Xaire (83652)lspence731@gmail.com
Deeb, Sophie (72844)mldeeb@bigpond.com
Deighton, Fraser (88604)brett.deighton@bigpond.com
Deighton, Fraser (88604)jo.hardwick@bigpond.com
Green, Oscar (83077)nbgreen@bigpond.net.au

<colgroup><col><col></colgroup><tbody>
</tbody>

You'll notice that in the 'Original' column, a student name may appear more than once, which indicates they have more than one parent who supplied an email address (found in column D).

What I would like to do is to have column D converted to 2 lists, resembling the following ...

Parent AParent B
melissa.barber@bigpond.comrobert.v.barber@hotmail.com
gaye.grahambell@bigpond.com
alanbw@ccpl.netbellamywells@hotmail.com
leannebrue@hotmail.comrodrcsmith@gmail.com
david@propertynorth.comdee@propertynorth.com
lspence731@gmail.com
mldeeb@bigpond.com
brett.deighton@bigpond.comjo.hardwick@bigpond.com
nbgreen@bigpond.net.au

<colgroup><col><col></colgroup><tbody>
</tbody>

I'd prefer this to be done by formula rather than code, if at all possible.

Kind regards,

Chris
 

ravishankar

Well-known Member
Hi
if col C and D has the data, insert formula in col. E =if(countif($C$2:$C2,$C2)<=1,D2,"") Drag the formula till the last row.
in col F insert the formula =if(E2="",D2,"") drag till the last row.
Hope that helps
Ravi shankar
 

Some videos you may like

This Week's Hot Topics

  • Importing multiple excel files into one spreadsheet
    Hi, I'm trying to import multiple excel files (with the same format into a single spreadsheet) so that each day's file is listed underneath the...
  • find many based on a certain criteria
    good evening, I hope someone can help me? I have a workbook sheet 2 contains lots of data.... I would like to be able to find anything on sheet...
  • How to copy multiple rows using If
    Hi all, I'm very new to VBA and have written this simple code to copy certain cells if a certain cell within that row contains any data. I need...
  • VBA If statement
    Dear All, I have two dates, where I'd like a message box to pop, if the dates are between this criteria. [CODE] sDate1 = #10/1/2019#...
  • Text Format
    I have a sheet for user to keyin the data. The format of the data can be 451 / 1903, 0012 / 9908 or 00287 / 0099. The number after the "/" is...
  • Syntax errors
    Good Morning, Trying to compile a workbook, I keep getting a few errors. Here are the first two: [code=rich]Syntax Error: Function...
Top