+ Reply to Thread
Results 1 to 5 of 5

Removing unwanted elements - Automation/Simple logic

  1. #1
    Registered User
    Join Date
    12-15-2017
    Location
    York, England
    MS-Off Ver
    Office 365 Business
    Posts
    3

    Removing unwanted elements - Automation/Simple logic

    Hello,

    I want to find a way to instigate the following rule against all selected cells: If the cell to the right of the current cell is the same, delete the contents of the current cell.

    So the tables below are essentially what the before running and after running this rule.

    BEFORE
    ONE ONE ONE
    TWO TWO TWO TWO
    THREE THREE THREE THREE THREE

    AFTER
    ONE
    TWO
    THREE

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Removing unwanted elements - Automation/Simple logic

    IS delete, delete the cell and move the other cells to the left, or clear the values

    is line 1 just one in column A, or just one in column 3?

    is there only ever one value on each line, so it is the last value?

    thanks

    Dav

  3. #3
    Registered User
    Join Date
    12-15-2017
    Location
    York, England
    MS-Off Ver
    Office 365 Business
    Posts
    3

    Re: Removing unwanted elements - Automation/Simple logic

    Nothing is moved, only deleted if a duplicate exists in the adjacent cell to the right. The result will be that only elements furthest to the right will remain. Sorry, the second table is a little out of alignment.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Removing unwanted elements - Automation/Simple logic

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-15-2017
    Location
    York, England
    MS-Off Ver
    Office 365 Business
    Posts
    3

    Re: Removing unwanted elements - Automation/Simple logic

    Thank you. That works perfectly

+ 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] Removing specific elements from an Array based on matching elements in a different Array
    By jamesdeuce in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-24-2014, 10:35 PM
  2. Replies: 2
    Last Post: 05-21-2010, 05:06 AM
  3. Removing unwanted cells
    By Strat94 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2009, 11:54 AM
  4. Removing array elements
    By panthers7171 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2009, 10:26 AM
  5. Removing Unwanted Data
    By njexpress9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-02-2009, 03:41 PM
  6. [SOLVED] Removing unwanted characters
    By Richard in forum Excel General
    Replies: 2
    Last Post: 06-23-2006, 02:40 PM
  7. Removing unwanted characters
    By jermsalerms in forum Excel General
    Replies: 15
    Last Post: 01-19-2006, 05:20 PM
  8. removing unwanted VBAProject
    By daveandjudy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2005, 11:15 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