I'm trying to make a formula in Excel Drive were the amount of the invoice is divided by the amount of kilometres that a trip has made. In column H I have all the invoiced amount per trip. In column E I have all the kilometres for that trip. I want all the information in column H divided by the information in column E. I only want the kilometres added in the formula, when the invoiced amount is filled. I made the following formula, but due to my lack of knowledge it doesn't work.
=SUMIFS(Sheet1!$H:$H;Sheet1!$B:$B;2021)/SUMIFS(Sheet!$E:$E;Sheet!$B:$B;2021;Sheet!$H:$H;<>0)
Can anyone help me out or am I asking the impossible?
