+ Reply to Thread
Results 1 to 7 of 7

Help with formula for a DIFOT report.

  1. #1
    Registered User
    Join Date
    08-01-2021
    Location
    New Zealand
    MS-Off Ver
    Micosoft Office Professional Plus 2016
    Posts
    3

    Help with formula for a DIFOT report.

    Hi,
    I need to create a DIFOT report for my business.
    I have a selection of sales that have multiple sales on each sales Order.
    Some have dispatched on time and some have not.
    I can get a report that report by Sales line if the orders have left on time but I need it reported based upon the complete sales order.
    For example if all lines on the sales order have dispatched on time then they are a "Pass". If everything misses the request date they are "Fail". If the order has a mix on a Sales Order of Passes and Fails then the order would be deemed to be a "Fail".

    I think some form of formula that looks at the range of cells in "OrderNo" and if the OrderNo are the same then look at the values in Order Line DIFOT Status and produce a result based upon the 3 options above.

    Any help would be appreciatted.

    CustomerName OrderNo Required ProductDescription Order Date DESPATCH Date Order Line DIFOT Status
    CUSTOMER 1 112233 8/01/2021 Product 1 05-Jan-21 22-Jan-21 FAIL
    CUSTOMER 1 112233 8/01/2021 Product 10 05-Jan-21 22-Jan-21 FAIL
    CUSTOMER 1 112233 8/01/2021 Product 11 05-Jan-21 22-Jan-21 FAIL
    CUSTOMER 1 112233 8/01/2021 Product 2 05-Jan-21 22-Jan-21 FAIL
    CUSTOMER 1 112233 8/01/2021 Product 5 05-Jan-21 22-Jan-21 FAIL
    CUSTOMER 1 112233 8/01/2021 Product 6 05-Jan-21 22- Jan-21 FAIL
    CUSTOMER 1 112233 8/01/2021 Product 7 05-Jan-21 22 -Jan-21 FAIL
    CUSTOMER 1 112233 8/01/2021 Product 8 05-Jan-21 22-Jan-21 FAIL
    CUSTOMER 1 112233 8/01/2021 Product 9 05-Jan-21 22-Jan-21 FAIL
    Customer 2 445566 8/01/2021 Product 12 05-Jan-21 08-Jan-21 PASS
    Customer 2 445566 8/01/2021 Product 13 05-Jan-21 08-Jan-21 PASS
    Customer 2 445566 8/01/2021 Product 14 05-Jan-21 08-Jan-21 PASS
    Customer 2 445566 8/01/2021 Product 17 05-Jan-21 08-Jan-21 PASS
    Customer 2 445566 8/01/2021 Product 18 05-Jan-21 15-Jan-21 FAIL
    Customer 2 445566 8/01/2021 Product 19 05-Jan-21 08-Jan-21 PASS
    Customer 2 445566 8/01/2021 Product 21 05-Jan-21 15-Jan-21 FAIL
    Customer 2 445566 8/01/2021 Product 3 05-Jan-21 07-Jan-21 PASS
    Customer 3 778899 8/01/2021 Product 15 05-Jan-21 07-Jan-21 PASS
    Customer 3 778899 8/01/2021 Product 16 05-Jan-21 07-Jan-21 PASS
    Customer 3 778899 8/01/2021 Product 16 05-Jan-21 07-Jan-21 PASS
    Customer 3 778899 8/01/2021 Product 20 05-Jan-21 08-Jan-21 PASS
    Customer 3 778899 8/01/2021 Product 20 05-Jan-21 08-Jan-21 PASS
    Customer 3 778899 8/01/2021 Product 4 05-Jan-21 07-Jan-21 PASS
    Customer 3 778899 8/01/2021 Product 4 05-Jan-21 07-Jan-21 PASS
    Last edited by GTNeil1; 08-09-2021 at 09:44 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Help with formula for a DIFOT report.

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-01-2021
    Location
    New Zealand
    MS-Off Ver
    Micosoft Office Professional Plus 2016
    Posts
    3

    Re: Help with formula for a DIFOT report.

    Quote Originally Posted by AliGW View Post
    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Thanks, File attached.
    Attached Images Attached Images
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,554

    Re: Help with formula for a DIFOT report.

    One way to accomplish this would be to use J2:J26 as a helper column which could be moved and/or hidden for aesthetic purposes.
    Column K could then be populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    08-01-2021
    Location
    New Zealand
    MS-Off Ver
    Micosoft Office Professional Plus 2016
    Posts
    3

    Re: Help with formula for a DIFOT report.

    Fantastic. Thank you very much. This has solved my issue.
    Appreciate your help and expertise.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Help with formula for a DIFOT report.

    Just wonder if you should flag for ERROR when DESPATCH DATE < ORDER DATE, rather than DES QTY <> REQ QTY?

    The formula in cell J2 can be shortened to:=IF(I2="","",IF(I2<H2,"ERROR",IF(AND(F2=G2,I2<=C2),"PASS","FAIL")))

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,554

    Re: Help with formula for a DIFOT report.

    @GTNeil1, You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Calculate DIFOT - %On Time & % Late
    By Pitstock in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-02-2021, 06:49 PM
  2. Replies: 13
    Last Post: 05-09-2018, 03:38 PM
  3. [SOLVED] DIFOT Dashboard
    By rahul_ferns76 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 12-07-2017, 10:05 AM
  4. Replies: 1
    Last Post: 10-17-2016, 02:25 AM
  5. Agging report, openingbalance report,customer report vab code was not working
    By rana19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2015, 03:38 AM
  6. Replies: 4
    Last Post: 08-18-2015, 10:02 AM
  7. Form Email from Report, Only if Report summary sheet lists Acct for that Sales Rep
    By lukep10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2008, 01:38 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