adrienne0914
Board Regular
- Joined
- Mar 22, 2018
- Messages
- 73
- Office Version
- 365
- Platform
- Windows
I always have trouble with nested IF AND formulas. Trying to figure out how to combine the two formulas below based on whether a number falls between these two sets of numbers:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]11[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]23[/TD]
[TD]25[/TD]
[/TR]
</tbody>[/TABLE]
=IF(AND(N$3>=$A$1,N$3<=$B$1),"PY last 3","") and =IF(AND(N$3>=$A$2,N$3<=$B$2),"last 3","")
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]11[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]23[/TD]
[TD]25[/TD]
[/TR]
</tbody>[/TABLE]
=IF(AND(N$3>=$A$1,N$3<=$B$1),"PY last 3","") and =IF(AND(N$3>=$A$2,N$3<=$B$2),"last 3","")