+ Reply to Thread
Results 1 to 3 of 3

IF then question

  1. #1
    Registered User
    Join Date
    07-24-2008
    Location
    US
    Posts
    1

    IF then question

    I'd like to compare cell A2 to all cells in columns E and H. If A2's value is found in any cell in the columns E or H, then I'd like to change the font color of A2. Any suggestions would be appreciated. Thanks for the help.

  2. #2
    Registered User
    Join Date
    07-23-2008
    Location
    UAE
    Posts
    12

    Smile

    =SUMIF(E:H,A2)/COUNTIF(B1:C5,A2)

    Though you will need to use conditional formatting:
    1- Go to Format > Conditional Formatting
    2- Select Formula is from the drop-down menu
    3- Paste this formula: =SUMIF(E:H,A2)/COUNTIF(B1:C5,A2)
    4- Click on Format and select the desired font color
    5- Click OK twice

    Hope this helps.


  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by JA219
    I'd like to compare cell A2 to all cells in columns E and H. If A2's value is found in any cell in the columns E or H, then I'd like to change the font color of A2. Any suggestions would be appreciated. Thanks for the help.
    Select A2 and go to Format|Conditional Formatting

    Select Formula Is from 1st Drop down and enter formula:

    =COUNTIF($E:$H,$A$2)

    Click Format to choose your font colour
    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