+ Reply to Thread
Results 1 to 2 of 2

cell colour with count if

  1. #1
    Forum Contributor spinkung's Avatar
    Join Date
    10-27-2006
    Posts
    199

    cell colour with count if

    Hi,

    I am trying to change the colour of a cell based on a lookup.

    So i one line of 6 numbers, i.e 1,2,3,4,5,6. On another sheet i have a range of numbers that could contain any of the above.
    If the number appears in the range i want to higlight the cell a colour.
    I've written this formula adjacent to the single line which works if i want to show an "X" character if the number is found but i really want to change the colour of the cell only so i can still see the number.


    Please Login or Register  to view this content.
    I did this in vba but someone managed to delete it for me which was nice. I'm hoping there is a quick way to achieve this in a formula so i don't have to write the code again.

    Many Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: cell colour with count if

    So you want to highlight B7, if it is equal to a number within 'LookupRange'!$A$1:$G$100 ?

    Yes?

    If so, then, first you should name that range, Go to Insert|Name|Define and enter a name for the range like, "LookupRange" (without quotes).

    Then go to B7 and go to Format|Conditional Formatting

    Select Formula Is from 1st dropdown and enter formula: =Match(B7,LookupRange,0)

    Click Format and choose colour from pattern tab.

    You can copy and Paste Special|Formats onto other cells to apply the conditions to them to.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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