+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting copying

  1. #1
    Registered User
    Join Date
    07-01-2017
    Location
    UK
    MS-Off Ver
    365
    Posts
    80

    Conditional Formatting copying

    Hi guys,

    I'm afraid i'm very much an excel novice so please go easy on me

    I'im trying to create a conditional format on my spreadsheet, but 1 part is taking forever and being very tedious, hoping for your help

    on sheet 2 i have various cells of data and various cells empty

    on sheet 1 im trying to conditional format according to those cells on sheet 2

    for example

    $a$1:$C$1 | =ISBLANK('sheet 2'!$A$1) | cell fill grey
    $a$2:$C$2 | =ISBLANK('sheet 2'!$A$2) | cell fill grey
    $a$3:$C$3 | =ISBLANK('sheet 2'!$A$3) | cell fill grey
    $a$4:$C$4 | =ISBLANK('sheet 2'!$A$4) | cell fill grey
    $a$5:$C$5 | =ISBLANK('sheet 2'!$A$5) | cell fill grey

    I want to copy this to the next column but accordingly

    eg

    $D$1:$F$1 | =ISBLANK('sheet 2'!$B$1) | cell fill grey
    $D$2:$D$2 | =ISBLANK('sheet 2'!$B$2) | cell fill grey
    $D$3:$D$3 | =ISBLANK('sheet 2'!$B$3) | cell fill grey
    $D$4:$D$4 | =ISBLANK('sheet 2'!$B$4) | cell fill grey
    $D$4:$D$5 | =ISBLANK('sheet 2'!$B$5) | cell fill grey

    If I use format painter, it copies the cell to the next requested columns but the conditional format leaves the rule as was previous

    eg

    $D$1:$F$1 | =ISBLANK('sheet 2'!$A$1) | cell fill grey
    $D$2:$D$2 | =ISBLANK('sheet 2'!$A$2) | cell fill grey
    $D$3:$D$3 | =ISBLANK('sheet 2'!$A$3) | cell fill grey
    $D$4:$D$4 | =ISBLANK('sheet 2'!$A$4) | cell fill grey
    $D$4:$D$5 | =ISBLANK('sheet 2'!$A$5) | cell fill grey

    so I have to manually edit the rule so all the A's become B's

    If I try highlighting, copy and special format paste, it does the same as above so have to manually edit again (also this very often freezes excel until I do a forced end task)

    if I highlight, then try extending, it just extends the cells for sheet 1 and does not adjust the formula according to sheet 2

    eg

    $a$1:$C$1 | =ISBLANK('sheet 2'!$A$1) | cell fill grey | becomes | $A$1:$F$1 | =ISBLANK('sheet 2'!$A$1) | cell fill grey
    $a$2:$C$2 | =ISBLANK('sheet 2'!$A$2) | cell fill grey | becomes | $A$1:$F$1 | =ISBLANK('sheet 2'!$A$2) | cell fill grey
    $a$3:$C$3 | =ISBLANK('sheet 2'!$A$3) | cell fill grey | becomes | $A$1:$F$1 | =ISBLANK('sheet 2'!$A$3) | cell fill grey
    $a$4:$C$4 | =ISBLANK('sheet 2'!$A$4) | cell fill grey | becomes | $A$1:$F$1 | =ISBLANK('sheet 2'!$A$4) | cell fill grey
    $a$5:$C$5 | =ISBLANK('sheet 2'!$A$5) | cell fill grey | becomes | $A$1:$F$1 | =ISBLANK('sheet 2'!$A$5) | cell fill grey

    Hoping you get the idea lol

    I've got 30+ rows on my sheet and each of the 3 column cells represent a day in the year so as you can imaging, my columns go upto APA

    thats a lot to get through and taking much time to deal with working individually through

    I've tried searching google for a faster way and even tried looking for a way to find a replace in conditional formatting rules but there seems to not be a way to do that.

    Please can you tell me if there is a faster way to process this

    Thankyou VERY! much in advance

    Please remember, I am an excel novice

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Conditional Formatting copying

    HI

    Select Range in sheet1 and ConditionalFormating>NewRule>Use A Formula to....


    =ISBLANK(OFFSET(Sheet2!$A1,0,(INT((COLUMN()+2)/3)-1)))
    use the formula and format as required...

  3. #3
    Registered User
    Join Date
    07-01-2017
    Location
    UK
    MS-Off Ver
    365
    Posts
    80

    Re: Conditional Formatting copying

    Many thanks for your reply, not sure what I done wrong but couldn't get that formula to work...

    Hopefully I've input the screenshots correctly

    but as you can see, I've tediously made it up to the date of 07/08/2017 so need to commence from cell LH5:LJ5 which on sheet2 corresponds to DD4

    I've edited that formula I was hoping accordingly:

    =ISBLANK(OFFSET('Daily Routing'!$DD4,0,(INT((COLUMN()+2)/3)-1)))

    All the cells turned grey as hoped (LH5:APA33), but on sheet 2 I have 1 cell (DD32), that has data which theoretically should have remained white in cells LH33:LJ33, but this still greyed out

    Sorry, please where did I go wrong?

    Thankyou ever so much

    Attachment 525807

    Attachment 525808
    Last edited by JaSonic75; 07-01-2017 at 12:26 PM.

  4. #4
    Registered User
    Join Date
    06-28-2017
    Location
    uk
    MS-Off Ver
    2013
    Posts
    15

    Re: Conditional Formatting copying

    the format painter wont copy down because of the $'s - you need to remove the $'s before the Row numbers. keep the column $'s just remove the row ones, then format painter will work.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Conditional Formatting copying

    2 suggestions on what you are already doing...
    Please Login or Register  to view this content.
    $a1:$C5 | ='sheet 2'!$A$1="" | cell fill grey

    This should copy cover OK, but if not, just make the adjustment in the 1st cell of each range, it will get applied to the whole range
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Copying Conditional Formatting
    By saq7792 in forum Excel General
    Replies: 6
    Last Post: 02-19-2017, 04:54 PM
  2. Conditional formatting not copying
    By blueneptune146 in forum Excel General
    Replies: 2
    Last Post: 07-23-2015, 03:46 PM
  3. Copying conditional formatting
    By romajr86 in forum Excel General
    Replies: 2
    Last Post: 09-23-2009, 09:21 PM
  4. Copying conditional formatting
    By johnmitch38 in forum Excel General
    Replies: 7
    Last Post: 07-22-2009, 10:14 AM
  5. copying conditional formatting
    By Wzbell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2007, 01:16 PM
  6. [SOLVED] Copying Conditional Formatting - example.bmp (0/1)
    By Warhawk in forum Excel General
    Replies: 1
    Last Post: 04-18-2006, 03:55 PM
  7. [SOLVED] Copying Conditional Formatting
    By SMac in forum Excel General
    Replies: 3
    Last Post: 03-11-2005, 04:06 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