• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

sumif criteria dates and year

Hello,
I have an excel sheet with datasheet tab and profit_loss tab.
In the datasheet i enter dates and rent collected
I am using SUMIFS function to extract data from datasheet tab to profit_loss tab using the dates in the datasheet tab.
If I change the year in profit_loss tab the amounts in the profit_loss should reflect 2019 data.
SUMIFS function should include the year criteria with dates.

=SUMIFS(revenue,revenuedate,">="&0+("1/"&D$4),revenuedate,"<="&EOMONTH(0+("1/"&D$4),0),propertyname,$B6)

revenue is a table
revenuedate is a named range column
propertyname is a named range column

Thanks for all your help. I have attached sample file
 

Attachments

  • RentalProperty.xlsx
    19.2 KB · Views: 6
Vietm,
Thanks for solving my issue. Your formula worked. I have a question in the formula. What does 1 mean before the ampersand


=SUMIFS(revenue,revenuedate,">="&1&D$4&$B$2,revenuedate,"<="&EOMONTH(1&D$4&$B$2,0),propertyname,$B6)
 
Last edited by a moderator:
p45cal
Thanks for your solution. Really appreciate taking your time to find a solution. Thanks again
 
Last edited by a moderator:
Back
Top