+ Reply to Thread
Results 1 to 5 of 5

Need to manage address book in excel

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Need to manage address book in excel

    I have an address book that has about 265 people. This address book needs to be created in a specific format in excel which I will then convert to a .ldif file. In one table I have the names and email addresses of individuals and I need those names and email addresses to appear after certain characters and at specific locations in the excel file for it to be correctly exported to .ldif format.

    For example the table has Falcao, Tony as the name and [email protected] as the email and has Li, Amy and [email protected] as the second entry in the table. (The table is on a separate excel sheet)

    The other excel sheet looks like this:

    A1 dn:cn=,id=268
    A2 cn:
    A3 givenname:-----
    A4 mail:
    A5 objectclass:top
    A6 objectclass:person
    A7
    A8 dn:cn=,id=269
    A9 cn:
    A10 givenname:-----
    A11 mail:
    A12 objectclass:top
    A13 objectclass:person

    and continues....

    A1,A2, A3, etc are just the column names in the spread sheet.

    So I need to grab information from the table that has the name and email and fill it in the A1, A2 etc fields so that I don't have to manually enter it for 265 people...

    The final product should look like this.

    A1 dn:cn=Falco, Tony,id=268
    A2 cn:Falco, Tony
    A3 givenname:-----
    A4 mail:[email protected]
    A5 objectclass:top
    A6 objectclass:person
    A7
    A8 dn:cn=Li, Amy,id=269
    A9 cn:Li, Amy
    A10 givenname:-----
    A11 mail:[email protected]
    A12 objectclass:top
    A13 objectclass:person

    Any help is appreciated, not sure if there's a formula to do this or VBA script.

    I have attached a sample file just to give you guys a better idea of what it looks like.

    Thanks for the help!
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Need to manage address book in excel

    Try this:

    Please Login or Register  to view this content.
    I haven't referenced worksheets (so it will run on the activesheet), and I've put the output in column 4 (D) so you can check against required output. I'm sure you can tweak as needed.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    11-27-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need to manage address book in excel

    Thanks a lot, I will try this at work tomorrow and let you know. Thanks once again.

  4. #4
    Registered User
    Join Date
    11-27-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need to manage address book in excel

    Thanks a lot worked like a charm!

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Need to manage address book in excel

    Quote Originally Posted by smotwani View Post
    Thanks a lot worked like a charm!
    Excellent, pleased to hear it!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Easy way to manage multiple Sheets on a work book
    By cfaristiz in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-31-2013, 12:12 AM
  2. Excel 2007 : Yahoo address book to Excel
    By auldgrumpy in forum Excel General
    Replies: 0
    Last Post: 02-05-2012, 08:34 PM
  3. Can you set up a simple address book in Excel
    By MaryAnn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2006, 10:15 AM
  4. Address book to excel
    By billy2willy in forum Excel General
    Replies: 0
    Last Post: 09-06-2005, 02:49 PM
  5. [SOLVED] excel as address book
    By Pete in forum Excel General
    Replies: 4
    Last Post: 05-11-2005, 11:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1