+ Reply to Thread
Results 1 to 7 of 7

count IF formula question

  1. #1
    Registered User
    Join Date
    10-02-2007
    Location
    wilmington NC
    MS-Off Ver
    2013
    Posts
    26

    count IF formula question

    Hello,

    I'm using this formula =COUNTIF(A5:ZZ5,"PCB") successfully and would like to add a IF to it, IF another cell is within a date range. In other words =COUNTIF(A5:ZZ5,"PCB" and "is a date in the month of July"). Does that make sense and if so any ideas? thanks Jack

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: count IF formula question

    You should add your Excel version to your profile.

    Where are the corresponding cells with the dates?

    Do the dates need to be in July in a particular year, or the year doesn't matter? This is important because there are two completely different solutions for those two cases.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-02-2007
    Location
    wilmington NC
    MS-Off Ver
    2013
    Posts
    26

    Re: count IF formula question

    Thanks Jeff,

    Where are the corresponding cells with the dates? in the same sheet few cells above

    Do the dates need to be in July in a particular year, or the year doesn't matter? This is important because there are two completely different solutions for those two cases. The dates would be in the month of 7/1/21 to 7/31/21. If the dates in the sell are in that range and A5:ZZ5,"PCB" then count. Hope that makes sense.

    Thanks again for your efforts! Jack

  4. #4
    Registered User
    Join Date
    10-02-2007
    Location
    wilmington NC
    MS-Off Ver
    2013
    Posts
    26

    Re: count IF formula question

    Hi Jeff,

    in the same sheet few cells above

    The dates would be in the month of 7/1/21 to 7/31/21. If the dates in the sell are in that range and A5:ZZ5,"PCB" then count. Hope that makes sense.

    Thanks again for your efforts! Jack

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,458

    Re: count IF formula question

    If dates are in A4:ZZ4, and you want to count "PCB" in corresponding A5:ZZ5

    Try:

    Please Login or Register  to view this content.
    Quang PT

  6. #6
    Registered User
    Join Date
    10-02-2007
    Location
    wilmington NC
    MS-Off Ver
    2013
    Posts
    26

    Re: count IF formula question

    Thank you bebo021999!! that works perfect! Jack

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: count IF formula question

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon addreputationiconsmall.jpg below their name.

+ 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. Sum If or Count If, that is the question!
    By Kaykaneetit in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-13-2017, 11:09 AM
  2. [SOLVED] Urgent!Formula to count how many people have answered yes to more than one question
    By V.Cell in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2015, 06:28 AM
  3. [SOLVED] count if question
    By jdunn1 in forum Excel General
    Replies: 3
    Last Post: 06-09-2012, 10:46 PM
  4. COUNT Formula question
    By CW123 in forum Excel General
    Replies: 4
    Last Post: 01-17-2012, 07:17 PM
  5. macro question and count question... thanks!
    By bstaff in forum Excel General
    Replies: 5
    Last Post: 02-07-2007, 10:12 AM
  6. Count Question
    By inkpassion in forum Excel General
    Replies: 1
    Last Post: 09-12-2005, 07:05 PM
  7. Count If question
    By Denise in forum Excel General
    Replies: 3
    Last Post: 08-16-2005, 05: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