+ Reply to Thread
Results 1 to 4 of 4

Assistance With Embedded If Statement

  1. #1
    Registered User
    Join Date
    08-10-2017
    Location
    Berkshire, England
    MS-Off Ver
    Microsoft Office 2010
    Posts
    17

    Assistance With Embedded If Statement

    Hi,

    I need to embed some if statements to capture a couple of possibilities.

    My formula is used to track client queries and display the time taken to close said query, or if it's still open, how long it has been open for. It works fine, but i need to add in some additional query statuses

    Currently my formula checks the Status column. If its Open then it calculates the time between the Date Raised and today's date. If it's closed, it calculates the Date Raised and the Date Closed.

    I want to include additional Statuses for Column C such as:
    Pending Delivery Checks
    Working On
    On Hold

    The above three statuses need to work the same as if the query was set to Open

    My formula
    =IF(C2<>"",IF($C2="Open",INT((TODAY()-$F2)/7)&" weeks "&MOD(TODAY()-$F2,7)&" days",IF($K2<>"",INT(($K2-$F2)/7)&" weeks "&MOD($K2-$F2,7)&" days","N/A")),"")

    excel.png

    Is anyone able to help me embed the new statuses?

    Many thanks
    swood
    Last edited by swood91; 04-18-2018 at 11:50 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Assistance With Embedded If Statement

    this looks like it would work for you...
    =IF(C2<>"",IF(OR(C2="open",C2="pending delivery checks",C2="working on",C2="on hold"),INT((TODAY()-$F2)/7)&" weeks "&MOD(TODAY()-$F2,7)&" days",IF($K2<>"",INT(($K2-$F2)/7)&" weeks "&MOD($K2-$F2,7)&" days","N/A")),"")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    08-10-2017
    Location
    Berkshire, England
    MS-Off Ver
    Microsoft Office 2010
    Posts
    17

    Re: Assistance With Embedded If Statement

    Quote Originally Posted by Sambo kid View Post
    this looks like it would work for you...
    =IF(C2<>"",IF(OR(C2="open",C2="pending delivery checks",C2="working on",C2="on hold"),INT((TODAY()-$F2)/7)&" weeks "&MOD(TODAY()-$F2,7)&" days",IF($K2<>"",INT(($K2-$F2)/7)&" weeks "&MOD($K2-$F2,7)&" days","N/A")),"")
    You sir, are a saint. Thank you +rep

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Assistance With Embedded If Statement

    You sir, are a saint. Thank you +rep
    Ha Ha, I'll have to let my priest know.
    But on the more serious side, you are welcome and Thank You for the rep!

+ 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] If statement to select data - nested statement - assistance
    By petitesouris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-29-2015, 09:55 PM
  2. Embedded IF Than Statement Issue
    By Lousiwu in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-09-2013, 06:26 PM
  3. Excel 2007 : Embedded IF statement issue
    By chrfra in forum Excel General
    Replies: 2
    Last Post: 08-13-2010, 06:38 PM
  4. specifying cel contents range in embedded if Statement
    By fuston05 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-04-2010, 07:55 AM
  5. Greater than Less than in embedded IF statement
    By CMTench in forum Excel General
    Replies: 4
    Last Post: 03-19-2010, 09:50 AM
  6. [SOLVED] Need help with an embedded IF statement
    By Lari in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-17-2006, 12:10 PM
  7. [SOLVED] list embedded in an if statement
    By rk0909 in forum Excel General
    Replies: 0
    Last Post: 03-14-2006, 11:50 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