+ Reply to Thread
Results 1 to 7 of 7

remove duplicates based on IF formula

  1. #1
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    181

    remove duplicates based on IF formula

    Hello,

    I have a formula working in Column AQ
    Please Login or Register  to view this content.
    however the formula is not giving me the results I need. IF formula to remove duplicate values.PNG

    What I want to do is run the same IF for duplicate values and it highlight return the value if the count is >1

    so for example the $14,666.33 is duplicated 6 times in the AP column. I want the formula to capture just the one instance of the $14,666.33 and place that value in column AQ

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: remove duplicates based on IF formula

    usually the countif formula is written =COUNTIF($AP$1:AP1,AP1) and dragged down. This would return a 1 for each original and higher for each duplicate. If you don't want the 1 you can add -1 to the end and originals will be blank and dups start with 1
    (and you can begin it at AP2)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    181

    Re: remove duplicates based on IF formula

    .=COUNTIF(AP:AP,AP18)-1 is working but now I need to use an =AP for the unique values(that's easy enough). But then I also want in column AR the first duplicate record and not the rest.

    so i example below, just need the first $8037.76 value in column AR and not the 6 duplicates. I want to be able to put both these formulas in AR1 and drag down based on count if I used above.

    SUMIFS .=COUNTIF(AP:AP,AP18)-1
    8,037.76 6.00
    8,037.76 6.00
    8,037.76 6.00
    8,037.76 6.00
    8,037.76 6.00
    8,037.76 6.00
    8,037.76 6.00

  4. #4
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    181

    Re: remove duplicates based on IF formula

    I want to just have the Unique values from column AP places into Column AR, so -AP(1) then drag that formula down that will capture all the uniques.

    then, just take the first duplicate value in column AP. So if the count if returns 6 duplicate values, have a formula in column AR just bring in that first duplicate value and not the other 6. Having those return a blank in that cell in column AR.

  5. #5
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    181

    Re: remove duplicates based on IF formula

    this is where I am stuck. What kind of logic do I write on the false statement to only bring me the first duplicate value in AP and not the rest.

    Capture.PNG

  6. #6
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    181

    Re: remove duplicates based on IF formula

    this formula is working somewhat

    Please Login or Register  to view this content.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,674

    Re: remove duplicates based on IF formula

    If I understand correctly it would seem as if the following should work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    That said it would help us to help you if you would upload a sample of the spreadsheet from which the screen shot in post #1 was taken. Manually place the values you want in column AQ so that we can attempt to write a formula to automate those results.
    To upload a sample workbook click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. How to remove duplicates based on two columns
    By eeps24 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-01-2017, 11:01 AM
  2. [SOLVED] Sort and remove duplicates based on 3 columns
    By gauti14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-19-2016, 04:51 PM
  3. [SOLVED] remove duplicates based on adjacent cell value
    By kalelrojin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2015, 05:07 PM
  4. Code to remove duplicates based on a criteria
    By twizy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2014, 10:18 AM
  5. Code to remove duplicates based on a criteria
    By twizy in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 12-17-2014, 09:48 AM
  6. Remove duplicates based on criteria
    By keswickjeff in forum Excel General
    Replies: 2
    Last Post: 07-14-2011, 12:15 PM
  7. Replies: 2
    Last Post: 03-20-2011, 11:19 AM

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