+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting Copy Paste Formula not changing for Rows

  1. #1
    Registered User
    Join Date
    12-03-2018
    Location
    Adelaide, Australia
    MS-Off Ver
    2013
    Posts
    3

    Conditional Formatting Copy Paste Formula not changing for Rows

    Gday All

    Goal:- Trying to create a conditional format that goes across three or four sheets which are updated monthly for rosters, formula written so that if a duplicate (name) is detected in the relevant cells in any row on any sheet it will highlight the cell in red and bold to identify there's a clash.

    Issue:- The formula and conditional format seems to be working for a row across the sheets. But when I copy and paste in any way, only half the formula updates for the new row. Looking for a solution so that the formula updates for any row it's copied to, or another way to input the conditional formatting so that there's no issue.

    Further Detail:-
    Sheet 1-3, Row 2-3 Month and Column Title, Column A-B Date and Location (all matching)
    Sheet 1, Row 4-16, Column C-E (are three choices)
    Sheet 2, Row 4-16, Column C-H (are six choices)
    Sheet 3, Row 4-16, Column C-H (are six choices)
    Sheet 4, Each Column is a name list that populates any of the choices on the other sheets by drop down menu.

    Sheet 1, C4-E4, has three conditions applying to all three cells:
    =COUNTIF(C4:E4,C4)>1
    =COUNTIF(INDIRECT("'SHEET2'!C4:H4"),C4)>0
    =COUNTIF(INDIRECT("'SHEET3'!C4:H4"),C4)>0
    (This is repeated to Sheet 2 and 3 for C4-H4 with correct changes to INDIRECT formula.)

    When we copy and paste to Row 5 we end up with the below:

    Sheet 1, C5-E5:
    =COUNTIF(C5:E5,C5)>1
    =COUNTIF(INDIRECT("'SHEET2'!C4:H4"),C5)>0
    =COUNTIF(INDIRECT("'SHEET3'!C4:H4"),C5)>0
    (The INDIRECT formula inside "" doesn't change Row to Row 5, while all others outside of "" do change.)

    Hope that's enough information for someone to help us out!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Conditional Formatting Copy Paste Formula not changing for Rows

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question. If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    If you have less than 10 posts, do not try to copy and paste the link. Instead, type the link out in your thread.

    No further help to be offered, please, until the OP has complied with this request.

  3. #3
    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,929

    Re: Conditional Formatting Copy Paste Formula not changing for Rows

    @ Pepe, OP has less than 10 posts, so they cannot include a link yet

    Jon, please type out the link to the other site you posted this in. Leave gaps or add ... or anything to break it up.
    (or Pepe could post it for you.)
    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

  4. #4
    Registered User
    Join Date
    12-03-2018
    Location
    Adelaide, Australia
    MS-Off Ver
    2013
    Posts
    3

    Re: Conditional Formatting Copy Paste Formula not changing for Rows

    Thanks for the assistance FDibbins

    I can't type anything similar to the other page or thread as it raises an error... the other post is on MrExcel

  5. #5
    Registered User
    Join Date
    12-03-2018
    Location
    Adelaide, Australia
    MS-Off Ver
    2013
    Posts
    3

    Re: Conditional Formatting Copy Paste Formula not changing for Rows

    Other site I posted was MrExcel using the same Subject title.

    A User there offered solution of removing the INDIRECT function, which corrected the copy/paste requirement I have.
    But it now means only 2nd or 3rd etc. duplicate is highlighted, and as the purpose of the conditional formatting was to have each individual sheet editor aware of duplicates, this solution removes the goal that the conditional formatting was trying to achieve.

  6. #6
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Conditional Formatting Copy Paste Formula not changing for Rows


  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Conditional Formatting Copy Paste Formula not changing for Rows

    Quote Originally Posted by FDibbins View Post
    @ Pepe, OP has less than 10 posts, so they cannot include a link yet
    Of course, that is indicated in the penultimate line of Ali's canned reply I used

  8. #8
    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,929

    Re: Conditional Formatting Copy Paste Formula not changing for Rows

    Thanks guys

+ 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] Copy conditional formatting with AND formula to multiple rows
    By M_DACH in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-31-2014, 08:59 AM
  2. Conditional Formatting, Changing Colours to rows
    By MatthewIJClark in forum Excel General
    Replies: 23
    Last Post: 06-06-2013, 04:06 PM
  3. [SOLVED] How to copy conditional formatting without changing the cell values
    By jewellove in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-31-2012, 04:54 AM
  4. [SOLVED] Macro to copy and paste changing number of rows
    By phil3061 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-05-2012, 04:55 PM
  5. Replies: 2
    Last Post: 10-24-2011, 12:06 PM
  6. Replies: 5
    Last Post: 08-18-2011, 05:03 AM
  7. Changing columns to rows without copy and paste
    By BIGDAN in forum Excel General
    Replies: 2
    Last Post: 05-29-2010, 12:12 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