I have built a table in SQL that takes into account parameters defined by the user in Excel cells (in the SELECTION sheet).
I have completed this table, defined in TABLE_SOURCE_1 sheet, with columns having Excel formula.
The problem is that in TOTAL_TAT column I have entered : =SUMIF(B2:B7,[@[CONTACT_NUMBER]],K2:K7).
For certain parameters, the table is empty and the formula becomes : =SUMIF(B2:B2,[@[CONTACT_NUMBER]],K2:K2).
This is a problem because when I modify the parameters so that the table contains values, this formula remains : =SUMIF(B2:B2,[@[CONTACT_NUMBER]],K2:K2) and not what I want : =SUMIF(B2:B7,[@[CONTACT_NUMBER]],K2:K7).
Solved by K. H. in 20 mins