I am trying to create a sheets doc for my job to track sales between organizers. Basically, I am trying to find a way to split the number of sales per event between the workers who attended. I had it all figured out but only if the total number of sales ofr the event is divisible by the number of workers. I was able to create some functions to count the number of workers at the event and then split the total number by that, and then apply that number to each worker who attended the event...you can see my progress below.
I need to know how to apply the remainder in the situations where I am given a decimal. I thought about rounding and applying that number which will work if I can figure out a function to count the remaining sales left and then apply that to the lead for the event.
Example, the first event, 4 workers attended and one sale was made. How do I create a function that recognizes the decimal and sorts this out for me?
PLEASE HELP.
