Forum Discussion

Yanou91's avatar
Yanou91
Copper Contributor
Oct 13, 2022
Solved

To use SUMPRODUCT with several "OR" and several "AND"

Good evening,   I have an accounting data base with a certain number of column and I would like to use SUMPRODUCT to realise the add of values according criteras on others columns.   Here is the ...
  • mtarler's avatar
    Oct 13, 2022

    Yanou91 These 2 items are wrong:

    'Extraction SAP'!$M$3:$M$1000000="=G/*" >>> column of the tall analytic code (to do the sum if code starts with G/)
    'Extraction SAP'!$M$3:$M$1000000="<>*GENERIQU*" >>> column of the tall analytic code (to do the sum if code does not contain GENERIQU)

    try these instead:

    LEFT('Extraction SAP'!$M$3:$M$1000000,2)="G/" 
    NOT(ISNUMBER(SEARCH("GENERIQU",'Extraction SAP'!$M$3:$M$1000000)))