+ Reply to Thread
Results 1 to 10 of 10

Conditional Formatting - offset ?

  1. #1
    Registered User
    Join Date
    03-12-2008
    Posts
    7

    Conditional Formatting - offset ?

    Hello everyone
    I am using a worksheet and am trying to highlight differences in cell values between 2 columns,
    column A and B.
    So I highlight Column A, Format, Conditional Formatting,
    Cell Value, is not equal to , =B1 , Format, Pattern, Colour.

    Differences in cell values in Column A and Colmn B are thereby highlighted in the cells in Column A.

    This works well, but what I would ideally like to do is refine, and use the Left offset function ( I think ! ) to ONLY identify where there is a difference between the first three characters in the cells in the two columns.
    Example
    Column A Column B
    AB1 2AY AB1 2AZ
    BB1 3AZ AB1 3AZ This line would be highlighted
    AB3 3AT AB3 5TY

    In other words, what syntax do I need to use to "offset"
    Any answers would be most gratefully receiveed !
    Pete

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Hi
    You can use the following formula in the conditional format - formula option.

    =Left(A1;3)<>Left(B1;3)
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  3. #3
    Registered User
    Join Date
    03-12-2008
    Posts
    7

    Conditional Formatting - comparing cells in 2 columns

    Thankyou Portuga, I have tried the formula, but I cannot get it to work, using either ; or , in case I have an different version of Excel. The error box comes up every time
    with "The formula you typed contains an error" Thanks anyway, Pete

  4. #4
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264

    Different languages and separators

    HUMBERTDING,

    Did you try substituting the semi-colon [;] with a comma (,)?

    Ed

  5. #5
    Registered User
    Join Date
    03-12-2008
    Posts
    7

    Unhappy Still Stuck ! ( Conditional Formatting Problem )

    Yes, Edmac ( thanks for your reply ) I tried ( , ) as well as ( ; ) without brackets of course !
    When I used ( , ) it highlighted all the values in the column.
    Actually, I'll upload part of the sheet, it will be easier to understand ( for me ! )
    Kind regards, Pete
    Last edited by HUMBERTDING; 03-13-2008 at 09:52 AM.

  6. #6
    Registered User
    Join Date
    03-12-2008
    Posts
    7

    Conditional Formatting - Example of spreadsheet

    Hello, me again,
    Here is an example of data on a spreadsheet where I need
    data identified using Conditional Formatting, if you look at the example, there are two cells that I would like to highlight... could anyone help with the formula, please ?
    ( I have had to paste a screenshot into .doc as the system will not upload .xls files )
    Pete
    Attached Files Attached Files

  7. #7
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Quote Originally Posted by HUMBERTDING
    Yes, Edmac ( thanks for your reply ) I tried ( , ) as well as ( ; ) without brackets of course !
    When I used ( , ) it highlighted all the values in the column.
    Actually, I'll upload part of the sheet, it will be easier to understand ( for me ! )
    Kind regards, Pete
    No reason why its not working.
    Simple formula.

    Are you sure you are inserting this formula in the correct place on the conditional formating section?

    Attached!
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-12-2008
    Posts
    7

    Conditional Formatting - solved !!

    Thanks Portuga,
    I made two mistakes
    1) I was Inserting your formula in the "Cell Value Is" ( Not equal to ) box rather than "Formula is" box.
    2) ( ; ) does not work on my version of excel I had to use ( , ) instead.

    All sorted now, and thanks very much for your posts !
    Pete

  9. #9
    Registered User
    Join Date
    03-12-2008
    Posts
    7

    Conditional formatting - new problem !

    I have another problem, related to the first . Now what I would like to do is the reverse ;-
    to ONLY identify where there is a MATCH between the first three characters in the cells in the two columns.
    Can anyone help, please, with a Formula ?
    MANY THANKS !
    Pete

  10. #10
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Just change the <> to =
    Ed
    _____________________________
    Always learning, but never enough!
    _____________________________

+ 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