• 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.

How to get values from a table until certain date

farrusete

Member
Hi,

Im trying to sum values from a row until column named with the limit date (month in current year) manually entered in a cell. Maybe attached file is clearer than me... sorry

Thank you in advance,
 

Attachments

  • RevCost.xlsx
    9.8 KB · Views: 13
hmmmmm im trying to figure out if there is a way to use SUMIFS instead of SUM to get just values with certain conditions (edited excel attached).

Thanks again
 

Attachments

  • RevCost.xlsx
    11 KB · Views: 7
hmmmmm im trying to figure out if there is a way to use SUMIFS instead of SUM to get just values with certain conditions (edited excel attached).

Thanks again
There are multiple revenue and cost for a country, which revenue or cost to select? Is there a criteria for that?

Regards,
 
Hi Somendra,

The point is to sum all revenue lines. In the xls it would be to sum 3 revenue lines for USA until october but it has to be dynamic. If i enter month number 3 and select "Cost" and "EU" it should sum all cost llines from EU (2 lines) from january to march.

Thanks again
 
Hi Somendra,

The point is to sum all revenue lines. In the xls it would be to sum 3 revenue lines for USA until october but it has to be dynamic. If i enter month number 3 and select "Cost" and "EU" it should sum all cost llines from EU (2 lines) from january to march.

Thanks again

Here is one option:
=SUMPRODUCT(($B$7:$B$16=$C$3)*($C$7:$C$16=$C$1)*(MONTH($D$6:$O$6)<=$C$2)*$D$7:$O$16)

Regards,
 
Back
Top