+ Reply to Thread
Results 1 to 2 of 2

Updating an Existing Formula (Removing Logic)

  1. #1
    Forum Contributor
    Join Date
    03-19-2016
    Location
    Chicago, IL
    MS-Off Ver
    Office 2016 Professional
    Posts
    388

    Updating an Existing Formula (Removing Logic)

    Hello, see the attached formulas (3 that are doing similar calculations). Currently, the formula is set to output a '1' if the OLB_END < WORKDAY is GT 2 days in the past.

    I would like to remove that logic and calculate the rest of the formula without that in the code. It is bolded below in each of the formula's.

    =IF(AND([@[Setup Description]]="As-Is (No Changes)",[@[Is Automated]]=1,[@[Yearly OSL]]=1),10,(MIN(IFERROR(VLOOKUP([@Group],'Workload Look Up Table'!$Q:$R,2,FALSE),IF(AND(NOT([@[OLB End]]=""),[@[OLB End]] < WORKDAY(TODAY(),-2)),1,IF(NOT(LEFT([@[Promotion Type]],8)="Analysis"),[@[Order Status Adjustment]]*([@[Complexity Adjustment]]*[@[Setup Description Adjustment]]*[@[Platform Adjustment]]*[@[Order Type Adjustment]]),([@[Order Status Adjustment]]*([@[Complexity Adjustment]]*[@[Setup Description Adjustment]]*[@[Platform Adjustment]]*[@[Order Type Adjustment]])+([@[Order Status Adjustment]]*([@[Complexity Adjustment]]*[@[Setup Description Adjustment]]*[@[Platform Adjustment]]*[@[Order Type Adjustment]])*([@[Jobs Per Order:]]-1)*0.1))))),300)))

    =IF(AND([@[Setup Description]]="As-Is (No Changes)",[@[Is Automated]]=1,[@[Yearly OSL]]=1),10,(MIN(IFERROR(VLOOKUP([@[Order Number]],'PROD Workload Look Up Table'!R:S,2,FALSE),IF(AND(NOT([@[OLB End]]=""),[@[OLB End]] < WORKDAY(TODAY(),-2)),1,IF(NOT(LEFT([@[Promotion Type]],8)="Analysis"),([@[PROD Order Status Adjustment]]*([@[Platform Adjustment]]*[@[Order Type Adjustment]]*[@[Complexity Adjustment]]*[@[Setup Description Adjustment]])),(([@[PROD Order Status Adjustment]]*([@[Platform Adjustment]]*[@[Order Type Adjustment]]*[@[Complexity Adjustment]]*[@[Setup Description Adjustment]]))+(([@[PROD Order Status Adjustment]]*([@[Platform Adjustment]]*[@[Order Type Adjustment]]*[@[Complexity Adjustment]]*[@[Setup Description Adjustment]]))*([@[Jobs Per Order:]]-1)*0.1))))),300)))

    =IF(AND([@[Setup Description]]="As-Is (No Changes)",[@[Is Automated]]=1,[@[Yearly OSL]]=1),10,(MIN(IF([@CSC]<>[@Primary],0,IF(AND(NOT([@[OLB End]]:[@[OLB End]]=""),[@[OLB End]]:[@[OLB End]] < WORKDAY(TODAY(),-2)),1,IF(NOT(LEFT([@[Promotion Type]],8)="Analysis"),([@[PROD Order Status Adjustment]]*([@[Platform Adjustment]]*[@[Order Type Adjustment]]*[@[Complexity Adjustment]]*[@[Setup Description Adjustment]]))+(IF(AND(NOT([@[OLB End]]=""),[@[OLB End]] < WORKDAY(TODAY(),-2)),1,[@[Order Status Adjustment]]*([@[Complexity Adjustment]]*[@[Setup Description Adjustment]]*[@[Order Type Adjustment]]))),(([@[PROD Order Status Adjustment]]*([@[Platform Adjustment]]*[@[Order Type Adjustment]]*[@[Complexity Adjustment]]*[@[Setup Description Adjustment]])))+(([@[PROD Order Status Adjustment]]*([@[Platform Adjustment]]*[@[Order Type Adjustment]]*[@[Complexity Adjustment]]*[@[Setup Description Adjustment]]))*([@[Job Count:]]-1)*0.1)+(IF(AND(NOT([@[OLB End]]=""),[@[OLB End]] < WORKDAY(TODAY(),-2)),1,([@[Order Status Adjustment]]*([@[Complexity Adjustment]]*[@[Setup Description Adjustment]]*[@[Order Type Adjustment]])))+([@[Order Status Adjustment]]*([@[Complexity Adjustment]]*[@[Setup Description Adjustment]]*[@[Order Type Adjustment]]))*([@[Jobs Per Order:]]-1)*0.1)))),300)))


    Let me know if you would like to see some examples.

    Currently, if the OLB_END date = April 26, 2018, the formula above would result in a value of '1'.
    Last edited by bdav1216; 05-01-2018 at 06:44 PM.

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

    Re: Updating an Existing Formula (Removing Logic)

    I can't be sure that this works without being able to test, and because of the structured references it is hard to test without a sample spreadsheet.
    That said removing the bolded IF statement from the first formula would appear to leave (at least from the standpoint of matching open and closed parentheses):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Similarly the second:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The Third:
    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.

+ 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. Updating an Existing Formula (Override Logic)
    By bdav1216 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-02-2018, 11:43 AM
  2. Help with existing formula, but removing {} condition
    By kcgojnur in forum Excel General
    Replies: 3
    Last Post: 09-30-2017, 01:16 AM
  3. Deeper if then logic for existing fomula?
    By jriker1 in forum Excel General
    Replies: 4
    Last Post: 07-17-2017, 01:53 PM
  4. DAYS vs. NETWORKDAYS (Updating an existing formula)
    By bdav1216 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2017, 12:37 PM
  5. Calculation - Adding IF statement to existing logic
    By bdav1216 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-27-2016, 10:37 AM
  6. updating old formula (removing array)
    By buster350 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-07-2015, 10:59 AM
  7. Replies: 1
    Last Post: 08-15-2009, 05:52 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