+ Reply to Thread
Results 1 to 5 of 5

If AND OR formula help

  1. #1
    Registered User
    Join Date
    09-23-2017
    Location
    Raleigh, NC, USA
    MS-Off Ver
    365
    Posts
    2

    If AND OR formula help

    Hello,
    I am looking for help with a formula to measure on time shipments. Variables would be:
    A1 = Date of Order
    B1 = Customer request Ship date
    C1 = Actual Ship date
    D1 = 10. This is the maximum number of days from Order to Ship that is committed to for all Orders unless Customer requests a longer Ship date.

    Challenge is how to measure the different scenarios. Examples:
    1) Order on June 1, Customer request date June 10, Ship date June 10. Perfect! Result of 0 (zero).
    2) Order on June 1, Customer request date June 8, Ship date June 10. Perfect! Result of 0 (zero).
    3) Order on June 1, Customer request date June 8, Ship date June 9. Perfect! Result of 1 (one).
    4) Order on June 1, Customer request date June 10, Ship date of June 11. No good. Result of -1.
    5) Order on June 1, Customer request date June 15, Ship date of June 15. Perfect!. Result of 0.
    Challenge is how to switch up the calculations when the customer request date is longer than the 10 day agreement.

    Any help would be appreciated.

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    484

    Re: If AND OR formula help

    Try

    =MAX(B1,A1+D1-1)-C1

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: If AND OR formula help

    I tried to interpret your request and came up with this
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-23-2017
    Location
    Raleigh, NC, USA
    MS-Off Ver
    365
    Posts
    2

    Re: If AND OR formula help

    Thanks to both of you for your help. Root, after removing the -1 from your formula it worked perfect. Thanks again!

  5. #5
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    484

    Re: If AND OR formula help

    Quote Originally Posted by sfitzpat View Post
    ... Root, after removing the -1 from your formula it worked perfect...
    Could you please post an example?

+ 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: 8
    Last Post: 09-22-2017, 05:41 AM
  2. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  3. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  4. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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