Need one field to average the sum of all fields [including zero values]
- September 27, 2023
- 1 reply
- 899 views
Hi, scripters!
I'm new to scripting, and after trying for several hours, I give up trying. I'm working on Acrobat Pro 2023.006.20320. What I need is simple, but for someone who knows so little, this is a huge challenge. In the attached test file, the last field under "Pieces" should sum all the fields with numbers [including those with zero value], ignore the blank one and then calculate the average [sample file should show 3.25]. On the same token, the small field under "Name" should count only the fields with a name on them, ignoring blank fields; I have a working script for it but ended up adding 74 fields manually [all have the same name except for the ending number], what would be the short version of the script?
Thanks for your patience and help! [Please don't add a link to read... I have probably already read it... and did not work].
