+ Reply to Thread
Results 1 to 10 of 10

how to highlight numbers that appear on a list

  1. #1
    Registered User
    Join Date
    10-06-2022
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    53

    how to highlight numbers that appear on a list

    Hi experts,

    I have this table below with the numbers and frequency

    Number Frequency
    1 1
    12 1
    13 1
    49 2
    17 1
    2 2
    20 2
    21 1
    23 2
    40 1
    25 1
    27 1
    28 2
    3 2
    32 3
    33 1
    34 1
    35 1
    36 2
    5 1
    45 1
    9 3

    I want to highlight the above numbers in this row list below such that higher frequency would have a darker shade of highlight. Pls refer to the attached excel book. Thanks.

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: how to highlight numbers that appear on a list

    Select the numbers from 1 to 50, and use the Conditional Formatting formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-06-2022
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    53

    Re: how to highlight numbers that appear on a list

    Quote Originally Posted by TMS View Post
    Select the numbers from 1 to 50, and use the Conditional Formatting formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hi TMS,

    Your solution works but can the different shades depending on the frequency for eg. shade of frequency 3 is darker than shade of frequency 2 and shade of frequency 2 is darker than shade of frequency 1 able to work? Thanks.

  4. #4
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: how to highlight numbers that appear on a list

    Hi,
    select the range of cells you want to format and
    insert 3 CF rules, one for each frequency, and choose a color you want for each.
    For frequency 1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And change the formula as you need.
    See attached
    Attached Files Attached Files
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: how to highlight numbers that appear on a list

    AFAIK, there is no simple way to do what you are asking. Colour gradient is applied to the selected cells. Colour highlights based on another cell or range require formulae.

    I have seen techniques intended to combine these approaches but they may not meet your needs.

    For some ideas, Google: conditional formatting gradient based on another cell

  6. #6
    Registered User
    Join Date
    10-06-2022
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    53

    Re: how to highlight numbers that appear on a list

    Quote Originally Posted by tanasedn View Post
    Hi,
    select the range of cells you want to format and
    insert 3 CF rules, one for each frequency, and choose a color you want for each.
    For frequency 1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And change the formula as you need.
    See attached
    Hi tanasedn,

    Thanks, it works.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: how to highlight numbers that appear on a list

    Dohhhh … overthinking the requirement

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: how to highlight numbers that appear on a list

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  9. #9
    Registered User
    Join Date
    10-06-2022
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    53

    Re: how to highlight numbers that appear on a list

    Quote Originally Posted by tanasedn View Post
    Hi,
    select the range of cells you want to format and
    insert 3 CF rules, one for each frequency, and choose a color you want for each.
    For frequency 1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And change the formula as you need.
    See attached
    Hi tanasedn,

    Is there any way that can count the number of highlighted cells? Thanks.
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: how to highlight numbers that appear on a list

    You can use frequency column and countif
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

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

+ 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. Function to highlight numbers in sequence. Copy corresponding numbers
    By JM6544088 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-10-2022, 04:30 AM
  2. Highlight numbers in a column +/- 2.5 from a select group of numbers
    By AlgoTrader77 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-22-2018, 02:30 AM
  3. Highlight Numbers in word from another Word List
    By vish2025 in forum Word Formatting & General
    Replies: 0
    Last Post: 03-09-2011, 02:36 AM
  4. Colour paired numbers and highlight unmatched numbers
    By tek9step in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2010, 11:24 AM
  5. [SOLVED] Highlight 5 largest numbers in a long list
    By Manosh in forum Excel General
    Replies: 1
    Last Post: 04-15-2006, 10:15 AM
  6. [SOLVED] How do you compare 2 list of numbers and highlight the difference
    By Jay Jones in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2006, 12:50 PM
  7. RE: How do you compare 2 list of numbers and highlight the difference
    By Tom Ogilvy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2006, 10:55 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