+ Reply to Thread
Results 1 to 4 of 4

COUNTIFS cell reference problem

  1. #1
    Registered User
    Join Date
    11-24-2014
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    10

    COUNTIFS cell reference problem

    Hi,

    Ive recently been learning about using COUNTIFS. This is working fine when using Text or a number as the thing i am searching for. However, when I type a cell reference I am having some problems.

    For example-

    =COUNTIFS(FIXTURES!I2:I616,"*TeamB*", FIXTURES!B2:B616, "*League*", FIXTURES!J2:J616,"*Ekeberg1*")

    This works as I would hope. However, instead of typing TeamB or Ekeberg1 as above i would prefer to use a cell reference. This relates to sporting fixtures, when i try a cell reference for a column that contains single values such as "Home Team" it works no problem-

    =COUNTIF(FIXTURES!G2:G616,"="&D15)

    However, the column that I really want to search contains more than one value.. This contains something along the lines of "TeamA vs Team B". So i want to make a count of all cells that contain TeamB. Ive had no problem searching for that value in my first Example where it is explicitly typed. However, when i want to replace it with a cell reference it doesnt work. My search found some different sytax that i should use, ie-

    =COUNTIF(FIXTURES!I2:I616,"="&"*D15*")

    So instead of - "="&D15 Ive now got - "="&"*"D15"*" . However, this doesnt work for me either. I understand Ive probably got the syntax wrong in trying to use the wildcard.

    Any advice on what I should change in this syntax?

    Regards,
    Damon

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: COUNTIFS cell reference problem

    You had the right idea there at the end, but not quite right..

    Try

    FIXTURES!I2:I616,"*"&D15&"*"

  3. #3
    Registered User
    Join Date
    11-24-2014
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: COUNTIFS cell reference problem

    Thanks Jonmo1, that works!

    Appreciated.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: COUNTIFS cell reference problem

    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. [SOLVED] Using date fields as reference with COUNTIFS?
    By dubcap01 in forum Excel General
    Replies: 3
    Last Post: 10-20-2015, 05:28 AM
  2. [SOLVED] Countifs with Row reference
    By nickmessick1 in forum Excel General
    Replies: 3
    Last Post: 05-14-2015, 07:45 PM
  3. Problem with cell return in a countifs
    By asterobelix in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2014, 08:09 AM
  4. countifs not working with cell reference
    By Trig79 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2013, 07:07 AM
  5. Countifs with reference String along with criteria
    By boscoamd in forum Excel General
    Replies: 2
    Last Post: 11-30-2011, 04:59 AM
  6. Countifs to get criteria from a cell reference
    By SeanKosmann in forum Excel General
    Replies: 2
    Last Post: 01-27-2011, 11:00 AM
  7. Making countifs reference inequalities
    By mremmenga in forum Excel General
    Replies: 1
    Last Post: 10-22-2008, 05:42 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