+ Reply to Thread
Results 1 to 11 of 11

Pull Contact Info from multiple rows and deliver across multiple columns based on company

  1. #1
    Registered User
    Join Date
    05-08-2020
    Location
    Tasmania, Australia
    MS-Off Ver
    2007
    Posts
    3

    Pull Contact Info from multiple rows and deliver across multiple columns based on company

    Hi, sorry if the title is confusing, I was trying to be as descriptive as possible

    I am trying to combine information from a couple of worksheets into one.

    I have a worksheet (#1) with a column for Company Name (A) as well as columns for First Name 1 (B), Last Name 1 (C), Email 1 (D), First Name 2 (E), Last Name 2 (F), Email 2 (G), etc

    In another worksheet (#2) I have a list of contacts, ordered by Company Name (A). Each row contains a different contact. So if there are 5 contacts at one particular company then there are 5 rows, each with the same Company Name in column (A) but with differing contact info (First Name (B), Last Name (C), Email (D))

    What I would like to do if populate the contact info fields in worksheet #1 with the contact information in worksheet #2, using the Company Name as the identifier

    However I don't know how I can assign a different contact in worksheet #2 to a different column in worksheet #1 - or if it's even possible.

    I've attached an example workbook that hopefully makes things clearer.

    If anyone knows of a way to accomplish this with a formula (or at least not having to type in each contact manually) I'd be very grateful
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Pull Contact Info from multiple rows and deliver across multiple columns based on comp

    Hi, you could use the aggregate function:
    Please Login or Register  to view this content.
    Cheers
    Erwin
    Attached Files Attached Files
    I started learning VBA because I was lazy ...
    Still developing.... being more lazy...

  3. #3
    Registered User
    Join Date
    05-08-2020
    Location
    Tasmania, Australia
    MS-Off Ver
    2007
    Posts
    3

    Re: Pull Contact Info from multiple rows and deliver across multiple columns based on comp

    Thanks so much for the reply and sending back the example spreadsheet, that's great. Unfortunately I can't follow all of the formula and I can't get it working in the actual worksheet I'm using. I'm not sure if that is because there are multiple company names in my worksheet and only 1 in the example I sent???

    I understand most of it, although I don't understand what the -ROW('#2'!$D$2)+1 part does, and I'm wondering if that would need to be different in any way when my worksheet has a variety of different company names in the D column?

    I've attached an example with a few different company names, just in case you're able to have another look
    Attached Files Attached Files
    Last edited by AliGW; 05-10-2020 at 01:47 AM. Reason: Please don’t quote unnecessarily!

  4. #4
    Registered User
    Join Date
    05-08-2020
    Location
    Tasmania, Australia
    MS-Off Ver
    2007
    Posts
    3

    Re: Pull Contact Info from multiple rows and deliver across multiple columns based on comp

    I've just noticed something odd in the example worksheet you sent back. It all looks to be working fine, however if I click on a cell so that the formula appears in the function window and then click anywhere in the fuction window (without actually changing anything in the formula), the cell changes to #NAME?

    Would this have anything to do with me using Excel 2007? I read somewhere that AGGREGATE was an addition to Excel 2010, so I'm wondering if that might be why it's not working perhaps?
    Last edited by AliGW; 05-10-2020 at 01:47 AM. Reason: Please don’t quote unnecessarily!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Pull Contact Info from multiple rows and deliver across multiple columns based on comp

    The IFERROR and AGGREGATE functions are not available in Excel 2007 - they were introduced in 2010.

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.
    Last edited by AliGW; 05-10-2020 at 01:49 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Pull Contact Info from multiple rows and deliver across multiple columns based on comp

    I have just recently learned the power of the aggregate function, in combination with other functions it is a super function, from this youtube channel:
    https://www.youtube.com/watch?v=KPhvLMzXa_8
    Here you can find the explanation of your "ROW"question.

    Cheers
    Erwin
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Pull Contact Info from multiple rows and deliver across multiple columns based on comp

    @ Ali and @ ozgothic6568
    I am sorry, I completely overlooked that part of version 2007, my bad
    Cheers
    Erwin

  8. #8
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Pull Contact Info from multiple rows and deliver across multiple columns based on comp

    I have adjusted the formulae to the version of Excel 2007:
    Please Login or Register  to view this content.
    The next series are the same, with the difference in the COUNTIF-part (green), Note the difference in the range of the F-column

    Cheers
    Erwin
    Attached Files Attached Files
    Last edited by Eastw00d; 05-10-2020 at 09:02 AM. Reason: additional information

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Pull Contact Info from multiple rows and deliver across multiple columns based on comp

    Could you post the formulae in the body of the post as well, please? Thanks.

  10. #10
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Pull Contact Info from multiple rows and deliver across multiple columns based on comp

    I changed post #8

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Pull Contact Info from multiple rows and deliver across multiple columns based on comp

    Thanks, Erwin.

+ 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. [SOLVED] Need to pull multiple rows/columns based off same value in one column
    By jayclinton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2019, 11:43 AM
  2. [SOLVED] Pull a sub list of info from a column based on multiple critiria in 2 other columns
    By ExcelFalcon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2018, 11:19 AM
  3. [SOLVED] Multiple columns info transposed in multiple rows
    By alexxl in forum Excel General
    Replies: 4
    Last Post: 12-23-2017, 06:01 PM
  4. Matching Contact Info to Company Info Using ID Number
    By bridgetb3 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-16-2017, 03:00 PM
  5. Replies: 1
    Last Post: 01-15-2016, 09:59 AM
  6. Vlookup/Match: pull info from multiple columns
    By excellerant8 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2014, 05:09 PM
  7. [SOLVED] Address and contact info from columns to rows
    By pschwartzkopf in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-22-2013, 07:35 PM

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