Expand my Community achievements bar.

SOLVED

Trying to get a calculation to take the data in one field and depending on what it is adding the information to a total field. there are multiple lines in this document.

Avatar

Level 1

I am trying to get a sumif statement to work in three different fields.  The data is located in two separate fields in the form.  Rate and Miles.  There are 31 lines on this form that can contain data in these fields that needs to be included in the appropriate field below:

  1. If “Rate” = S add to Standard (S) Miles Take
    information in corresponding line in field MILES and add to Line 34 TOTAL
    STANDARD MILES
  2. If “Rate” = F add to Fleet (F) Miles Take information
    in corresponding line in field MILES and add to Line  Line 35 TOTAL FLEEET MILES
  3. If “Rate” = R add to Rental( R) Miles Take information
    in corresponding line in field MILES and add to Line  Line 36 TOTAL RENTAL MILES
1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi Linda,

You might have to iterate across the fields and based on the 'Rate' field value trigger the if else condition in the loop itself. Something like Trying to convert a SUMIF formula from Excel to Acrobat DC form (javascript)

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hi Linda,

You might have to iterate across the fields and based on the 'Rate' field value trigger the if else condition in the loop itself. Something like Trying to convert a SUMIF formula from Excel to Acrobat DC form (javascript)