+ Reply to Thread
Results 1 to 10 of 10

Formulas with Multiple Conditions

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    8

    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. #2
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Re: Formulas with Multiple Conditions

    Try this xween82x:

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

    jeversf

  3. #3
    Registered User
    Join Date
    08-08-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Formulas with Multiple Conditions

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

  4. #4
    Registered User
    Join Date
    08-08-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Formulas with Multiple Conditions

    Quote Originally Posted by jeversf View Post
    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. #5
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    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. #6
    Registered User
    Join Date
    08-08-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    8

    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
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Formulas with Multiple Conditions

    Maybe something like this...
    =IF(OR(J2<>"",R2<>""),TODAY()-B2,R2-B2)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    08-13-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    1

    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. #9
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Re: Formulas with Multiple Conditions

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

    Example SS for Forum.xlsx

  10. #10
    Registered User
    Join Date
    08-08-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    8

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  2. Replies: 5
    Last Post: 05-05-2008, 02:22 PM
  3. Need Formulas for counting multiple conditions
    By OrdOff in forum Excel Formulas & Functions
    Replies: 37
    Last Post: 09-06-2005, 12:05 PM
  4. Replies: 1
    Last Post: 08-25-2005, 03:43 AM
  5. [SOLVED] How to multiple conditions to validate more than 2 conditions to .
    By Bhuvana Govind in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2005, 04:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1