Below are the first few lines of a spreadsheet that I’ve created to help with payroll calculations for a friends yoga studios with one new and problematic addition. The spreadsheet has worked well to date but they’ve asked for a new feature that I’m struggling with. They’ve asked for a way to track new student signups, the new column “I”. Sounds simple enough, right?
Here’s my problem, there are three different payment structures:
Regular Classes, with attendance recorded in F, G, H, and now with new students in I.
Students pay per class, either $5 or $10, or Monthly. New students get their first class free.
Teachers are paid per class based on the total number of students, including new, per the following schedule:
4 or fewer = $25, 5 to 9 = $35, 10 to 18 = $40, 19 or more = $45
Community Classes, with attendance recorded in E and now with new students in I.
Students pay $5 per class. New students get their first class free.
Teachers are paid per class based on the total number of students, including new, per the following schedule:
60% of total students x $5
Workshops, with only total $ recorded in L.
Students pay a pre-determined fee that changes with each workshop.
Teachers are paid 60% of the total taken in.
There are generally only a few of these a month.
What I’m trying to do now is integrate the requested new column I to record new students. Column I serves double duty for new students in both Regular and Community classes. It is not used for workshops. I’m stuck on how to add the additional conditions to my pay calculation formulas in column K. Ideally, I would like to roll all three class types into one formula, including the workshops, but that is beyond my current capabilities. I think what would work would be a formal in K that says if there are numbers in E, calculate ((E2+I2)*5)*0.6, if there are numbers in F, G, or H, calculate IF(AND(J2>0,J2<=4),25,IF(AND(J2>=5,J2<=9),35,IF(AND(J2>=10,J2<=18),40,IF(AND(J2>=19,J2>18),45, if there’s a number in L, calculate L2*.6 .
This seems reasonable but the syntax is above and beyond my knowledge. If I can’t get this sorted, I’ll split the formulas up between class types, which is a workable, but less than ideal, solution. Another part of the spreadsheet calculates income from students, but that has been incorrect because new students don’t pay for their first class.
Any help would be much appreciated.
[TABLE="width: 100%"]
<tbody>[TR]
[TD] [/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Date[/TD]
[TD]#[/TD]
[TD]Class[/TD]
[TD]Teacher[/TD]
[TD]Comm[/TD]
[TD]Five[/TD]
[TD]Ten[/TD]
[TD]Monthly[/TD]
[TD]New[/TD]
[TD]Total[/TD]
[TD]Pay[/TD]
[TD]Workshop[/TD]
[TD]60%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]8/1/2015[/TD]
[TD]27[/TD]
[TD]Saturday 9:00-10:30am[/TD]
[TD]Brian[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8/1/2015[/TD]
[TD]28[/TD]
[TD]Saturday 10:45-12:30pm[/TD]
[TD]Brian[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]8/2/2015[/TD]
[TD]29[/TD]
[TD]Sunday 9:00-10:15am[/TD]
[TD]Jessica[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[/TR]
</tbody>[/TABLE]
The Formulas
J2: =SUM(F2:I2)
K2: =IF(AND(J2>0,J2<=4),25,IF(AND(J2>=5,J2<=9),35,IF(AND(J2>=10,J2<=18),40,IF(AND(J2>=19,J2>18),45,((E2+I2)*5)*0.6))))
M2: =L2*0.6
Here’s my problem, there are three different payment structures:
Regular Classes, with attendance recorded in F, G, H, and now with new students in I.
Students pay per class, either $5 or $10, or Monthly. New students get their first class free.
Teachers are paid per class based on the total number of students, including new, per the following schedule:
4 or fewer = $25, 5 to 9 = $35, 10 to 18 = $40, 19 or more = $45
Community Classes, with attendance recorded in E and now with new students in I.
Students pay $5 per class. New students get their first class free.
Teachers are paid per class based on the total number of students, including new, per the following schedule:
60% of total students x $5
Workshops, with only total $ recorded in L.
Students pay a pre-determined fee that changes with each workshop.
Teachers are paid 60% of the total taken in.
There are generally only a few of these a month.
What I’m trying to do now is integrate the requested new column I to record new students. Column I serves double duty for new students in both Regular and Community classes. It is not used for workshops. I’m stuck on how to add the additional conditions to my pay calculation formulas in column K. Ideally, I would like to roll all three class types into one formula, including the workshops, but that is beyond my current capabilities. I think what would work would be a formal in K that says if there are numbers in E, calculate ((E2+I2)*5)*0.6, if there are numbers in F, G, or H, calculate IF(AND(J2>0,J2<=4),25,IF(AND(J2>=5,J2<=9),35,IF(AND(J2>=10,J2<=18),40,IF(AND(J2>=19,J2>18),45, if there’s a number in L, calculate L2*.6 .
This seems reasonable but the syntax is above and beyond my knowledge. If I can’t get this sorted, I’ll split the formulas up between class types, which is a workable, but less than ideal, solution. Another part of the spreadsheet calculates income from students, but that has been incorrect because new students don’t pay for their first class.
Any help would be much appreciated.
[TABLE="width: 100%"]
<tbody>[TR]
[TD] [/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Date[/TD]
[TD]#[/TD]
[TD]Class[/TD]
[TD]Teacher[/TD]
[TD]Comm[/TD]
[TD]Five[/TD]
[TD]Ten[/TD]
[TD]Monthly[/TD]
[TD]New[/TD]
[TD]Total[/TD]
[TD]Pay[/TD]
[TD]Workshop[/TD]
[TD]60%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]8/1/2015[/TD]
[TD]27[/TD]
[TD]Saturday 9:00-10:30am[/TD]
[TD]Brian[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8/1/2015[/TD]
[TD]28[/TD]
[TD]Saturday 10:45-12:30pm[/TD]
[TD]Brian[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]8/2/2015[/TD]
[TD]29[/TD]
[TD]Sunday 9:00-10:15am[/TD]
[TD]Jessica[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[/TR]
</tbody>[/TABLE]
The Formulas
J2: =SUM(F2:I2)
K2: =IF(AND(J2>0,J2<=4),25,IF(AND(J2>=5,J2<=9),35,IF(AND(J2>=10,J2<=18),40,IF(AND(J2>=19,J2>18),45,((E2+I2)*5)*0.6))))
M2: =L2*0.6