+ Reply to Thread
Results 1 to 3 of 3

Moving formatting with the cell when it moves

  1. #1
    Registered User
    Join Date
    09-02-2018
    Location
    Nottingham, UK
    MS-Off Ver
    Excel 2010
    Posts
    8

    Moving formatting with the cell when it moves

    Hi all,

    I recently posted about advanced sorting of a column of cells, which Glenn Kennedy kindly solved for me. This is the next request based on the same spreadsheet. As you can see from the attached spreadsheet (and looking at the 'Test Sheet' tab) I've got three active columns. Column A has a series of card names (from a board game), column B has three data validation options, and column D uses an aggregate command (as created by Glenn) that uses a filter so that only those cards with 'Active' in column B are shown there.

    What I want to be able to do is to fill certain of the Column D cells in green (for example), so I can easily keep track of the cards I have. However, whenever any of the cards currently Active changes to Discarded or Removed (the other two data validation options), column D changes (as desired), but the cell formatting stays where it is. Is there any way that the formatting can move with the cell? In a perfect world, if a 'green' cell were removed, the formatting would also disappear completely. Any help would be much appreciated.

    Thanks,

    Sartois
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Moving formatting with the cell when it moves

    My understanding is that if you manually mark a card with a green background (let's pick 'Blockade') then:
    - if you change 'Blockade' to discarded, then the card is removed from column D along with the formatting
    - if you add/remove a card that is 'above' arcade in column A (e.g. Asia Scoring) then Column D is appropriately adjusted and Blockade stays green
    - if you add/remove a card that is 'below' arcade in column A (e.g. NATO) then Column D is appropriately adjusted and Blockade stays green

    As it stands, only the third scenario works, because the Blockade cell did not get moved. Your request could be achieved with a change event macro, but it would be fairly tedious. May I suggest an alternative status of 'ActiveGreen'? You could then tweak the equation in column D to include anything that starts with Active, and then use Conditional formatting to mark any card deemed 'ActiveGreen' to have a green background. Maybe that doesn't scale if you want to have many different types of formatting options, but this would at least keep you out of a macro solution.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    09-02-2018
    Location
    Nottingham, UK
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Moving formatting with the cell when it moves

    Hi Pauley,

    Thanks for your thoughts - they're much appreciated. They've given me a few ideas on how I could broadly achieve the effect I want (and via commands I'm able to understand, heh)!

    Thanks again,

    Sartois.

+ 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: 2
    Last Post: 08-10-2016, 04:01 AM
  2. Macro Help: When moving a row, it moves the row to the top rather than bottom
    By PlaceboGraeme in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2013, 03:34 PM
  3. Excel 2007 : Conditional Formatting Moves
    By Abarency in forum Excel General
    Replies: 3
    Last Post: 07-21-2012, 03:48 AM
  4. Replies: 0
    Last Post: 05-21-2012, 06:59 AM
  5. help to make moving cell formatting
    By birkhe in forum Excel General
    Replies: 3
    Last Post: 05-12-2009, 04:39 AM
  6. Hyperlink-link so that when a cell moves the link also moves?
    By peters in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2006, 01:30 PM
  7. Replies: 3
    Last Post: 04-20-2005, 08:07 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