+ Reply to Thread
Results 1 to 4 of 4

Looking for help with an if then function

  1. #1
    Registered User
    Join Date
    01-17-2020
    Location
    Corvallis, OR
    MS-Off Ver
    2019
    Posts
    33

    Looking for help with an if then function

    I am not sure if this would fall under VBA or cell formula. Basically what I am doing is making a number comparative, using a cell as a search box. What I am trying to do is turn the search cell (I7) red if there are no matches and green if it matches one of the numbers in column 1. Any help would be much appreciated. ( I have tried a few different codes and couldn't get it to work)
    Attached Files Attached Files
    Last edited by Jede; 01-22-2020 at 04:53 PM.

  2. #2
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Looking for help with an if then function

    Hi maybe try conditional formatting these 2 rules for I7:


    Red
    =COUNTIF($A$2:$A$13,$I$7)=0

    Green
    =COUNTIF($A$2:$A$13,$I$7)>0
    Last edited by crazyforexcel; 01-22-2020 at 04:46 PM.

  3. #3
    Registered User
    Join Date
    01-17-2020
    Location
    Corvallis, OR
    MS-Off Ver
    2019
    Posts
    33

    Re: Looking for help with an if then function

    Quote Originally Posted by crazyeddie View Post
    Hi maybe try conditional formatting these 2 rules for I7:


    Red
    =COUNTIF($A$2:$A$13,$I$7)=0

    Green
    =COUNTIF($A$2:$A$13,$I$7)>0
    works perfect Thanks a bunch.

  4. #4
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Looking for help with an if then function

    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. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  2. [SOLVED] Usage of standard functions into custom function (or user defined function)
    By tusharb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2016, 12:43 AM
  3. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  4. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  5. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  6. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  7. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 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