+ Reply to Thread
Results 1 to 11 of 11

Moving cells including formatting but excluding background pattern?

  1. #1
    Registered User
    Join Date
    12-01-2021
    Location
    Eastbourne, England
    MS-Off Ver
    Office 365
    Posts
    6

    Moving cells including formatting but excluding background pattern?

    Hi all, greetings from Eastbourne, UK. It's my first post here and so please let me know if the topic was already covered (although I did some digging and couldn't find an answer).

    I'm working on a spreadsheet to be used as a schedule for several people. Columns are days and rows are people/slots. At the moment I have 9 people x 4 slots a day x 4 cells per slot. Because it's difficult to read it at first glance, I'm trying to introduce background pattern on every second person for better visibility. We use colors in schedule and move jobs across a lot. I'd like to be able to move slots/cells across including background colour but without background pattern as this needs to stay in fixed place. My manager is used to the method of ctrl+drag for moving stuff around and so this must work together. Is there a way to do this?

    Non-disclosed cross-link here: https://www.mrexcel.com/board/thread...cking.1189222/
    Last edited by Glenn Kennedy; 12-21-2021 at 11:46 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Moving cells including formatting but excluding background pattern?

    Hi and welcome to the forum,

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-01-2021
    Location
    Eastbourne, England
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Moving cells including formatting but excluding background pattern?

    Here it is. I added pattern manually for reference.
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Moving cells including formatting but excluding background pattern?

    So are you saying that the background for rows 3:18 must be the same as 35:50
    and 19:34 the same as 51:66 and different to 3:18

  5. #5
    Registered User
    Join Date
    12-01-2021
    Location
    Eastbourne, England
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Moving cells including formatting but excluding background pattern?

    background pattern - yes. Background colour needs to be movable, and pattern applies on it automatically depending on the row I move it to.


    Let me rephrase my question: Is it possible to to have only data entry and background color editable while border thickness and background pattern would be defined permanently for certain cell ranges, and this includes copying and moving cells?
    Last edited by dan.t; 12-02-2021 at 05:06 AM.

  6. #6
    Registered User
    Join Date
    12-01-2021
    Location
    Eastbourne, England
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Moving cells including formatting but excluding background pattern?

    Can anyone help me with this please?

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Moving cells including formatting but excluding background pattern?

    Sorry but It's still not clear.

    In post #2 I asked for a before and after situation. i.e. show what you start with, tell us what you mean by Move and/or copy and describe exactly which cells you select and what you do with them, then manually add the results you expect to see. If the format/number of people or rows per person change please make sure that situation is represented.

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

    Re: Moving cells including formatting but excluding background pattern?

    Richard,

    My interpretation if it helps is that the lines and gray colours remain the same. if f11:f14 was dragged to f15:f18 the lines between the original cells become blank eg no line between f12:f13 and he wishes for it to still be there.

    Its almost like filling in a paper form in pencil. When an activity is moved, it is rubbed out from the original location and added to the new one, but the move functionality in excel takes the lines with the shading

    I did wonder about conditional formats but they seem to be effected

    likewise protecting a sheet the protection applies to the format of a cell which is the lines and colours

    All I can think is some vba code that reapplies the formats, although don't know if it would just have to be run or triggered by a change event

  9. #9
    Registered User
    Join Date
    12-01-2021
    Location
    Eastbourne, England
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Moving cells including formatting but excluding background pattern?

    Quote Originally Posted by Richard Buttrey View Post
    Sorry but It's still not clear.

    In post #2 I asked for a before and after situation. i.e. show what you start with, tell us what you mean by Move and/or copy and describe exactly which cells you select and what you do with them, then manually add the results you expect to see. If the format/number of people or rows per person change please make sure that situation is represented.
    OK, I'd like to set up borders and background pattern for selected cells/ranges. These parameters are to be set once for all, locked and not to be easily changed. Afterwards, we'll put data and apply background colour to selected cells. These values will be moved around.

    For example:
    in sheet attached in post 3 there is a Job 123 allocated to Person 1 (red background) and Job 456 allocated to Person 2 (blue background). To re-allocate Job 123 from Person 1 to Person 2 we select cells F11:F14 and drag them down to range F27:F30. There is no background pattern for Person 1 but there is one for Person 2 and so I need this pattern to automatically apply over the moved cells.

    Similarly, when re-allocating Job 456 (blue cells) from Person 2 to Person 3, background pattern will not be moved.

    In other words - dotted background pattern is defined for ranges corresponding to Person 2, Person 4, Person 6 etc, and blank pattern defined for Person 1, Person 3, Person 5 etc. When copying/moving cells from one person to another, pattern will apply or not depending on where the cell is being placed.

    Border thickness is set up for the whole sheet and so when job is being cut/moved, borders will stay as they were instead of just disappear like they tend to.

    I hope it make sense now
    Last edited by dan.t; 12-21-2021 at 09:36 AM.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Moving cells including formatting but excluding background pattern?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. However, as you are new here, I have done it for you... this time.)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  11. #11
    Registered User
    Join Date
    12-01-2021
    Location
    Eastbourne, England
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Moving cells including formatting but excluding background pattern?

    can anyone help please?

+ 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] Calculate Moving Averages for x days while excluding blank cells
    By dewonw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2017, 09:48 AM
  2. Create a moving average table for last 3 averages excluding empty cells
    By jessb85 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-25-2016, 05:20 AM
  3. Auto copy cells including a cells Coloured background (colour fill)
    By rick.parry in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-06-2013, 04:51 AM
  4. The rank of average ranks excluding empty cells but including their average.
    By Terminal45 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2012, 03:44 AM
  5. Moving average excluding blank cells
    By bog3494 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-28-2011, 07:18 PM
  6. [SOLVED] Colour and Pattern Formatting Cells
    By Dave M in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2006, 11:35 AM
  7. [SOLVED] Checkbox background pattern problem
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 05-06-2005, 08:06 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