+ Reply to Thread
Results 1 to 3 of 3

Remove adjacent duplicates and select corresponding values from other columns

  1. #1
    Registered User
    Join Date
    08-18-2019
    Location
    Germany
    MS-Off Ver
    EXCEL 2007
    Posts
    2

    Lightbulb Remove adjacent duplicates and select corresponding values from other columns

    Hallo Everyone,

    I am struggling with this problem for quite sometime and can't seem to find a solution...
    1) I am trying to populate values in Column D and E. Column D only keeps the first occurence of true/false and only changes if opposite occurs. e.g. if true is set, it will ignore all other true values unless a false value comes, then false will continue ignoring other falses unless true comes.

    2) E has the difference between values of column A based on the values of Column D. so anytime true, changes to false and vice versa. it calculates difference between respective column A values. e.g. On row 3, true changes to false. so Column E has difference of A3-A1. Next change occurs on A11, when false changes to true. so column E has difference of A11-A3.

    HTML Code: 
    Any ideas / tips here ?
    Thanks
    Attached Files Attached Files
    Last edited by shaaquille; 08-18-2019 at 12:43 PM. Reason: Attached excel sheet also

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Remove adjacent duplicates and select corresponding values from other columns

    Try in E4 (and copy down) the following array formula:
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    08-18-2019
    Location
    Germany
    MS-Off Ver
    EXCEL 2007
    Posts
    2

    Re: Remove adjacent duplicates and select corresponding values from other columns

    Perfekt .. thanks a lot

+ 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] Combine values from columns with remove duplicates
    By wrybel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-20-2019, 06:41 AM
  2. [SOLVED] Formula to Extract Unique Values/Remove Duplicates Across Multiple Columns of Data
    By Lanceh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-24-2017, 09:07 AM
  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. how to remove adjacent value to duplicates in another column
    By genetist in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2014, 04:12 AM
  5. [SOLVED] Issue w/ Current Region, Select 3 Columns of Data without selecting adjacent columns
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 02:57 PM
  6. [SOLVED] Select rows between Bold text to remove duplicates
    By CharlieRB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2013, 11:50 AM
  7. macro to select table and remove duplicates problem.
    By 0lzi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2011, 05:59 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