+ Reply to Thread
Results 1 to 11 of 11

Highlight cell in the range which is equal to other cell

  1. #1
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Highlight cell in the range which is equal to other cell

    Hello,

    how do I make it using conditional formatting, so that excel would highlight cell in range B:F which value is equal to cells in column K.

    For example in row 2 cell E2 would be highlighted because E2=K2
    row 3 - B3

    etc
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Highlight cell in the range which is equal to other cell

    hi there. select the range you want to apply to (say from B2:F268)
    go to Home tab -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =B2=$K2
    format the desired fill

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Highlight cell in the range which is equal to other cell

    Hi,

    Conditional format in B2 applied to the whole B:F range

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: Highlight cell in the range which is equal to other cell

    Thank you guys!

    So $ sign before the column or row, kind of locks that column or row or cell, and always picks the values from that locked one right?

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Highlight cell in the range which is equal to other cell

    Quote Originally Posted by kao View Post
    Thank you guys!

    So $ sign before the column or row, kind of locks that column or row or cell, and always picks the values from that locked one right?
    Yes that's essentially correct.
    Note that if both the column and row are locked there is no difference between copying the cells to another cell or cutting the cell and pasting somewhere else. In both those situations the formula always points back to the original cell.

    Contrast that with the result when either the row or column are locked.

    It's known as Absolute referencing rather than Relative referencing and is fundamental to the way Excel works.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,208

    Re: Highlight cell in the range which is equal to other cell

    The answer to this question was given in this post: https://www.excelforum.com/excel-for...ml#post4856835

    You don’t seem to be following the advice offered.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: Highlight cell in the range which is equal to other cell

    AliG, sorry, I see it now. I am only learning now, and it is quite difficult for me to understand everything at once

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,208

    Re: Highlight cell in the range which is equal to other cell

    The way to learn is to try the suggestions that are offered - then you will understand them and how they work. Nobody is expecting you to understand everything at once, but it is reasonable to expect that you will try things, especially when members have taken the time to walk you through it step by step as I did in that post.

    Have you now resolved this issue?

  9. #9
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: Highlight cell in the range which is equal to other cell

    Yes, I have resolved it, thank you!!

    Do not think that I did not pay attention to that post - I did, back then I just used other method, which if I remember correctly you gave too.
    All this thing I am doing is quite confusing so some things might just slip through my eyes, but I will do my best to keep focused!

  10. #10
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: Highlight cell in the range which is equal to other cell

    One more thing regarding CF:

    how to format the cells in a way, that it would give multiple format options to a range of cells.
    For example, if the values in the range are between 1-2 it would give yellow color, if the values are 2-3 it would be orange, 3-4 - green etc. ?

    Thanks!

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,208

    Re: Highlight cell in the range which is equal to other cell

    This is a new query - please start a new thread.

+ 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. [SOLVED] Highlight cell A2 and A1 are not equal (not the usual!)
    By 301 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-11-2015, 11:15 AM
  2. check for match of cell to range of cells only if another cell is equal to X
    By rfigueroa1976 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-25-2015, 07:51 PM
  3. [SOLVED] If cell D3 equals X and P3 doesnt equal 'z' highlight it
    By Suffolkhousing in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-16-2014, 08:43 AM
  4. copy cell if another cell range is equal to a cell.
    By tasneemj in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-02-2014, 12:34 AM
  5. [SOLVED] Highlight a cell based on another cell being equal
    By PomDave in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2014, 04:31 AM
  6. [SOLVED] Cond. formatting a column/Range, highlight cell in column/range if equal to specific text
    By DFrank231 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2013, 03:35 PM
  7. [SOLVED] Cond. Formatting - highlight cell w/value if equal value in list
    By Armitage2k in forum Excel General
    Replies: 3
    Last Post: 10-16-2012, 12:25 AM

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