+ Reply to Thread
Results 1 to 4 of 4

Different color for next cell with different value

Hybrid View

  1. #1
    Registered User
    Join Date
    07-12-2015
    Location
    California
    MS-Off Ver
    Mac 2011
    Posts
    2

    Different color for next cell with different value

    I need to quickly and accurately find the next item that is a different value. Essentially, is there a way for me to automatically turn my first screenshot into my second one?

    Workbook1.png

    Workbook2.png
    Attached Files Attached Files
    Last edited by xmizer; 07-12-2015 at 08:11 PM. Reason: Added workbook

  2. #2
    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
    53,048

    Re: Different color for next cell with different value

    Hi, welcome to the forum

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.

    Having said that, it sounds like you needf to use Conditional Formatting.

    1. highlight the range you want to apply the conditional formatting to (start 1 row below where your data starts - say, A2)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =$A2<>$A1 formay fill your color choice
    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

  3. #3
    Registered User
    Join Date
    07-12-2015
    Location
    California
    MS-Off Ver
    Mac 2011
    Posts
    2

    Re: Different color for next cell with different value

    Hi FDibbins, thanks for your advice.

    If I have several hundred unique values in column A, does that formula still work?
    or does it only check if A2 is different from A1?

  4. #4
    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
    53,048

    Re: Different color for next cell with different value

    no, it will compare A1-A2, then A2-A3, then A3-A4 etc

+ 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. Swapping cell content to INCLUDE CELL FORMATTING (Text color, background color, etc)
    By jcpeterson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2014, 10:09 AM
  2. Change a Range's cell background color to that of another cell's cond. format color
    By kamelkid2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2014, 12:57 PM
  3. Macro to change cell text color based on darkness of cell fill color
    By cincyshirm61 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-25-2014, 12:11 PM
  4. Replies: 4
    Last Post: 12-29-2013, 11:41 PM
  5. Replies: 2
    Last Post: 11-22-2012, 07:02 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