+ Reply to Thread
Results 1 to 9 of 9

Ifand, ifor, or just if with networkdays??

  1. #1
    Registered User
    Join Date
    03-13-2023
    Location
    Mankato, MN, USA
    MS-Off Ver
    MS Office 2021
    Posts
    19

    Ifand, ifor, or just if with networkdays??

    Hello all,
    I have been asked to build a spreadsheet at work to track orders. I am able to build most of it but an stumped on a few formulas.

    Any help is appreciated!

    Scenario A: Need Age to calculate NETWORKDAYS if 3 conditions are met.
    1. If units are less than or equal to 99 for the first Age, greater than or equal to 100 for the second age.
    2. If no date in column B or D, result to be left blank
    3. If column B has date of "00/00/00" result in age of 0 days

    Scenario B: Need 3 formulas in this scenario:
    1. Calculate for each customer how many days behind an order is based on it's order date and it's goal date. If it's within goal date range, return "Current", otherwise result in number of days behind the order is.
    2. Calculate for each customer it's oldest date order based on units
    3. Calculate the overall oldest order date

    EXAMPLE 2.22.24.xlsx

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Ifand, ifor, or just if with networkdays??

    Your expected results would be useful

    the sample is 1-999 but in the text you say up too 99

    Are 2 and 3 effectively the same

    perhaps in e3
    =IF(B3="00/00/00",0,IF(B3*D3=0,"",IF(C3<100,NETWORKDAYS(A3,B3),"")))
    in g3
    =IF(B3="00/00/00",0,IF(B3*D3=0,"",IF(C3>99,NETWORKDAYS(A3,B3),"")))



    For the second question i assume orders disappear if fulfilled. It would be simpler to add another column
    b36
    =IF(C36=0,"",IF(C36>$B$20,"current",NETWORKDAYS(C36,$B$19)))
    c36
    =MINIFS($A$24:$A$32,$B$24:$B$32,A36,$C$24:$C$32,"<100")

    format with a custom format dd/mm/yyyy;"1/0/1900";;@

    c39
    =MINIFS(C36:C38,C36:C38,">0")

    and copy down accordingly
    Last edited by davsth; 02-23-2024 at 06:44 AM.

  3. #3
    Registered User
    Join Date
    03-13-2023
    Location
    Mankato, MN, USA
    MS-Off Ver
    MS Office 2021
    Posts
    19

    Re: Ifand, ifor, or just if with networkdays??

    You are the best!

    Thank you!

  4. #4
    Registered User
    Join Date
    03-13-2023
    Location
    Mankato, MN, USA
    MS-Off Ver
    MS Office 2021
    Posts
    19

    Re: Ifand, ifor, or just if with networkdays??

    Quick follow up on this. If there are no dates in the range, I would have assumed the following would work but it returns True or False instead. Any suggestions?

    Original Formula:
    =MINIFS($A$24:$A$32,$B$24:$B$32,A36,$C$24:$C$32,"<100")

    Tried but returns True or False instead of "Current":
    =IFERROR(MINIFS($A$24:$A$32,$B$24:$B$32,A36,$C$24:$C$32,"<100")=0,"Current")

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Ifand, ifor, or just if with networkdays??

    what do you actually want =MINIFS($A$24:$A$32,$B$24:$B$32,A36,$C$24:$C$32,"<100") acutally returns a 0 but is if formatted to be a blank if you used dd/mm/yyyy;"1/0/1900";;@ as the format

    the column B value is blank if there in no data meeting the criteria


    =MINIFS($A$24:$A$32,$B$24:$B$32,A36,$C$24:$C$32,"<100") returns a number 0 if it is blank or a number over 45000 if it is a date (all dates are the number of days since 1st Jan 1900

    so MINIFS($A$24:$A$32,$B$24:$B$32,A36,$C$24:$C$32,"<100")=0 will return a true if there are no values and a false if there is a date as it does not equal 0 at no time does an error occur so the current bit never gets triggered.

    what cell do you want current in?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-13-2023
    Location
    Mankato, MN, USA
    MS-Off Ver
    MS Office 2021
    Posts
    19

    Re: Ifand, ifor, or just if with networkdays??

    Sorry for the confusion.

    I need to know for each division if the order is under 999 units, the oldest order date.
    If there is no order for that division in the list, I need it to say "Current".
    Same scenario for orders over 1000 units

    Next, for the days behind, I need it to show "Current" if the order is within the 2 day turn time goal.
    If it is past that timeframe, I need the days behind the order is.

    Make sense?
    EXAMPLE 2.23.24.xlsx
    Last edited by dschwichtenberg; 02-23-2024 at 02:42 PM.

  7. #7
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Ifand, ifor, or just if with networkdays??

    How about this in C18 and copy down?

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    03-13-2023
    Location
    Mankato, MN, USA
    MS-Off Ver
    MS Office 2021
    Posts
    19

    Re: Ifand, ifor, or just if with networkdays??

    That works! Thank you!
    Deb

  9. #9
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Ifand, ifor, or just if with networkdays??

    You are 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. IFAND Formula?
    By dschwichtenberg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2024, 03:35 AM
  2. [SOLVED] IFOR formula Help Please
    By Curtis2145 in forum Excel General
    Replies: 3
    Last Post: 09-26-2019, 12:08 PM
  3. [SOLVED] Nested IF / IFS / IFOR function
    By jyadayada in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2017, 11:47 AM
  4. Weighted Averages ifor values without returning Error of #DIV/0
    By meecheeda in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-08-2014, 07:12 PM
  5. IfAND = X But If Than
    By rwmeis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2013, 11:02 AM
  6. [SOLVED] Using IFAND Statements
    By hettbarn in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-15-2012, 11:36 AM
  7. Q about: IfAnd or is it AndIf?
    By Michael Saffer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2006, 11:25 PM

Tags for this Thread

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