Creating a Sum formula that is based on Month selection to Sum YTD

Copper Contributor

I am trying to create a sum formula where the user can select a month and the sum would add only those amounts from January to that selected month.  For example, if the user types in April, the sum would only add the info from January thru April, and exclude May thru December.  Any suggestions?  Thanks.

2 Replies

@Neal007 

=SUM(IF(INT(MONTH(A2:A15))=2,B2:B15))

Complete this formula with Ctrl + Shift + Enter because it is a matrix function.

Example in the inserted Excel file.

 

I would be happy to know if I could help.

 

Nikolino

I know I don't know anything (Socrates)

* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.

Nilolino, thank you for the suggestion. I will try it.