Trying to craft a formula to calculate the total per diem cost based on the meals allowed. This table gets populated with whether or not meals are allowed on a travel day depending on the departure and return dates of a trip, with 1 meaning that meal is allowed:
In the Total Per Diem column, I've tried variations on this:
=SUMIF(depDateMealsTbl.depBreakfast=1, 16, (depDateMealsTbl.depLunch=1, 19, (depDateMealsTbl.depDinner=1, 28)))
Looking for a result of 47 in the Total Per Diem column, since lunch (19) and dinner (28) are populated with a 1.
Please help, and thank you.