Share via

Nested IF( ) function formula help needed

Anonymous
2022-05-29T16:35:22+00:00

hi have been trying this on my design but the final result hasnt been as i expected

=IF( attenDance>minDays,

   SUM( verifiedOutPut - excessOutPut) \* standardPrice + 

         SUM( excessOutPut \* pricePerExcessClaim) + maximum\_TNT, 

            IF( attenDance<maxDays, 

         SUM( verifiedOutPut-excessOutPut)\*standardPrice+ 

  SUM( excessOutPut\*standardPrice)+minimum\_TNT/minDays\*attenDance, 

IF( attenDance<=0,0)))

per my evaluation the last part isnt given me the 0 i expect when the atttendance cell = 0.

thank you for reading

screen sample is below:

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

10 answers

Sort by: Most helpful
  1. Anonymous
    2022-06-03T00:15:30+00:00

    Hi there

    Glad to help you.

    If the answer helped you.

    Please, consider marking this thread as answered.

    It would help others in the community with similar questions or problems.

    Thank you in advance

    Regards

    Jeovany

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-06-02T22:18:17+00:00

    BTW

    You may find a copy of your workbook in this link with the updated formula and a different macro to submit the values. (I hope you don't mind)

    https://we.tl/t-wC20nZKIjC

    hi Jeovany thank you so much for help, well appreciated.

    Was this answer helpful?

    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Anonymous
    2022-05-29T18:29:25+00:00

    BTW

    You may find a copy of your workbook in this link with the updated formula and a different macro to submit the values. (I hope you don't mind)

    https://we.tl/t-wC20nZKIjC

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2022-05-29T18:16:56+00:00

    Hi JackAmin

    It is recommended to first evaluate the 0 (zeroes) and "Blank " output when dealing with IF statement/logical formulas.

    Please, try the formula below.

    =IF(attenDance<=0,0,IF(attenDance>minDays,

    SUM( verifiedOutPut - excessOutPut) * standardPrice +

    SUM( excessOutPut * pricePerExcessClaim) + maximum_TNT,

    IF(attenDance<maxDays,

    SUM(verifiedOutPut-excessOutPut)*standardPrice+

    SUM(excessOutPut*standardPrice)+minimum_TNT/minDays*attenDance,0

    )))

    Please, also notice that cell M10 is Custom formatted to show a dash " - " when the result is 0.

    I hope this helps you and gives a solution to your problem

    Do let me know if you need more help

    Regards

    Jeovany

    Thank you Jeovany.

    its worked perfectly. thank u always

    Was this answer helpful?

    0 comments No comments