+ Reply to Thread
Results 1 to 5 of 5

Complicated- find duplicates from multiple columns and return a value

  1. #1
    Registered User
    Join Date
    06-09-2014
    Posts
    1

    Complicated- find duplicates from multiple columns and return a value

    Hello,
    I need help figuring out how to do this, or if it's possible.
    My spreadsheet has multiple "sessions" by date and each has three columns: a name, their organization, and a column where we want to display an "R" if they are a repeat participant. Each new session is entered to the right of the last. The names are in every third column. Like so:

    name company R
    name company
    name company
    name company R



    Is it possible to search through the whole document to find repeating names, and then display an "R" in every third column if they are a repeat participant?

    Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Complicated- find duplicates from multiple columns and return a value

    Can you upload an example of what you are talking about? (Go Advanced>Manage Attachments)
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    06-08-2014
    Posts
    2

    Re: Complicated- find duplicates from multiple columns and return a value

    repeat_customer.xlsx

    Hello,

    I think I understand what you're looking for--basically if a company shows in the column more then once you want the row to be marked with an "R".

    I posted a solution in the attachment using dummy data. To summarize I used 2 vlookups to search for repeats and an IF statement to summarize the results.In the attachment, Col C is the whole formula put together, Col E, F, and G are the 3 formulas separated so it's easier to understand.

  4. #4
    Registered User
    Join Date
    06-08-2014
    Posts
    2

    Re: Complicated- find duplicates from multiple columns and return a value

    I just realized the way I posted was excessively complicated:

    Another way to do it is using "countif" and an "if" statement to summarize it.

    For example, using the dummy data I just posted, in row 2 the formula would be
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And you can autofill that down the list. Also, you could take out the IF statement and leave the number to show how many times the company ordered stuff--which is also good info.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Complicated- find duplicates from multiple columns and return a value

    I understand the problem to be that a name may appear more than once down the column and that you want an R placed in the row starting at column C and for each repeat after the first appearance an R will be placed in column C then the next in column D etc as the person repeats.

    This solution will place the correct R's in the columns as the name is entered in the list in column A. This goes out to column G which would represent an original session and 5 more repeats. If more is required, copy the formula to the right. Copy the formula down as required.

    This is the formula to be entered in C2 and copied across and down as required.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The enclosed file shows the results....I just used letters instead of names (I'm lazy).

    The second file has a summary area if that would be of value.
    Attached Files Attached Files
    Last edited by newdoverman; 06-09-2014 at 09:00 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Formula to find the duplicates in multiple columns
    By Kaleemuddin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2014, 10:19 AM
  2. [SOLVED] Find one value in multiple columns and return value from a set column
    By Grimace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2012, 01:39 AM
  3. How to find duplicates on multiple columns (3 Columns )
    By Kaleemuddin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2012, 07:04 AM
  4. VBA Macro to find duplicates from multiple columns
    By tuppari in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-18-2012, 01:17 AM
  5. Replies: 5
    Last Post: 07-05-2011, 06:25 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