+ Reply to Thread
Results 1 to 4 of 4

conditional format - highlight cells equalling cell above

  1. #1
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    conditional format - highlight cells equalling cell above

    how does one do this?

    i know how to conditional format, but not with formulas.

    I went to Conditional Formatting - Highlight Cell Rules - More Rules - Use a formula

    but didn't know where to go from there. For formula I entered =if(A2=A1) and left the formula at that, and then underneath pressed the format button to make the preview which color I wanted. But the formula itself is erroneous.

  2. #2
    Registered User
    Join Date
    05-13-2011
    Location
    New Zealander in London
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: conditional format - highlight cells equalling cell above

    Use the formula:
    Please Login or Register  to view this content.
    But if you want to use an IF formula, the following will work also:
    Please Login or Register  to view this content.
    ...because Excel will see the "1" as TRUE and "0" as FALSE and act accordingly.

  3. #3
    Forum Contributor
    Join Date
    06-21-2009
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    200

    Re: conditional format - highlight cells equalling cell above

    i understood the second part, but what does the first part do? tried it in excel but didnt quite follow what was happening.

  4. #4
    Registered User
    Join Date
    05-13-2011
    Location
    New Zealander in London
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: conditional format - highlight cells equalling cell above

    1. In Cell A2 select Conditional Formatting / New Rule...
    2. Select "Format only cells that contain..."
    3. Select "Cell Value" and "Equal To"
    4. Type in =A1
    5. Select the formatting you want

    OR


    1. In Cell A2 select Conditional Formatting / New Rule...
    2. Select "Use formula to determine which cells to format..."
    3. Type in =IF(A2=A1,1,0)
    4. Select the formatting you want

+ 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