Seeking Help with Adobe Forms Calculations - Specifically with rounding answers and omitting blanks
Hello,
I am preparing a form with calculations and need assistance on a couple of areas. I am very new to javascript calculations and am a bit confused by some of the abbreviations I'm seeing when trying to look through other discussions on this board. Maybe someone can help give me the exact code I should be using and the box I should enter it into?
1. In several locations, I have the user enter data in a specific column. The data cells are all formatted as numbers and the final cell at the bottom sums them up. That works great, but when I change the "sum" to "average" I get fractional numbers. I want this form to work only in wole numbers and need the "average" to not only display as a whole number (ie Format tab) but also to round up for subsequent calculations. How do I enter a "Custom Calculation Script" in the "Calculate" tab so that my "average" cell is a whole number?
2. User's are not required to enter data on every row. The "average" calculation in the "calculate " tab includes all cells that I've selected to be included in the calculation but does not omit empty cells from the calculation and the result is incorrect. How do I omit empty cells from the "average" calculation?
Thank you!!
