I am using a nested IF formula with multiple conditions that looks at two cells (D7 and C7). See below:
=IF(AND(D7=100%,C7=100%),5,IF(AND((D7=100%),AND(100%>C7,C7>94%)),4,IF(AND(D7=100%,C7<95%),3,IF(AND(D7>89%,D7<100%),2,IF(D7<90%,1,0)))))
The table that is used to qualify the resulting value is as follows:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Resulting Value [/TD]
[TD] D7 [/TD]
[TD]C7[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]100%[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]100%[/TD]
[TD]95%-99%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]100%[/TD]
[TD]Less than 95%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]90%-99% [/TD]
[TD]Any Percentage[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Less than 90%[/TD]
[TD]Any Percentage[/TD]
[/TR]
</tbody>[/TABLE]
Issue
The formula is working and results in the desired value; with the exception of the nested IF(AND(D7=100%,C7<95%),3. When D7 is 100% AND C7 is less than 95%, the resulting value should be 3. However, for some reason, when C7 = 94%, the resulting value remains 4. And when C7 is anything equal to or less than 93%, then the formula works and I get a resulting value of 3.
Any assistance is much appreciated.
=IF(AND(D7=100%,C7=100%),5,IF(AND((D7=100%),AND(100%>C7,C7>94%)),4,IF(AND(D7=100%,C7<95%),3,IF(AND(D7>89%,D7<100%),2,IF(D7<90%,1,0)))))
The table that is used to qualify the resulting value is as follows:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Resulting Value [/TD]
[TD] D7 [/TD]
[TD]C7[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]100%[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]100%[/TD]
[TD]95%-99%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]100%[/TD]
[TD]Less than 95%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]90%-99% [/TD]
[TD]Any Percentage[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Less than 90%[/TD]
[TD]Any Percentage[/TD]
[/TR]
</tbody>[/TABLE]
Issue
The formula is working and results in the desired value; with the exception of the nested IF(AND(D7=100%,C7<95%),3. When D7 is 100% AND C7 is less than 95%, the resulting value should be 3. However, for some reason, when C7 = 94%, the resulting value remains 4. And when C7 is anything equal to or less than 93%, then the formula works and I get a resulting value of 3.
Any assistance is much appreciated.