Welcome to the Smartsheet Forum Archives


The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.

Totals by Month using a date column

Olga N Barabash
edited 12/09/19 in Archived 2017 Posts

Is there a formula to count the # of entries for each month, using a system created date column? It seems like this doesn't exist unless you create a new column that says either 12 or December by looking at the date column..

Β 

thanks!

Tags:

Comments

  • J. Craig Williams
    J. Craig Williams ✭✭✭✭✭✭

    Olga,

    Β 

    Either you need to have a column to get the month's number and then do a COUNTIF or the formula is very complicated and long because you need to do determination in one formula.

    Β 

    If, however, you wanted 12 results (that is showing Jan's total and Feb's total and...)Β in a section at the top or bottom of your sheet, that's pretty simple, sort of.

    Β 

    Be aware, it is a LOT easier to put numbers into Text/Number columns than it is into put them into Date columns, even though it seems to "look better" in the same column.

    Β 

    For example:

    Β 

    This:

    Β 

    =COUNTIF(Finish31:Finish33, MONTH(@cell) = 1) + ""

    Β 

    will return the number of dates that fall in January where the formula is in a Date column.

    The (+ "") is added to force it to a text (which has the added disadvantage that you can't add it without putting it to a number using the VALUE function.

    Β 

    It also throughs an error if the dates are blank.

    And has to be modified if your data set grows.

    Β 

    If you want only Jan-2017 and nont Jan-2018, then you can make it more complicated too.

    Β 

    A trick to get the count back into the date column is to put your calculation somewhere else and hide that column.

    In the date column, just get the value

    =[MyHiddenColumn]1 + ""

    Β 

    You still need to turn it into text but the number is now available without worrying about using VALUE()

    Β 

    Hoe this sparks some ideas.

    Β 

    Craig

    Β 

This discussion has been closed.