+ Reply to Thread
Results 1 to 7 of 7

If Cells are Duplicate, then Return a Value

  1. #1
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    2021
    Posts
    205

    If Cells are Duplicate, then Return a Value

    Is there a formula I can use in B2 whereby if the value in A2 is identical to the value in any other cell in column A, then return the value "duplicate" in B2?
    Last edited by Ocean Zhang; 09-25-2009 at 07:57 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If Cells are Duplicate, then Return a Value

    TRy

    =if(Countif(A:A,A2)>1,"Duplicate","")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    2021
    Posts
    205

    Re: If Cells are Duplicate, then Return a Value

    wow, perfect. Thanks!

  4. #4
    Registered User
    Join Date
    05-16-2013
    Location
    los angeles, california
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: If Cells are Duplicate, then Return a Value

    i need help with a formula.

    column A has my order numbers. If I have duplicate order numbers I need in column B to return value from a plus a -1 , -2 , -3 if there are 3 duplicate orders. if nothing is duplicate just return the same number from A.

    here is an example

    ColumnA ColumnB
    1853-583 1853-583
    1854-581 1854-581-1
    1854-581 1854-581-2
    1922-252 1922-252-1
    1922-252 1922-252-2
    1922-252 1922-252-3

    Please help

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If Cells are Duplicate, then Return a Value

    Start a new thread please

  6. #6
    Registered User
    Join Date
    05-08-2019
    Location
    saudi arabia
    MS-Off Ver
    7
    Posts
    1

    Re: If Cells are Duplicate, then Return a Value

    I want a formula that can decide the trip of a vehicle if it is repeated 2 times in a day

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: If Cells are Duplicate, then Return a Value

    Please do not hijack an old thread!! (See rule 4). Start your own. And, to get a quick answer:



    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

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

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. 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.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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