+ Reply to Thread
Results 1 to 5 of 5

If multiple function with different results.

  1. #1
    Registered User
    Join Date
    06-08-2016
    Location
    Birmingham, England
    MS-Off Ver
    2010
    Posts
    25

    If multiple function with different results.

    Hello,

    I am trying to make "if" formula which return different results based on value in one cell.

    This is the formula I have right now:

    =IF(A3="Open",NETWORKDAYS(G3,TODAY()),IF(A3="Closed",NETWORKDAYS(G3,H3),IF(A3="Escalated to LTA",NETWORKDAYS(G3,I3))))))
    It returns calculation based on A3 cell value if it is "Open","Closed" or "Escalated to LTA".
    However what I'm trying to achieve and cannot do is:

    -IF(A3="Open",NETWORKDAYS(G3,TODAY()) When G3 is empty to return value "Missing absence date".
    -IF(A3="Closed",NETWORKDAYS(G3,H3) When H3 is empty to return value "Missing RTW date".
    -IF(A3="Escalated to LTA",NETWORKDAYS(G3,I3) When I3 is empty to return value "Missing LTA date".

    How can I make this formula working in one cell. Please if anyone can advise.

    Best regards

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,832

    Re: If multiple function with different results.

    It becomes a bit messy, but try this:

    =IF(G3="","Missing absence date",IF(A3="Open",NETWORKDAYS(G3,TODAY()),IF(A3="Closed",IF(H3="","Missing RTW date",NETWORKDAYS(G3,H3)),IF(A3="Escalated to LTA",IF(I3="","Missing LTA date",NETWORKDAYS(G3,I3)),""))))

    Hope this helps.

    Pete

  3. #3
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: If multiple function with different results.

    Hello,

    Also another one for try,

    =IF(N(INDEX(G3:I3,MATCH(A3,{"Open","Closed","Escalated to LTA"},0))),NETWORKDAYS(G3,CHOOSE(MATCH(A3,{"Open","Closed","Escalated to LTA"},0),TODAY(),H3,I3)),"Missing "&A3&" date")
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  4. #4
    Registered User
    Join Date
    06-08-2016
    Location
    Birmingham, England
    MS-Off Ver
    2010
    Posts
    25

    Re: If multiple function with different results.

    This works. Thank you very much. I need to analyze it and see what wrong I was doing.

  5. #5
    Registered User
    Join Date
    06-08-2016
    Location
    Birmingham, England
    MS-Off Ver
    2010
    Posts
    25

    Re: If multiple function with different results.

    Haseeb A,

    If you could give a quick brief explanation of how does mechanism of this formula works It would be very grateful. It would really help out in the future

+ 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] how to output multiple results of a single function by running the function only once
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-14-2016, 07:24 PM
  2. [SOLVED] IF FUNCTION: Multiple Criteria, Multiple End Results
    By chantelle0106 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-07-2013, 04:19 AM
  3. [SOLVED] multiple results when using filter function
    By Morphyus C via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  4. multiple results when using filter function
    By Debra Dalgleish in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 05:05 PM
  5. [SOLVED] multiple results when using filter function
    By Morphyus C via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  6. [SOLVED] multiple results when using filter function
    By Morphyus C via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  7. multiple results when using filter function
    By Morphyus C via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM

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