SUMIFS issue with an "OR"
Solved
makks
Posted messages
18
Status
Membre
-
makks Posted messages 18 Status Membre -
makks Posted messages 18 Status Membre -
Hello,
I am reaching out for your help because I have a small problem with my formula below:
=SUMIFS(Data!P:P, Data!K:K, "", Data!D:D, 1, Data!L:L, OR("V", "E"))
Let me explain, I would like to sum up column P from the "Data" sheet when first, column K is empty, then when column D equals 1, so far so good.
But I would like my third criterion to take an "OR," where my column L contains either V or E.
If someone can help me, I would be very grateful, and I apologize if the question has already been asked.
Best regards.
I am reaching out for your help because I have a small problem with my formula below:
=SUMIFS(Data!P:P, Data!K:K, "", Data!D:D, 1, Data!L:L, OR("V", "E"))
Let me explain, I would like to sum up column P from the "Data" sheet when first, column K is empty, then when column D equals 1, so far so good.
But I would like my third criterion to take an "OR," where my column L contains either V or E.
If someone can help me, I would be very grateful, and I apologize if the question has already been asked.
Best regards.
Thank you DjiDji, I wasn't familiar with SOMMEPROD ;)
=SUMPRODUCT((Data!K:K="")*(Data!D:D=1)*(Data!C:C=2010)*((Data!L:L="V")+(Data!L:L="E")))
But I just need to multiply it by the amount which is in column P (Data!P:P), it shows 8 instead of 10 (2 cases out of 8 are at 2 instead of 1).
PS: I added the year 2010, don’t pay attention to it, it doesn’t change anything.