Forum Discussion

cubd8's avatar
cubd8
Copper Contributor
Apr 08, 2021

Microsoft Excel - Updates to Calculation

Current formula is just adding up different numeric values, but I need to add some additional logic and can use some assistance.

=B2+F2+H2+I2+J2+M2+N2+P2

 

1) If Column K = "Set Date", I would like the above formula to be updated to output a '-'.

2) If Column BA = "Group" or "Order", I would like the above formula to be updated to output a '-'.

3) If Column G = "As-Is(No Changes)" AND Column BA = "Override", I would like the above formula to be updated to output '0.2'.

 

Column GColumn KColumn BACurrent CalculationUpdated Calculation
 Set Date 5.1-
  Group3.8-
  Order31.2-
As-Is(No Changes) Override31.40.2
ModifiedNormal 22.222.2
ModifiedSet DateOverride21.0-
New Group31.9-
ModifiedNormal 18.218.2

 

 

6 Replies

  • cubd8 

    =IF(OR(K2="Set Date",BA2="Group",BA2="Order"),"-",IF(AND(G2="As-Is(No Changes)",BA2="Override"),0.2,B2+F2+H2+I2+J2+M2+N2+P2))

    • cubd8's avatar
      cubd8
      Copper Contributor

      HansVogelaar 

       

      When using the updated formula, there is one update. 

      In cases where Column G = "As-Is(No Changes)" AND Column BA = "Override", regardless of Column K, or Column BA, I would like that to result in '0.2' before the other logic. 

       

      Can this be updated?

      • cubd8 

        Simply change the order of the conditions:

         

        =IF(AND(G2="As-Is(No Changes)",BA2="Override"),0.2,IF(OR(K2="Set Date",BA2="Group",BA2="Order"),"-",B2+F2+H2+I2+J2+M2+N2+P2))

Resources