+ Reply to Thread
Results 1 to 15 of 15

Mass copy of Conditional formatting

  1. #1
    Registered User
    Join Date
    07-16-2023
    Location
    Hungary
    MS-Off Ver
    Excel 2019
    Posts
    32

    Mass copy of Conditional formatting

    Dear all!
    My question is how to easily copy the format of conditionally formatted cells?
    I would define the formatting with a formula.
    Because as soon as I name either the cell to be formatted or the reference cell, it becomes an absolute reference, so the hair cross drag solution can be forgotten. I want the format of a certain cell in an array to match the value in the same position of another array of the same size.
    In the example, in cell A1, if the value of K1 is 5, only A1 should be highlighted.
    Then B2 should respond to L1, C1 to M1, etc., up to J10-T10.
    I hope I have explained clearly.
    I know it could be done individually cell by cell, but I think there should be some smart solution in such a smart program.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by waterstride; 07-21-2023 at 01:14 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Mass copy of Conditional formatting

    Does the value have to be 5, or is it just cells that are not blank?

    Please MANUALLY fill in rows 2 and 3 so that we can see what we are aiming for.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Mass copy of Conditional formatting

    Is this what you want?

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    1
    5
    2
    2
    3
    4
    5
    6
    3
    7
    4
    8
    9
    10
    1
    Sheet: Munka1

    If so, the rule is:

    =K1<>""

    and the Applies to box needs this: =$A$1:$J$10

    Because as soon as I name either the cell to be formatted or the reference cell, it becomes an absolute reference, so the hair cross drag solution can be forgotten.
    You are clearly a novice with CF. It's not greatly user-friendly, but once you learn how to use it effliciently, you'll find out that this statement is false.

    However, I always set formatting for the origin cell (top left of the range) and use the Applies to box to set the range. I do NOT drag copy formatting.
    Attached Files Attached Files
    Last edited by AliGW; 07-21-2023 at 01:23 AM.

  4. #4
    Registered User
    Join Date
    07-16-2023
    Location
    Hungary
    MS-Off Ver
    Excel 2019
    Posts
    32

    Re: Mass copy of Conditional formatting

    Dear AliGW!
    I put only to the cell A1 my formula (as sample) what makes my cell blue. My expectation would be, that my first arry A1:J10 should be blue according the cells of the second array, all only when the relevant cell (same position in the second array) value=5

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Mass copy of Conditional formatting

    Please provide a completed table - do this MANUALLy to show what you want. There is only one cell with the value of 5 in your grid.

    Did what I suggested above do what you want?

  6. #6
    Registered User
    Join Date
    07-16-2023
    Location
    Hungary
    MS-Off Ver
    Excel 2019
    Posts
    32

    Re: Mass copy of Conditional formatting

    Yes should be 5

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Mass copy of Conditional formatting

    So is this what you want?

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    13
    5
    14
    2
    15
    16
    17
    18
    3
    19
    5
    4
    20
    21
    22
    5
    1
    Sheet: Munka1

    In my solution above, simply change the rule to this:

    =K1=5

    and apply it in the same way.
    Attached Files Attached Files

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Mass copy of Conditional formatting

    Please try

    CF_rule =K1=5

    and the Applies to box needs this: =$A$1:$J$10
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Mass copy of Conditional formatting

    Hans - I offered that suggestion in post #7.

    Waterstride - is this now resolved? If not, please provide a more extensive sample workbook with all requirements mocked up manually.

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Mass copy of Conditional formatting

    Ali, Post 7 and 8 crossed on me.
    Post #7 was not yet visible when I posted post #8.

  11. #11
    Registered User
    Join Date
    07-16-2023
    Location
    Hungary
    MS-Off Ver
    Excel 2019
    Posts
    32

    Re: Mass copy of Conditional formatting

    Thank you very much, works well. I don't understand how I missed the simplest solution.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Mass copy of Conditional formatting

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Mass copy of Conditional formatting

    Quote Originally Posted by HansDouwe View Post
    Post #7 was not yet visible when I posted post #8.
    It was posted a full five minutes before, so maybe you'd had the thread open for a while without refreshing the page?

    Not to worry.

  14. #14
    Registered User
    Join Date
    07-16-2023
    Location
    Hungary
    MS-Off Ver
    Excel 2019
    Posts
    32

    Re: Mass copy of Conditional formatting

    Thank you, works pretty well!

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Mass copy of Conditional formatting

    If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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: 1
    Last Post: 03-10-2023, 07:08 AM
  2. Replies: 2
    Last Post: 11-16-2019, 05:01 AM
  3. Conditional formatting en mass
    By crowmagnus in forum Word Formatting & General
    Replies: 4
    Last Post: 01-20-2017, 02:54 AM
  4. Replies: 1
    Last Post: 07-22-2016, 03:00 PM
  5. [SOLVED] Mass Conditional Formatting with unique cell referencing
    By pip74205 in forum Excel General
    Replies: 4
    Last Post: 12-30-2014, 07:09 PM
  6. mass delete conditional formatting rules?
    By johnandrews in forum Excel General
    Replies: 2
    Last Post: 01-06-2014, 04:39 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