0
I have an excel spreadsheet with two tabs
Aba Cálculo Aba Valores
In the Calculation tab you have a field to date.
In the Values tab there are two columns one with the month and the year and the other the value to be added.
I would like when the date was entered, excel to find the date field and add the values up to the present date.
Table Values
Data Valores
jan/2017 120,00
fev/2017 100,00
mar/2017 80,00
abr/2017 120,00
mai/2017 100,00
jun/2017 80,00
...
out/2019 50,00
When to set the date 20/02/2017 The field should find the date and add up all values.
120+100+80+120+100+80+...+50
The date you mentioned in the example "20/20/2017" is not valid. Let me understand better, you want to get the date
20 de fevereiro de 2017
and sum up all values after that date?– Diego Martins
I’m sorry I typed wrong, is 20/02/2017. That’s even with this date, he finds the cell Feb/2017 in the spreadsheet values and sum from Feb/2017 to Oct/2019
– Alê Moraes
Suppose your dates are in the range X1:X20, your values in Y1:Y20 and your date in Z1. Use: =SOMASE(X1:X20;">="&Z1;Y1:Y20)
– anonimo
The friend @anonimo here is right, the function SOMASIS solves the problem, I will write the full answer to facilitate...
– Diego Martins
Thanks anonimo and @Diego Martins, have excel find the cell by date value, for example 20/02/2017, he should find the field Feb/2017
– Alê Moraes
It depends on the contents of your cell. Is a date simply formatted to be displayed as month/year or is it a string of characters? At my suggestion I considered it a date.
– anonimo
I tested the SOMASE function, perfect!!!
– Alê Moraes