+ Reply to Thread
Results 1 to 6 of 6

Adding to an IF Statement or change to IFS statement

  1. #1
    Registered User
    Join Date
    12-09-2014
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    80

    Adding to an IF Statement or change to IFS statement

    Hi,

    I have an IF formula to work out the numbers of days late (or early) an order is compared to the first date I confirmed back to the customer.
    I ran into a problem where an order has a confirmed date but no current in stock date. Numerous reasons why this happens but I can't figure out how to either nest my current IF statement or change it to an IFS statement to include a condition that if there is a First confirmed date (column D) but no Current in stock (column C) that it should return a blank.

    Any help on this is much appreciated. Sample book attached.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,776

    Re: Adding to an IF Statement or change to IFS statement

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,428

    Re: Adding to an IF Statement or change to IFS statement

    Try

    =IF(C2="","",IF(D2<>"",SUM(C2-D2),""))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Registered User
    Join Date
    12-09-2014
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    80

    Re: Adding to an IF Statement or change to IFS statement

    Both formulas worked perfectly, thank you !

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,776

    Re: Adding to an IF Statement or change to IFS statement

    Or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    but I prefer to check for the equals condition.

    Note that you don't need the SUM round the calculation. But you could have
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,776

    Re: Adding to an IF Statement or change to IFS statement

    You're welcome.

+ 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] Adding another IF statement
    By andy2707 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2019, 05:33 AM
  2. [SOLVED] Adding an IF statement into an existing IF OR statement
    By Kogen in forum Excel General
    Replies: 4
    Last Post: 09-11-2018, 11:57 AM
  3. [SOLVED] Adding OR statement into If statement
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2016, 08:31 AM
  4. Adding CountIf Statement within If/ElseIf Statement
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2014, 05:09 AM
  5. Change IF, THEN, ELSE statement to a count statement
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2011, 12:03 AM
  6. Adding an OR statement for a value
    By garopro in forum Excel General
    Replies: 4
    Last Post: 12-07-2011, 05:30 PM
  7. IF Statement + adding
    By burblecut in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2008, 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