Sangar_338
New Member
- Joined
- Oct 21, 2019
- Messages
- 6
- Office Version
- 365
- Platform
- Windows
I need to calculate quartiles on the assumption that 5 criteria are met but I am unable to determine which method is logically the most sound.
From what I can think of, there are various ways to do this: Using the IF function or using an IFS function.
(1) One way seems to be to nest IF functions, and there seem to be two ways to do this.
There seem two ways to do this.
(1.1) Example, calculating Quartile 1 with two criteria:
=QUARTILE(IF(($A$2:$A$100=E2),IF(($B$2:$B$100=F2),$C$2:$C$100),""),1)
Note: It works with 2 criteria.
(1.2) Example, calculating Quartile 1 with 5 criteria:
=QUARTILE(IF(AND($A$2:$A$100=E2,$B$2:$B$100=F2,$C$2:$C$100=G2,$D$2:$D$100=H2,$E$2:$E$100=I2),$C$2:$C$100),1)
Note: I can't get this one to work. Might the logic be flawed?
(2) The other way seems to be to use an IFS function, although I am as of yet unsure about what the logic/formula would look like.
From what I can think of, there are various ways to do this: Using the IF function or using an IFS function.
(1) One way seems to be to nest IF functions, and there seem to be two ways to do this.
There seem two ways to do this.
(1.1) Example, calculating Quartile 1 with two criteria:
=QUARTILE(IF(($A$2:$A$100=E2),IF(($B$2:$B$100=F2),$C$2:$C$100),""),1)
Note: It works with 2 criteria.
(1.2) Example, calculating Quartile 1 with 5 criteria:
=QUARTILE(IF(AND($A$2:$A$100=E2,$B$2:$B$100=F2,$C$2:$C$100=G2,$D$2:$D$100=H2,$E$2:$E$100=I2),$C$2:$C$100),1)
Note: I can't get this one to work. Might the logic be flawed?
(2) The other way seems to be to use an IFS function, although I am as of yet unsure about what the logic/formula would look like.