+ Reply to Thread
Results 1 to 11 of 11

Excel Formula Help with Countif Function

  1. #1
    Registered User
    Join Date
    07-06-2019
    Location
    Drakes Branch, VA
    MS-Off Ver
    2016
    Posts
    5

    Excel Formula Help with Countif Function

    Hello:
    I am hoping that this procedure is possible. It would like my life a lot easier. Here is my question.
    I would like to add the number of non-blank cells in a select group of cells.
    Example: Cells (C8, C11, C14, C17, C20, C23). If there is a value in those particular cells, that I would like to be counted. I have tried =COUNTIF(C8, C11, C14, C17, C20, C23,">=6/1/2019") but that did not work.
    I also tried =COUNTIF(C8:C80,">6/1/2019") but that did not give actual numbers.
    If I do a range (C8:C23) there are other dates in other cells that I do not want to count. Example in picture.
    Total count of yellow cells only. This is only a small sample of the over task.
    Excel.jpg
    Thank you in advance.
    Attached Images Attached Images

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    re: Excel Formula Help with Countif Function

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.


    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)


    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-06-2019
    Location
    Drakes Branch, VA
    MS-Off Ver
    2016
    Posts
    5

    re: Excel Formula Help with Countif Function

    Thank you Sir. I will address a little later today if that is alright. The picture attached was part of a new sample file, but I will attach that sample instead.

  4. #4
    Registered User
    Join Date
    07-06-2019
    Location
    Drakes Branch, VA
    MS-Off Ver
    2016
    Posts
    5

    re: Excel Formula Help with Countif Function

    BTW... Love it out your neck of the woods. I lived in Kiowa, CO for a bit.
    Thank you,
    Tom

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    re: Excel Formula Help with Countif Function

    Quote Originally Posted by alansidman View Post
    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Alan, the thread title is compliant with the new rules
    1. Title must briefly summarize your request. (A, Z)
    The OP has submitted a request for help with an excel formula.

    Bearing in mind that TJStephens has only joined the forum today, if you're not happy with the title then, as a moderator, you could always change it (as per forum rule note A) to something that you think is more acceptable.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Excel Formula Help with Countif Function

    At the urging of one of our Experts, I have changed the title for you to be more explicit.

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Excel Formula Help with Countif Function

    For dates greater >= the specified criteria, one way would be with a frequency array formula like
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    If you need to use it with dates <= criteria, or between 2 dates then it will need a slight modification.

    Hope this helps.

  8. #8
    Registered User
    Join Date
    07-06-2019
    Location
    Drakes Branch, VA
    MS-Off Ver
    2016
    Posts
    5

    Re: Excel Formula Help with Countif Function

    As of this morning, they added more rows of data/information so that it is now not able to be counted by every third row. I am working on a solution in the "range Area" as opposed to static lines.
    with the above formula using "Index" it worked on some of the columns but not all as it came up with different values though the format was the same. The date format was also consistent for all the cells in all the columns. Not sure what would have caused a variance like that.
    Thank you for the advice Jason.b75. I appreciate it. I am adding a sample spreadsheet.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Excel Formula Help with Countif Function

    The way that I set the formula up, it will only work with the pattern that you show in your original post, the MOD() part of it is looking at every third row from row 2 (2,5,8,11 etc). If the pattern changes, then the formula needs to change too.

    Something that I overlooked in your screen capture was the entry below the date, if your real data is consistent with your example in that there will be a text / alphanumeric entry directly below the dates of interest, then that can be used as an identifier.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note that the first range starts and ends one row lower than the second range.
    The criteria of "?*" will ignore numbers (including proper dates) and blank / empty cells. There must be at least one non-numeric charcter in the cell for it to be counted.

  10. #10
    Registered User
    Join Date
    07-06-2019
    Location
    Drakes Branch, VA
    MS-Off Ver
    2016
    Posts
    5

    Re: Excel Formula Help with Countif Function

    Thank you fro your help. The formulas didn't work so I am in the process creating a round about way of doing it.
    Thanks again to all.
    This thread can be closed.

    "SOLVED"
    Last edited by TJStephens; 07-15-2019 at 12:54 PM. Reason: "SOLVED"

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Excel Formula Help with Countif Function

    Please try
    =COUNTIFS(C4:C98,">6/1/2019",C5:C99,"*")

+ 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 Function - Please help with the formula
    By dhasa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-05-2018, 03:47 AM
  2. Adding a COUNTIF function to an existing IF AND COUNTIF Formula...
    By Ourkid123uk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-24-2018, 10:09 AM
  3. [SOLVED] Adding an AND Function to a =IF(COUNTIF.... Formula
    By Ourkid123uk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-30-2017, 11:51 AM
  4. [SOLVED] Is it possible to use an IF, Sum and countif function in one formula?
    By kylele77 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2015, 07:58 PM
  5. Problems with using a formula inside a countif function
    By flex in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-11-2008, 04:14 AM
  6. formula Countif Function
    By northernstar197 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-04-2007, 08:03 AM
  7. [SOLVED] countif function: Help with formula
    By Crowraine in forum Excel General
    Replies: 3
    Last Post: 01-28-2005, 11:06 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