Skip to Content
author's profile photo Former Member
Former Member

Percent formula

Post Author: tmitchell

CA Forum: Formula

Trying to arrive at production percentage. Using estimated hrs per piece, parts produced, and actual hrs used

This is the first part of a long formula. Looking at individual employee entries one entry 2.63 actual hours, 55 parts produced, .500 est hours per piece

if({jcardman.jc_hrs_prod}60)60 /{jcardman.jc_parts_prod}= 0 then 0 else({jcardman.jc_hrs_prod}60)60

Can enter ({jcardman.jc_hrs_prod}60)60 and everything is fine, a number is returned

When trying to divide by {jcardman.jc_parts_prod} receive division by zero error,

added =0 then 0 else ({jcardman.jc_hrs_prod}60)60 in hope of getting 0 or answer to formula.

Still get division by zero error.

Any suggestions

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 08:54 PM

    Post Author: yangster

    CA Forum: Formula

    you are only getting the error simply because {jcardman.jc_parts_prod} = 0so your formula should beif {jcardman.jc_parts_prod} = 0 then 0 else {jcardman.jc_hrs_prod}60)60

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 10:15 PM

    Post Author: tmitchell

    CA Forum: Formula

    Worked liked a charm. Many THANKS

    Final formula looks like

    if {jcardman.jc_parts_prod} = 0 then 0 else ({jcardman.jc_hrs_prod}60)60/{jcardman.jc_parts_prod}/60/{operate.op_hpu}*100

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.