+ Reply to Thread
Results 1 to 5 of 5

Remove contents from a cell if duplicates exist in a different column

  1. #1
    Registered User
    Join Date
    09-15-2015
    Location
    California
    MS-Off Ver
    2013
    Posts
    3

    Remove contents from a cell if duplicates exist in a different column

    Basically I'm trying to show the balance of the invoice only once without affecting any other data on the spreadsheet (assuming there's duplicate balances and I can't just remove duplicates).
    For example, in the attached document, I would want to have only the balance that's reflected in E4 to show and cells E5 through E7 would be blank. Again, this should not effect any other columns on the spreadsheet but an additional column can be added if necessary.

    Hope that makes sense.

    Thanks!!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-15-2015
    Location
    California
    MS-Off Ver
    2013
    Posts
    3

    Re: Remove contents from a cell if duplicates exist in a different column

    Perhaps I should elaborate...
    The end goal is to create a pivot table where the invoice numbers are displayed as the rows, the count of the individual line items and various details will display as the columns, and the balance will be displayed as the amount outstanding for the invoice. However, for that to work properly, I would need multiple invoice numbers (keeping the individual line items) with only one balance for the invoice.
    LOL this stuff is way harder to write out! Let me know if you think you can help but need additional information...

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,921

    Re: Remove contents from a cell if duplicates exist in a different column

    F2=IF(COUNTIF(A$2:A2,A2)=1,E2,"")
    Please Login or Register  to view this content.
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    09-15-2015
    Location
    California
    MS-Off Ver
    2013
    Posts
    3

    Re: Remove contents from a cell if duplicates exist in a different column

    Thanks so much that solved it!!!

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,921

    Re: Remove contents from a cell if duplicates exist in a different column

    Thanks for your feedback and adding 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. [SOLVED] Remove Duplicates but keep highest value if a duplicate with unique value exist
    By matrix2280 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-08-2015, 11:08 PM
  2. how to remove duplicates and clean up contents
    By athlug in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2014, 05:51 AM
  3. Need macro to remove duplicates from excel sheet after adding the contents
    By Amruta_chintalwar in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-19-2014, 06:43 PM
  4. Merge Columns B,C,D,E and F, If duplicates exist in Column A
    By julia81 in forum Excel Programming / VBA / Macros
    Replies: 84
    Last Post: 03-25-2014, 03:37 PM
  5. [SOLVED] remove cell contents if contains certain word in a specific column
    By picton2000 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-30-2013, 05:09 PM
  6. Replies: 2
    Last Post: 02-08-2013, 07:58 AM
  7. [SOLVED] Clear cell contents of duplicates within column
    By davegscott in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-12-2012, 06:26 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