+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting: SUMPRODUCT over range - delete rows

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    Bern, Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    62

    Conditional formatting: SUMPRODUCT over range - delete rows

    Dear ExcelForum,

    Attached is a file which checks duplicate entries with conditional formatting. Duplicates are rows which contain all the same values (case for rows 2 and 3 in attached example) - the second duplicate row is marked red to be deleted.

    There are further checks: if information is incomplete (first or last name missing), or if the person is the same but one or both dates have changed, the corresponding rows are marked orange.

    There's a third condition, which turns the row green if an "x" is in a row.


    My problem: The orange (second) condition is over a range $A$1:$A$1000. When I delete rows (which I do often), the orange condition doesn't stay over the range $A$1:$A$1000, but the range shrinks as rows are deleted.

    Does somebody have an idea, how to either freeze the range of the SUMPRODUCT function to $A$1:$A$1000, or how to avoid using a range?

    Excel 2003, unfortunately

    Thanks!!
    Attached Files Attached Files
    Last edited by ExcelStefan; 07-23-2012 at 03:36 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional formatting: SUMPRODUCT over range - delete rows

    OR(SUMPRODUCT(($A$1:$A$1000=$A4) does not change when i delete rows
    but if you want you could use
    $A$1:INDEX($A:$A,1000) instead of $A$1:$A$1000
    Attached Files Attached Files
    Last edited by martindwilson; 07-23-2012 at 04:25 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-05-2012
    Location
    Bern, Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    62

    Re: Conditional formatting: SUMPRODUCT over range - delete rows

    Hi Martin,

    Thanks for your reply. Huh? When I delete rows, the conditional formatting for the columns changes (see attachement).
    Attached Files Attached Files
    Last edited by Cutter; 07-23-2012 at 11:12 AM. Reason: Removed whole post quote

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional formatting: SUMPRODUCT over range - delete rows

    hmm i tested with excel97 maybe thats it, but the index should fix it

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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