+ Reply to Thread
Results 1 to 8 of 8

Countif and range values

  1. #1
    Registered User
    Join Date
    04-27-2015
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    11

    Countif and range values

    Hello,

    Could someone please help!

    I posted an earlier for thread about countif which has been solved but would appreciate some help with something more complex now!

    I am doing a number count for open tickets, a ticket is titled as

    [1] Development::Futures Dev

    so i am searching for this on another sheet and i know the range but for criteria i would like to only count cells which

    a) match the exact '[1] Development::Futures Dev'
    b) have blank space in the column next to it which means the ticket is still open.

    Many Thanks,

    S

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Countif and range values

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    04-27-2015
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    11

    Re: Countif and range values

    Hi there,

    Thank you very much.

    Please see my sheet attached.

    In Sheet1 Cell B2 i have my countif formula. But to count open tickets I need the formula to look at the Alldata tab under column C and make sure that the information matches the data in the the cells e.g. Sheet1 cellA2= cellC2 Alldata tab and then there is no close time in cell B2 Alldata tab so this is still open and would count as 1 open ticket.

    I have tried using =countif and specifying the range and then for criteria putting in an =if formula but from here it gets beyond my knowledge and i am not sure how to incorporate so many 'if' criteria as i keep getting formula errors.

    Thank you

    S
    Attached Files Attached Files

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Countif and range values

    Like this ?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-27-2015
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    11

    Re: Countif and range values

    That's awesome! Thank you very much!

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Countif and range values

    You're welcome

  7. #7
    Registered User
    Join Date
    04-27-2015
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    11

    Re: Countif and range values

    Pepe,

    can i ask one last thing please.

    Your formula works when there is a blank

    =SUMPRODUCT((AllData!G10:G1234=Summary!A5)*(AllData!F10:F1234=""))

    and also when i populate the last part with "open" e.g.

    =SUMPRODUCT((AllData!G10:G1234=Summary!A5)*(AllData!F10:F1234="open"))

    But how do i ask the formula to look for more than one item e.g. "open" & "new"

    I've tried the below but they don't work:

    =SUMPRODUCT((AllData!G10:G1234=Summary!A5)*(AllData!F10:F1234="open","new"))

    &

    =SUMPRODUCT((AllData!G10:G1234=Summary!A5)*(AllData!F10:F1234="open,new")

    Do you knwo where i am going wrong please?

    Many Thanks,

    S

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Countif and range values

    Try

    =SUMPRODUCT((AllData!G10:G1234=Summary!A5)*((AllData!F10:F1234="open")+(AllData!F10:F1234="new")))

    that will count instances that are either "open" or "new".
    Dave

+ 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. Countif Range based on Cell Values
    By adam2308 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2013, 05:51 PM
  2. countif range of values in particular cells with certain criteria
    By ngs007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2013, 12:06 PM
  3. Countif Function to look for values within a range
    By feature in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2013, 05:18 PM
  4. Countif Function to look for values within a range
    By feature in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2013, 02:28 PM
  5. [SOLVED] countif values is unique in a range
    By hluk in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-14-2012, 11:23 PM
  6. Subtotal & Countif with range of values
    By MattR in forum Excel General
    Replies: 5
    Last Post: 02-04-2011, 04:08 PM
  7. Countif (Number of values in a range)
    By braydon16 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2007, 06:19 PM
  8. How do I Countif for a range of values
    By iMartyn in forum Excel General
    Replies: 4
    Last Post: 12-08-2005, 05:55 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