+ Reply to Thread
Results 1 to 7 of 7

Highlight cells with particular values

  1. #1
    Registered User
    Join Date
    03-25-2015
    Location
    Zagreb, Croatia
    MS-Off Ver
    Office 365
    Posts
    94

    Highlight cells with particular values

    hi folks!

    i want to highlight cells in column A when i type or paste particular values in it.

    in "styles" - "conditional formatting" - i can choose "highlight cells rule" and then
    "equal to" or "text that contains", and it work perfectly.

    my problem is that i have a lot of these particular numbers, but i dont see a way
    to type in all these particular numbers, and excel wont take it when i choose a range (column)
    where all these particular numbers are written in.

    in the attached file i want to highlight in column A all cells when i type the numbers in column A from
    sheet 2.

    can you please tell me how to do that?

    thanks in advance!

    mandura
    Attached Files Attached Files
    Last edited by mandura; 10-16-2015 at 08:55 AM. Reason: spelling error

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Highlight cells with particular values

    Create a named range for the values on Sheet2 - In the attached I've called it "NumberRange".

    Use a formula to dictate the conditional formatting. I've used
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Be careful when pasting values in. If you don't use Paste Special / Values you will overwrite the conditional formatting.

    Hope that helps.

    BSB
    Attached Files Attached Files
    Last edited by BadlySpelledBuoy; 10-16-2015 at 09:06 AM. Reason: Adding further info

  3. #3
    Registered User
    Join Date
    03-25-2015
    Location
    Zagreb, Croatia
    MS-Off Ver
    Office 365
    Posts
    94

    Re: Highlight cells with particular values

    great!

    you solved my problem!!
    thank you very much!!

    but, can you please explain my what exactly you have done?

    where did you wrote =COUNTIF(NamedRange,A1)>0 in?
    how did you create the numberrange?

    sorry but i am not that good in excel.

    thank you very much for your help!!

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Highlight cells with particular values

    This is how it's done:
    - Go to Sheet 2 and select the range of numbers you want have checked
    - In the white box to the left of the formula bar (which probably reads 'A1'), type in 'NumberRange' - this makes this a 'Named Range'
    -- You can check this has worked correctly by clicking 'Name Manager' on the 'Formulas' tab, where you should see an entry called 'Number Range' showing the range it refers to (Sheet2, A1:A15) and the values (115, 116, etc)
    - Now go back to Sheet 1 and select your range (A1:A40).
    - Click 'Conditional Formatting' on the 'Home' tab, select 'New Rule' and 'Use a formula to determine which cells to format'.
    - In the formula box, type =COUNTIF(NumberRange,A1)>0
    - Click the 'Format' box and select the formatting you want (blue fill / red text / whatever you want), then click OK twice.

    Hope that helps.


    As your problem has been solved, please consider giving BadlySpelledBuoy reputation (by clicking the star to the bottom-left of his post) and mark the thread as 'Solved' by using the 'Thread Tools' menu at the top of your first post. Thank you.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  5. #5
    Registered User
    Join Date
    03-25-2015
    Location
    Zagreb, Croatia
    MS-Off Ver
    Office 365
    Posts
    94

    Re: Highlight cells with particular values

    thank you very, very much!!

    you really helped me!!

  6. #6
    Registered User
    Join Date
    03-25-2015
    Location
    Zagreb, Croatia
    MS-Off Ver
    Office 365
    Posts
    94

    Thumbs up Re: Highlight cells with particular values

    thank you very, very much!!

    you really helped me!!

  7. #7
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Highlight cells with particular values

    You're welcome.

+ 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 4 rows based on two cells values
    By sokeefe14 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-12-2015, 12:39 PM
  2. Highlight Cells based on its values
    By VKu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2015, 05:48 AM
  3. Highlight all cells in a column based on values in two different cells
    By lbrasfield in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-26-2014, 06:26 AM
  4. Replies: 2
    Last Post: 03-26-2014, 04:13 PM
  5. Replies: 1
    Last Post: 12-13-2013, 10:28 PM
  6. [SOLVED] compare values in two cells, highlight when there is no match.
    By frhling in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-03-2013, 09:29 AM
  7. Replies: 0
    Last Post: 10-12-2012, 01:08 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