Background here is these are hotel cleaners, that can either clean rooms, or clean public areas, or do both on the same day.
F2 is the rate that they are paid for the type of work, E2 is the public areas they've cleaned, and G2 is the rooms they've cleaned. I need to find a way that I can work out their overall wage based on the work they have done.
=IF(E2<>0,(IF(G2=0,(E2*F2),0)),0)
=IF(G2<>0,(IF(E2=0,(G2*F2),0)),0)
=IF(G2<>0,(IF(E2<>0,((G2*F2)+(E2*F2)),0)),0)
I've written the 3 IF statements above to come up with a figure for if they have done one type only, or both. I'm pretty sure they're very cumbersome though. Is there a better function I could use, or a way to combine these 3 statements into one?
Thanks in advance!
Bookmarks