# Formulas with Multiple Conditions

1. ## Formulas with Multiple Conditions

Hi

This is my first post on the forum, i'm really stuck with a formula and i hate give in. We are currently using this one =IF(ISBLANK(R9),TODAY()-B9,R9-B9) to stop a clock countdown if a date is entered in R5, (B9 is the date of referral). What i would also like to do is apply an additional condition that if an *** date is added in Cell J5, for example, the clock also stops as they would not be allocated someone there is no worry of having conflicting information in cells. I have looked at array formulas but can't quite get it to do what i would like it to do.

Any help would be greatly appreciated.

2. ## Re: Formulas with Multiple Conditions

Try this xween82x:

=IF(AND(ISBLANK(R9),ISBLANK(J5)),TODAY()-B9,R9-B9)

3. ## Re: Formulas with Multiple Conditions

Thank u I'll give it a go at work tomorrow and let u know if it works

4. ## Re: Formulas with Multiple Conditions

Originally Posted by jeversf
Try this xween82x:

=IF(AND(ISBLANK(R9),ISBLANK(J5)),TODAY()-B9,R9-B9)
This kind of works, but if there's no date in R9, but a date in J9 it comes back with a figure of -41368 rather than the amount of days.

Any suggestions?

5. ## Re: Formulas with Multiple Conditions

IF&OR.xlsx

Try changing the cell format to General or Number instead of Date. I've attached a sample file for reference.

6. ## Re: Formulas with Multiple Conditions

Hi

I already had the cell format as General - i've attached the example. Basically if a date is added in R2 then the clock stops from the referral date, but equally if a date is added in the date of death the clock needs to stop as it would not need to be allocated. Hope this makes sense

7. ## Re: Formulas with Multiple Conditions

Maybe something like this...
=IF(OR(J2<>"",R2<>""),TODAY()-B2,R2-B2)

8. ## Re: Formulas with Multiple Conditions

Hey Ween,
Let me get this straight. It looks like you have three conditions
- If the Allocated Date is empty and the DoD is empty, you want to see the numbers of days between the Date of Referral and Today?
- If the DoD is filled in, you want to see the nr. of days between Referral Date and DoD?
- Finally, if the Allocated Date is filled in, you want to see the nr. of days between Referral Date and Allocated Date?

If that's so, than this should be your formula: =IF(ISBLANK(B2),"",IF(AND(ISBLANK(R2),ISBLANK(J2)),TODAY()-B2,IF(ISBLANK(R2),J2-B2,R2-B2)))

9. ## Re: Formulas with Multiple Conditions

Ok, I've tried a different approach. How does this look?

Example SS for Forum.xlsx

10. ## Re: Formulas with Multiple Conditions

Either of these 2 approaches work, now i just have to decide which one to go with... thank you to both of you

There are currently 1 users browsing this thread. (0 members and 1 guests)