+ Reply to Thread
Results 1 to 5 of 5

Formula to remove immediate duplicates

  1. #1
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Formula to remove immediate duplicates

    Thanks for reading...

    Duplicates are allowed within the column but they cannot follow each other.
    Hopefuly the image below makes it clear
    Duplicate values are correctly eliminated with this formula in B2 copied down
    =IF(A2<>A1,A2,"")

    But I do not want any empty cells in the results column and do not want to use a helper column.
    I would like a formula that takes the numbers in column A and returns column C
    thanks

    Remove IMMEDIATE duplicate.jpg
    Attached Files Attached Files
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Formula to remove immediate duplicates

    using your sample file, and assuming below is to replace your current formula in Column B, you can use:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Formula to remove immediate duplicates

    Put into B1:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    accept with Ctrl+Shift+Enter
    and drag it down
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Formula to remove immediate duplicates

    In D2 then copy down

    =IFERROR(INDEX($A$2:$A$21,AGGREGATE(15,6,ROW($A$2:$A$21)/($A$2:$A$21<> $A$3:$A$22),ROWS($D$2:$D2))-ROW($D$2)+1),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Formula to remove immediate duplicates

    3 perfect answers
    - thanks to all

+ 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: 6
    Last Post: 11-27-2018, 07:17 AM
  2. [SOLVED] Remove Duplicates with a formula!
    By Keibri in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-02-2018, 02:59 PM
  3. [SOLVED] Formula to remove duplicates
    By Alfredim in forum Excel General
    Replies: 1
    Last Post: 03-12-2016, 09:33 PM
  4. Formula to Remove Duplicates
    By Kandy1084 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-13-2015, 04:36 AM
  5. [SOLVED] REMOVE duplicates by formula
    By makinmomb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-13-2014, 07:44 AM
  6. [SOLVED] Using a formula to remove duplicates?
    By controlfreak in forum Excel General
    Replies: 5
    Last Post: 09-05-2013, 11:49 AM
  7. Replies: 2
    Last Post: 03-20-2011, 11:19 AM

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