EJohnson99202
New Member
- Joined
- Nov 7, 2017
- Messages
- 7
Hello all -
I have a statement that has be stumped. I am looking for a true condition based on multiple criteria, however, the formula needs to stop at the first result if true.
I have four columns. Column A is Number of Days. Column B, C and D and Number of Test Days. What I need is for Column A to check against Columns B - D (starting with D) and stopping if a value is filled. Here are examples:
[TABLE="width: 735"]
<colgroup><col span="5"><col></colgroup><tbody>[TR]
[TD]#Days[/TD]
[TD]TestB[/TD]
[TD]TestC[/TD]
[TD]TestD[/TD]
[TD]Result[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]35[/TD]
[TD]48[/TD]
[TD]48[/TD]
[TD]34[/TD]
[TD]TRUE[/TD]
[TD]Reports True because 35 is greater than Test D[/TD]
[/TR]
[TR]
[TD]35[/TD]
[TD]48[/TD]
[TD]34[/TD]
[TD]48[/TD]
[TD]FALSE[/TD]
[TD]Reports False because formula stops after verifying Test D[/TD]
[/TR]
[TR]
[TD]35[/TD]
[TD]48[/TD]
[TD]34[/TD]
[TD][/TD]
[TD]TRUE[/TD]
[TD]Reports True becauseTest D is blank and 35 is greater than Test B[/TD]
[/TR]
</tbody>[/TABLE]
This is the formula I am using:
=IF(OR(D2="",C2="",A2>B2),"1",IF(C2="","",IF(A2>C2,"1",IF(D2="","",IF(A2>D2,"1","")))))
Thank you in advance!!
I have a statement that has be stumped. I am looking for a true condition based on multiple criteria, however, the formula needs to stop at the first result if true.
I have four columns. Column A is Number of Days. Column B, C and D and Number of Test Days. What I need is for Column A to check against Columns B - D (starting with D) and stopping if a value is filled. Here are examples:
[TABLE="width: 735"]
<colgroup><col span="5"><col></colgroup><tbody>[TR]
[TD]#Days[/TD]
[TD]TestB[/TD]
[TD]TestC[/TD]
[TD]TestD[/TD]
[TD]Result[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]35[/TD]
[TD]48[/TD]
[TD]48[/TD]
[TD]34[/TD]
[TD]TRUE[/TD]
[TD]Reports True because 35 is greater than Test D[/TD]
[/TR]
[TR]
[TD]35[/TD]
[TD]48[/TD]
[TD]34[/TD]
[TD]48[/TD]
[TD]FALSE[/TD]
[TD]Reports False because formula stops after verifying Test D[/TD]
[/TR]
[TR]
[TD]35[/TD]
[TD]48[/TD]
[TD]34[/TD]
[TD][/TD]
[TD]TRUE[/TD]
[TD]Reports True becauseTest D is blank and 35 is greater than Test B[/TD]
[/TR]
</tbody>[/TABLE]
This is the formula I am using:
=IF(OR(D2="",C2="",A2>B2),"1",IF(C2="","",IF(A2>C2,"1",IF(D2="","",IF(A2>D2,"1","")))))
Thank you in advance!!