+ Reply to Thread
Results 1 to 5 of 5

Creating a function which handles multiple true criteria

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    Narnia
    MS-Off Ver
    2013
    Posts
    13

    Talking Creating a function which handles multiple true criteria

    Hello everyone,

    I am wondering if someone may be able to offer a kind spot of advice. I can't seem to find any information relating to the query I am after. In essence I would like to achieve the formula as follows:

    TRUE =IF(CELLBLANK then Calculate C1-C2 unless C3 is greater than C2 then calculate C1-C3
    FALSE = C1-C4

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If anyone can help tidy this up and show a solution it would be great. The cells are dates. Therefore this should provide me the duration between the two. Thanks for your time.

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Creating a function which handles multiple true criteria

    try the following formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    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,926

    Re: Creating a function which handles multiple true criteria

    Maybe this...
    =C1-IF(C4="",max(C2,C3),C4)
    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

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Creating a function which handles multiple true criteria

    Love this formula. Much simpler to follow.
    Applause!

  5. #5
    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,926

    Re: Creating a function which handles multiple true criteria

    Thanks jewelsharma, really appreciate the feedback

+ 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. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  2. [SOLVED] TRUE/FALSE Based on multiple criteria
    By bond002 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-11-2014, 06:46 AM
  3. [SOLVED] Multiple TRUE,FALSE criteria
    By quibilty in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-25-2013, 11:47 PM
  4. Sum if multiple Criteria is true
    By 00Able in forum Excel General
    Replies: 8
    Last Post: 02-20-2011, 09:18 AM
  5. SUMIF where multiple criteria are true?
    By rick-n in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-29-2007, 05:34 PM
  6. Pie chart handles in the pivot table don't function
    By hazel in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-16-2006, 07:25 AM
  7. creating a function with multiple criteria
    By e_bone75 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2005, 04:08 PM

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