+ Reply to Thread
Results 1 to 7 of 7

Trying to count duplicates and place unique value in results column

  1. #1
    Registered User
    Join Date
    12-16-2018
    Location
    Tasmania, Australia
    MS-Off Ver
    Office 365
    Posts
    3

    Trying to count duplicates and place unique value in results column

    Hi,

    I have 2 worksheets, each with a list of email addresses.

    I'm looking to see which emails are in both worksheets. A simple COUNTIF would solve this, however instead of a 1 or 0 in the results column, I'm actually looking to place the value from another existing column, in place. This is the date the email was entered into the system.

    So for example:

    Sheet 1 A1 has an email address
    Sheet 1 B1 has the date the email was entered
    Sheet 2 A1 has an email address
    Sheet 2 B1 is my formula: =COUNTIF(A:A, Sheet 1!A1) is as far as I have got. That displays a 1 or 0 depending on whether there is a duplicate.

    What I want to have displayed in Sheet 2 B1 is the date from Sheet 1 B1 IF Sheet 1 A1 is the same as Sheet 2 A1. The date changes depending on when each email was entered so I'd want the corresponding date that goes with the duplicate email address.

    Hope that makes sense.

    Let me know if you need any more information.

    Kind regards,

    Peter

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Trying to count duplicates and place unique value in results column

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    Trivial examples from a text description are not the best way of ensuring a valid solution first time. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-16-2018
    Location
    Tasmania, Australia
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Trying to count duplicates and place unique value in results column

    excelforumExample.jpg

    Thanks Richard, hope this image explains things better

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,611

    Re: Trying to count duplicates and place unique value in results column

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    12-16-2018
    Location
    Tasmania, Australia
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Trying to count duplicates and place unique value in results column

    You don't have to be rude, I'm new to this and figured it was a pretty simple formula for someone who knows their way around excel (I've got most of the way with COUNTIF), so wouldn't require an actual workbook to be uploaded.

    Nevermind, I'll find somewhere a little more welcoming to newbies

  6. #6
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Trying to count duplicates and place unique value in results column

    Hi,

    No one is being "rude" to you, it's merely pointing out that by uploading a sample file will make it much easier for potential helpers to Help You.

    BTW, COUNTIF is not the way to go...

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,611

    Re: Trying to count duplicates and place unique value in results column

    I am sorry you think that a request to see the actual workbook with clear instructions about how to attach the workbook here is rude. It is not meant to be - in fact, it is intended to help you find a solution quicker. It's up to you entirely whether you stay and get that help, of course. By the way, post #2 was also asking you to upload a workbook, not an image of 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. [SOLVED] Count unique values in column with duplicates
    By rayted in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2018, 04:58 AM
  2. How to count multiple results associated with a unique string in another column?
    By stevensimon10482 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-12-2017, 10:35 PM
  3. Count each unique value in a coloumn and displaye an other place
    By vipin717 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2014, 01:55 AM
  4. Replies: 3
    Last Post: 05-23-2013, 07:50 PM
  5. For each unique value place a 6 in column F
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 02:07 PM
  6. [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
  7. [SOLVED] Count number of unique items in a column that contains duplicates
    By Steembeem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2005, 09: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