+ Reply to Thread
Results 1 to 7 of 7

Transfer values from row to a new column if other columns are consecutives duplicates

  1. #1
    Registered User
    Join Date
    07-19-2016
    Location
    Italy
    MS-Off Ver
    2010
    Posts
    6

    Transfer values from row to a new column if other columns are consecutives duplicates

    Hi guys!

    I have a list of meetings with different investors. It includes when they happened and which employee was present. Like so:

    Investor Date Employee Location
    A.Inc March 21st Andy Restaurant
    A.Inc March 21st Paul Restaurant
    A.Inc March 21st Matthew Restaurant
    B.Corp April 2nd Luke Park
    A.Corp April 10th Matthew HQ

    I would like to know if I could turn the first three rows into one single row if the investor name, dates and location are the same. Like this

    Investor Date Employee Employee Employee Location
    A.Inc March 21st Andy Paul Matthew Restaurant
    B.Corp April 2nd Luke Park
    A.Inc April 10th Luke HQ

    There are upwards of 4 employees per event. Would it be hard to be done? Thank you so much!
    Last edited by Galuppo; 07-20-2016 at 09:07 AM. Reason: Post moved

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Transfer values from row to a new column if other columns are consecutives duplicates

    Ciao Galuppo,

    You could make pretty quick work of this with a pivot table!
    Attached Files Attached Files
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    07-19-2016
    Location
    Italy
    MS-Off Ver
    2010
    Posts
    6

    Re: Transfer values from row to a new column if other columns are consecutives duplicates

    Ciao Jeffrey!

    Grazie for trying to help, I really appreciate it!

    The only problem would be that employees are from the investors themselves, not our company (their company since I'm only a summer intern, haha).

    Because of that, there are approximately 300 different employees. Would there be another way to do it?

    Thank you again!

  4. #4
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Transfer values from row to a new column if other columns are consecutives duplicates

    Try this macro.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,706

    Re: Transfer values from row to a new column if other columns are consecutives duplicates

    Here is a formula based solution where a unique list of 'Investors' is placed in column F using the array entered formula*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The dates and locations are populated with formulas similar to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The employees are populated with the array entered formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    *Array entered formulas are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let me know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    07-19-2016
    Location
    Italy
    MS-Off Ver
    2010
    Posts
    6

    Re: Transfer values from row to a new column if other columns are consecutives duplicates

    Quote Originally Posted by abduljaleel.mca View Post
    Try this macro.
    You Excel Wizard, you! Thank you so much! That worked perfectly.

    Quote Originally Posted by JeteMc View Post
    Here is a formula based solution where a unique list of 'Investors' is placed in column F using the array entered formula*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The dates and locations are populated with formulas similar to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The employees are populated with the array entered formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    *Array entered formulas are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let me know if you have any questions.
    Jete, Abdul's macro worked for me, so I didn't try your method! Needless to say, I don't even know how you guys could muster all of that knowledge for answering my question! One day hopefully I will be able to match 1/10th of your skills!

    Overall guys, I've repped all of you and will mark this question as solved. I don't know what I would do without you!

    Do you guys do it for fun? Haha!

    Thanks again, Excelforum community!

  7. #7
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Transfer values from row to a new column if other columns are consecutives duplicates

    Galuppo,
    Thanks for the big feedback and rep .

+ 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. Replies: 7
    Last Post: 01-31-2016, 12:18 PM
  2. Matching values in two columns - one column has duplicates
    By morganz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-08-2015, 10:38 AM
  3. Replies: 4
    Last Post: 07-15-2013, 01:37 PM
  4. [SOLVED] Find duplicates in column A, add values from column B (possibly delete duplicates)
    By luarwhite in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2013, 04:34 PM
  5. [SOLVED] Macro to count unique values in a column, enter it in next column, then delete duplicates
    By pmorisse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 03:27 PM
  6. [SOLVED] Comparing 2 columns and deleting duplicates in the second column according first column
    By wingo033 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-19-2012, 07:14 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