+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting based on the formula

  1. #1
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    Conditional formatting based on the formula

    I've attached a workbook with explanation inside there,

    Main Goal is to do conditional formatting on the A & B columns.

    Here is a formula based on Cell A:
    =IF(RIGHT(A1,5)="396OL","101OL",IF(RIGHT(A1,5)="400OL","101OL",IF(RIGHT(A1,5)="413OL","103OL",RIGHT(A1,5))))

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Conditional formatting based on the formula

    Where does that formula come into it? I can't see it in your file.

    Pete

  3. #3
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    Re: Conditional formatting based on the formula

    Hi Pete,
    Formula is not anywhere at the moment, if you copy & paste the formula into C1 and drag it down to C10 the results for A1 will appear.

    But, the point is, I'd like to apply conditional formatting depending on the values of last 5 characters with this formula being applied for column A against column B

    Column B is just original data I will be comparing to Column A depending on the last 5 characters.

    Thanks

  4. #4
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    Re: Conditional formatting based on the formula

    Anyone got any clues? Been stuck for a while

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,098

    Re: Conditional formatting based on the formula

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    Re: Conditional formatting based on the formula

    Perfection, could you explain this formula please? I understand a bit of it but not all. Also any recommendation where I can learn excel formulas and vba?

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,098

    Re: Conditional formatting based on the formula

    The formula is basically the same as yours, except I Added
    =RIGHT($B1,5),$A1<>""
    to the end, so if the result of your formula matches the last 5 digits in col B & col A isn't blank, then it highlights the cell

+ 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 based on Formula
    By arjkot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2016, 12:59 PM
  2. [SOLVED] Formula based on Conditional Formatting
    By kimmycoop910 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-22-2016, 12:56 AM
  3. [SOLVED] Conditional formatting based on a formula value
    By Journeyman3000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2014, 08:02 PM
  4. [SOLVED] Help with Conditional Formatting Based on Formula
    By rosboy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2013, 12:29 PM
  5. [SOLVED] Conditional Formatting based on a Formula
    By bbyrne in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-01-2012, 08:47 PM
  6. Conditional formatting based on formula
    By Alan35 in forum Excel General
    Replies: 3
    Last Post: 08-22-2011, 08:15 PM
  7. [SOLVED] Conditional formula based on formatting
    By RD in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 01:55 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