Please can you help:
I have an Excel query.
I use IF AND and NOT.
When I write 3 AND statements it works.
When I write 1 AND and 2 NOT statements it works too. When I write 2 AND and 1 NOT this does not work - This is the last 4 lines of the IF statement below.
How do you create an AND and NOT statement in Excel: I want to show two AND and 1 NOT. I have done this current by: AND( statement 1 and statement 2, NOT( statement 3)) - but this does not work.
This image is not the calculation, it just shows I need to write 8 lots of IF statements.
IF((AND(Overview!$D$8="NO ASSISTANT",Overview!$D$5="ALL",Overview!$D$6="ALL")),SUMIFS(x),
IF((AND(Overview!$D$8="ASSISTANT",NOT(AND(Overview!$D$5="ALL",Overview!$D$6="ALL")))),SUMIFS(x),
IF((AND(Overview!$D$8="NO ASSISTANT",NOT(AND(Overview!$D$5="ALL",Overview!$D$6="ALL")))),SUMIFS(x),
IF((AND(Overview!$D$8="ASSISTANT",Overview!$D$5="ALL",NOT(AND(Overview!$D$6="ALL")))),SUMIFS(x),
IF((AND(Overview!$D$8="NO ASSISTANT",Overview!$D$5="ALL",NOT(AND(Overview!$D$6="ALL")))),SUMIFS(x),
IF((AND(Overview!$D$8="ASSISTANT",Overview!$D$6="ALL",NOT(AND(Overview!$D$5="ALL")))),SUMIFS(x),
IF((AND(Overview!$D$8="NO ASSISTANT",Overview!$D$6="ALL",NOT(AND(Overview!$D$5="ALL")))),SUMIFS(x)))))))))
Aucun commentaire:
Enregistrer un commentaire