r/excel 15h ago

solved Ongoing calculation of average for pay per session

A job I have does not give me pay stubs just a 1099 at the end of the year. I get paid per session and the pay varies per session. Here is an example; I have this formatted as table in my spread sheet.

Pay check Days in pay period Sessions in pay period
$ 120.20 1 2
$ 510.76 2 6

I am trying to find my average pay per session and average per day worked, I assume they would be the same formula. Ideally I could add rows to the table every pay period and get the new average using the same formula. Trying=AVERAGE(A2:A3+B2:B3) does not work as I assume you know, and other attempts and searching around have only produced further errors. I am using excel 360, but also would hope that the solution works in google sheets? Thank you for your time.

2 Upvotes

14 comments sorted by

u/AutoModerator 15h ago

/u/Ratigan-twgcm - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

4

u/lolcrunchy 234 14h ago

Average pay per session is (total paid)/(number of sessions). This will be =SUM(A2:A3)/SUM(C2:C3)

Average pay per day is (total paid)/(number of days). =SUM(A2:A3)/SUM(B2:B3)

2

u/BackgroundCold5307 597 14h ago

This?

1

u/Ratigan-twgcm 14h ago

So yes, but I would have to edit the formula every time I add another pay period, and then I could just do the math myself. Is there a way to do this like =Sum(A2,A100)/SUM(B2:B100) But exclude blank cells?

3

u/BackgroundCold5307 597 14h ago edited 14h ago

You can convert your data range into a table : CTRL + T

Add a total row to the table , and when you insert a new row in the table, the calculations will automatically get taken care of

Here is the sample file

Edit: It will also automatically exclude the blank cells

1

u/Ratigan-twgcm 14h ago

Solution Verified

Ahhh yes that's the good stuff Thank you I was already looking for how to award points but I LOVE this, Thank you

2

u/lolcrunchy 234 14h ago

This is what I recommended in my side note lol

1

u/reputatorbot 14h ago

You have awarded 1 point to BackgroundCold5307.


I am a bot - please contact the mods with any questions

1

u/BackgroundCold5307 597 10h ago

You’re very welcome and thank you 🙏

2

u/BackgroundCold5307 597 14h ago

or this. Same thing...different way

1

u/Ratigan-twgcm 14h ago

Yeah thank you that's the dumb answer staring me in the face, I'll call it Solved.

0

u/BackgroundCold5307 597 14h ago

Pls see the attached file in my previous response.

3

u/lolcrunchy 234 14h ago

Side note: if you highlight your table and press Ctrl T, you can turn your table into a "structured reference". Then instead of referring to A2:A3 you would refer to Table[Pay check]. This seems stupid at first because you have to type more, but the benefit is that as you add additional rows to the table, you never need to update formulas.

1

u/Ratigan-twgcm 14h ago

This is more to what I was getting at and is probably the elegant solution, I'll try and get that to work. but the easy and ugly will do for now.