+ Reply to Thread
Results 1 to 4 of 4

Adding an AND Function to a =IF(COUNTIF.... Formula

  1. #1
    Forum Contributor
    Join Date
    02-09-2016
    Location
    West Midlands
    MS-Off Ver
    2016
    Posts
    224

    Adding an AND Function to a =IF(COUNTIF.... Formula

    Just had some help from you guys (Pete's the man!) who came up with the following Formula which works perfectly.

    =IF(COUNTIF(C1:L18,A1),A1,"")

    How can i add an AND function to this?

    I want to Cell to Run the COUNTIF function above and Only display the TRUE result (A1) when A1 is withing the range C1:L18 AND D10>0 (the value in D10 is greater than 0)


    Really aprreciate your help!

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

    Re: Adding an AND Function to a =IF(COUNTIF.... Formula

    Try:

    =IF(AND(COUNTIF(C1:L18,A1),D10>0),A1,"")
    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.

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Adding an AND Function to a =IF(COUNTIF.... Formula

    =IF(AND(COUNTIF(C1:L18,A1),D10>0),A1,"")

    Something like this?

  4. #4
    Forum Contributor
    Join Date
    02-09-2016
    Location
    West Midlands
    MS-Off Ver
    2016
    Posts
    224

    Re: Adding an AND Function to a =IF(COUNTIF.... Formula

    Perfect!

    Cheers guys! Really appreciate your help

+ 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] CountIf function ... adding another variable
    By Busjedwa30 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-01-2015, 07:48 AM
  2. [SOLVED] Adding Indirect formula to a Countif
    By nikkilynn2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-03-2014, 08:24 PM
  3. [SOLVED] Sum product or countif function when adding up multi data across a whole table
    By b16dlg in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2013, 03:12 AM
  4. [SOLVED] Need help adding addional criteria to a countif formula
    By kcleere in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-13-2013, 10:32 AM
  5. Adding a countIf function into column B if A has data
    By synergio in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-17-2012, 11:13 AM
  6. Adding a CountIF to a formula that is already Countif
    By Cmorgan in forum Excel General
    Replies: 4
    Last Post: 06-01-2011, 09:34 AM
  7. Adding a CountIF to a formula
    By Cmorgan in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-01-2011, 07:24 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