+ Reply to Thread
Results 1 to 4 of 4

Change formatting if value does not equal the previous columns value?

  1. #1
    Forum Contributor
    Join Date
    04-01-2010
    Location
    USA
    MS-Off Ver
    Office 2021
    Posts
    185

    Change formatting if value does not equal the previous columns value?

    I am importing data from a pdf into excel 2007 that contains numbers for different groups going across horizontally in different columns.

    Is there a way to select the data and then use conditional formatting to highlight if the value does not equal the one to its left? For example:

    Bob 25 25 25 25 38 38 38 38 38
    Jan 10 10 10 10 10 10 10 10 87 87

    Is there a way to highlight the first 38 for Bob and the 1st 87 for Jan?

  2. #2
    Registered User
    Join Date
    07-12-2012
    Location
    New Hampshire, United States
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Change formatting if value does not equal the previous columns value?

    Highlight all your data but exclude the first column of numbers, and use this formula for conditional formatting:

    =NOT(C1=OFFSET(C1,0,-1))

    This assumes bob is in cell A1 and the data begins at B1

    Let me know if this works for you.

  3. #3
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Change formatting if value does not equal the previous columns value?

    Yes....example put conditional formatting for Bob on second 25 as below:

    1.) Go to Conditional Formatting through Home

    2.) Then click on New Rule

    3.) Then click on "Format only cells that contain"

    4.) Then change "between" to "not equal to"

    5.) Then in box right next to it put first 25 address like B2 or C2 as per data but make sure you remove $ sign from it.

    6.) Then click on format & set as per requirement

    7.) Then click on "Ok" & again click on "Ok" to exit
    Please consider adding a * if I helped

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Change formatting if value does not equal the previous columns value?

    Use Conditional Formatting with =C1<>B1
    Attached Files Attached Files
    Ben Van Johnson

+ 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. Conditional Formatting for previous cell change
    By no.18shirt in forum Excel General
    Replies: 14
    Last Post: 07-02-2013, 07:14 AM
  2. Replies: 7
    Last Post: 05-30-2013, 01:39 AM
  3. columns in excel to reflect array of values entered in previous two columns
    By netvasi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2011, 01:12 AM
  4. Autochange equal to or above previous cell
    By hotwoz in forum Excel General
    Replies: 2
    Last Post: 07-06-2011, 12:04 PM
  5. If previous filled cell is equal to
    By Directlinq in forum Excel General
    Replies: 12
    Last Post: 03-02-2009, 04:00 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