+ Reply to Thread
Results 1 to 8 of 8

How to replace the duplicate values in column using the unique values of another column

  1. #1
    Registered User
    Join Date
    10-26-2020
    Location
    Dresden
    MS-Off Ver
    2016
    Posts
    4

    How to replace the duplicate values in column using the unique values of another column

    Hello everyone,

    Good day.

    My query is like this. I am trying to replace the duplicate values which are Zeroes (1712 total zeroes in total 8762 rows in a column) with the help of other column`s unique values. Please, refer to the file I uploaded and especially the two-column marked with the yellow color. I have marked the way of replacement with the help of arrows for better understanding.

    Please, let me know in case of any possible guidance or solution.

    Thanks in advance.

    Be safe.


    Regards,
    Kartik
    Attached Files Attached Files

  2. #2
    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,943

    Re: How to replace the duplicate values in column using the unique values of another colum

    Welcome to the forum.

    This cannot be done with a formula, as you cannot have both a formula and manual entry in the same cell. I think you will need VBA, unless you are happy for a helper column.
    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.

  3. #3
    Registered User
    Join Date
    10-26-2020
    Location
    Dresden
    MS-Off Ver
    2016
    Posts
    4

    Re: How to replace the duplicate values in column using the unique values of another colum

    Thank you very much for your kind reply. May I ask what do you mean by the helper column?

  4. #4
    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,943

    Re: How to replace the duplicate values in column using the unique values of another colum

    A new column that collates the values from the two source columns.

  5. #5
    Registered User
    Join Date
    10-26-2020
    Location
    Dresden
    MS-Off Ver
    2016
    Posts
    4

    Re: How to replace the duplicate values in column using the unique values of another colum

    Thanks. I will look forward into your valuable suggestions.

  6. #6
    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,943

    Re: How to replace the duplicate values in column using the unique values of another colum

    In C3 copied down:

    =IF(B3=0,VLOOKUP(A3,F:G,2,0),B3)

  7. #7
    Registered User
    Join Date
    10-26-2020
    Location
    Dresden
    MS-Off Ver
    2016
    Posts
    4

    Re: How to replace the duplicate values in column using the unique values of another colum

    I copied it down and its solved. Thank you very very much for your help.

  8. #8
    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,943

    Re: How to replace the duplicate values in column using the unique values of another colum

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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: 1
    Last Post: 05-26-2020, 02:08 PM
  2. [SOLVED] Putting a zero in column B for duplicate values and 1 for unique values
    By treeantz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-17-2016, 12:37 AM
  3. Find duplicate values for unique column
    By zammy73 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2014, 06:45 PM
  4. [SOLVED] How to lookup duplicate values between sheets and replace with value from another column
    By ladydubs in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2013, 12:59 PM
  5. [SOLVED] Sum Duplicate Items in One Column with Unique Values in Another
    By GMKoehler in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2013, 03:03 PM
  6. Find duplicate values in a column, make each value unique.
    By jobell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2012, 12:15 PM
  7. Handling duplicate values into unique and sum their next column values
    By No_feelings in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2012, 05:12 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