+ Reply to Thread
Results 1 to 5 of 5

Conditional calculation unexpectedly setting value to 0 -

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

    Conditional calculation unexpectedly setting value to 0 -

    See the attached workbook:

    In my sample workbook, Column BZ (PROD Associate Capacity Score) calculates the maximum score based on the formula. Columns CC (Primary Associate Capacity Score) AND CA (SEC Associate Capacity Score) split that score according to the weights that I have defined in the ‘PROD Workload Look Up Table -> Columns U, V and W. Depending on the Order Status (Column C), and when the CSC is not equal to the primary, the points are distributed between Column BY and BZ. Columns CC and CA split the points from Column BZ. This IS working as I intended

    Question: If I wanted the Primary (Column CC) to get 100% of the points (not what is currently being referred to in the look-up table), would I simply change this 1.00?

    The UA Associate Capacity Score (Column CB) is calculating correctly. The UA is defined when the CSC = Primary. When this is the case, Column CC (Primary Associate Capacity Score) should be set to 0. Here’s what I’m seeing as not working correctly.
    1) Column BY is populating with a 0 value. It should be populating depending on the Order Status to the look-up table. Right now, it seems all of the points are being sent to CB.
    2) Column CB seems to be populating the value of BY + BZ. In the first example, 75 points (Column BZ) + Column BY (should be 18.75, but is showing 0)….Instead 93.75 points are going to Column CB.

    I would like Column BY to calculate its expected value, but the UA Associate Capacity Score should output with the value it is currently populating with, and CA (SEC Associate Capacity Score) column should be split according to the weights that I have defined in the ‘PROD Workload Look Up Table-> Columns U, V and W.

    Any ideas on how to correct this?

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

    Re: Conditional calculation unexpectedly setting value to 0 -

    Attached sample.
    Attached Files Attached Files

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

    Re: Conditional calculation unexpectedly setting value to 0 -

    Question: If I wanted the Primary (Column CC) to get 100% of the points (not what is currently being referred to in the look-up table), would I simply change this 1.00?
    If I understand the question correctly column CC is already getting 100% because on the PROD Workload Look Up Table V2:V5 all have values of 1. It would seem to me that if you wanted column CC to get all the points you could shorten the formula to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I tested an got the same values as were currently displayed. I know that I am not addressing your entire post. I will try to get back to the 2 items that 'are not working correctly' later if someone else hasn't resolved those issues first.
    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.

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

    Re: Conditional calculation unexpectedly setting value to 0 -

    Quote Originally Posted by JeteMc View Post
    If I understand the question correctly column CC is already getting 100% because on the PROD Workload Look Up Table V2:V5 all have values of 1. It would seem to me that if you wanted column CC to get all the points you could shorten the formula to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I tested an got the same values as were currently displayed. I know that I am not addressing your entire post. I will try to get back to the 2 items that 'are not working correctly' later if someone else hasn't resolved those issues first.
    Let us know if you have any questions.
    Thank you. To address your first point, you did greatly simplify the formula and that does work.

    Let me know if you need any clarification on the 2nd point.

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

    Re: Conditional calculation unexpectedly setting value to 0 -

    The formula in BY2 yields zero because the of the segment IF([@CSC]=[@Primary],0, If that segment is removed then the result of BY2 is 18.75 as mentioned, also the values of BY7:BY17 are the same as prior to the change. Removing that segment leaves the following as the formula that would populate BY2:BY17
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions or if I have missed any of the points that you wanted to have addressed.

+ 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: 4
    Last Post: 10-26-2010, 11:10 AM
  2. Setting calculation mode
    By Abyshov in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2010, 03:39 PM
  3. Replies: 3
    Last Post: 01-23-2010, 11:42 AM
  4. Calculation Setting to Manual
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2008, 11:22 AM
  5. Setting a maximum limit on a calculation
    By gdp69 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2007, 12:02 PM
  6. [SOLVED] Calculation Setting in Excel
    By Stuart Bisset in forum Excel General
    Replies: 0
    Last Post: 06-17-2005, 05:05 AM
  7. [SOLVED] Auto Calculation Setting
    By Chance224 in forum Excel General
    Replies: 2
    Last Post: 06-06-2005, 12:05 PM
  8. Setting up - set of data used in 1 calculation
    By neal in forum Excel General
    Replies: 0
    Last Post: 01-27-2005, 07:54 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