Basically I have a spreadsheet to show what has been paid by each member of a household on monthly bills, and I want it to show how much is owed to each other tenant, so that each has paid an equal share.
e.g. if tenant 1 pays $100, 2 pays $200 and 3 pays $300, tenant 1 would owe tenant 3 $100.
Any help will be greatly appreciated
Edit: I've since made this question a lot clearer. I'm sorry if it was a little sloppy before :(
Edit: I have tried (((C:2 + C:3 + C:4) / 3) - C:4) which shows how much more tenant 3 has to pay, but now I need to split that between tenants 1 and 2 so that they have each paid $132.67
I changed your layout slightly so I can copy the formula down.
I am using Excel but it Should work in Google Sheets:
=IF(SIGN(VLOOKUP(A7,A:C,3,FALSE)-AVERAGE($C$2:$C$4))=-1,MIN(MAX(VLOOKUP(B7,A:C,3,FALSE)-AVERAGE($C$2:$C$4),0),AVERAGE($C$2:$C$4)-VLOOKUP(A7,A:C,3,FALSE)),0)
Related
I have little experience with payment gateways, and am trying to figure out how to synthesize the type of subscription billing that I am looking for: the monthly price gets rebalanced once a year, based on another attribute (a number that can get as high as seven or eight digits).
So, for example, the monthly subscription price as of January 1st will be a % of a user's credit card debt balance as of Dec 15th in the prior year. But the debt balance can get very high / does not have a cap.
I looked at the Stripe documentation to figure out of there's a way to do this. The only thing I could come up with is to use unit_amount in metered pricing and tying this to the credit balance. In other words, I would grab the debt balance number and use it as the unit_amount, and then apply a %. But then I need to also forward bill, so I trick the logic into shifting by a month, which seem impractical.
Alternatively, I am not sure I could do this with per seat pricing (e.g. $1 in debt = 1 seat). But I assume there's a max to the number of seats (i.e. someone cannot have, say 1m seats). I just couldn't determine this from the documentation...
That's what I was thinking, anyway. Perhaps there's a better way?
You've got a couple different options here:
At the start of the year you update the Subscription to a new price based on the calculations of the customer's credit card debt balance by specifying items[0].price_data. Setting items[0].price_data (see the api ref) allows you to create an "in-line price" that as part of the updating the Subscription, so you don't have to create one separately through a separate API request. If you haven't seen Stripe's docs on how to update the price of a Subscription you can see an example here, and you'll likely want to read about proration_behavior as well.
You have a single Price where 1 seat = $1 in debt, and you control how much you want to charge by changing the number of seats for the Subscription. I don't think Stripe has a limitation to the number of seats (as long as it's a valid integer), but they do have a limitation on the maximum amount you can charge which you can read about here. For USD the maximum charge amount is $999,999.99, so the maximum quantity would be you could specify for a $1 price is 999,999.
You could look into using metered pricing, but given that you don't want to bill at the end of the billing cycle the other two options seem better.
I think the first option (updating the price year by year) is your best one, but definitely try all of them out in test mode and take a look at how the Invoices look to see which one you like best.
Please help if possible.
I want to create a dashboard in excel, where I want to calculate the total sales of the agents in my shift. But the problem is that I want to calculate multiple agent's sale score in a single case as well.
Conditions:
If in a single sale, there are 3 agents, the sale would be divided among the three with the 3rd person getting 50% of the sale amount and the 1st and the 2nd person both getting 25%.
If in a single sale, there are 2 agents, the sale would be divided among them equally.
If a single agent cracks the sale, the amount would belong to him alone.
Now how would I put a formula where these things are calculated automatically?
e.g.:
Agent 1 Agent 2 Agent 3 Sale Amount
Adam $100
Jack Adam $100
Nick Vince Adam $100
Vince $100
According to this, the amount would be as such:
Adam: - $100 + $50 + $50 = $200
Jack: - $50 = $50
Nick: - $25 = $25
Vince: - $25 + $100 = $125
This is the kind of result I want but want to get it done automatically as soon as the sale is entered. Anyone know how to achieve it through formula?
Thanks in Advance!
Hope this help you out. I tested it and it appears to work.
You can try following formula:
=SUMPRODUCT(CHOOSE(MMULT(--($A$2:$C$5<>""),{1;1;1}),{1,0,0},{0.5,0.5,0},{0.25,0.25,0.5})*($A$2:$C$5=G1)*$D$2:$D$5)
if necessary change the ranges automatically in the formula, convert main range to table:
So I have this issue, I have two tables one is employees, and another one is the projects.
Employees Table:
Year Name Type Jan Feb
2018 Kevin Salary 5000 2000
2018 Kevin Insurance 200 400
2018 Alex Salary 3000 4000
2018 Alex Insurance 300 400
Projects Table
Year Project_Name Employee_Name Jan_Hours_Worked Feb_Hours_Worked
2018 Apple Alex 7 5
2018 Apple Kevin 5 0
2018 LG Kevin 0 3
Now I am creating a result list of all the projects and costs recurred for them, what I need is for each project in Table 2 to find which employees are involved and then use that to find related costs for the employee from the Table 1 and calculate total costs for that project.
(e.g for project LG, I have Kevin working on that in Feb,for him company paid 4400(salary+insurance) in Feb and the costs recurred for the LG project would be 4400 divided by hours spent on the project which Kevin in total spent 3 hours; e.g.2 for the project Apple it would be the same but sum of Kevin's and Alex's costs from Jan and Feb, so Kevin: 5200/5 + Alex:3300/7 + 4400/5)
Now I have the formula to calculate this for 1 months which is something like this
=SUMPRODUCT(SUMIFS(Employees[Jan], Employees[Name],Project[Employee_Name], Employees[Year], 2018 )/Project[Jan_Hours_Worked],--(Project[Project_Name]=K14))
I need to find how to get the yearly result per project without repeating the formula 12 times, also with this formula, i get div to 0 error when an employee didn't work on particular months, so that needs to be sorted somehow. Any Help?
I suggest you to change how you store your data. If you can make some minor changes, then you can have an easy way to get the information you want, and also a Pivot Table with a summary of cost recurred for each proyect and which employee generated that cost.
IMPORTANT: For this answer to work, you must make sure that every Employee's Name is UNIQUE. If not, adapt the example trying to create
an Employee's ID or something.
Also, please, note i got a spanish version of Excel, so screenshots are in spanish but I will translate formulas :)
Ok, first of all, I changed the design of your table Employees. Creating a column for each month is kind of annoying. Use just a column to get the month. You can type the month in a cell just like 01/2018 and Excel will change it instantly to format mmm-yy (Jan-18)
This is how your Employees table should look:
The column TOTAL COST is just a sum of SALARY + INSURANCE. If you have any other concept, just add it as a column and modify the TOTAL COST COLUMN to include it.
Second, the table Project, I think it should be like this:
The column Employee Cost has an Array Formula.
IMPORTANT: Array formulas are inserted pressing CTRL+SHIFT+ENTER
The formula is (I used same names for tables, so copy-pasting should work for you):
=INDEX(Employees;MATCH(Project[[#This row];[Employee_Name]]&Project[[#This row];[Month]];Employees[Name]&Employees[Month];0);COLUMN(Employees[[#Headers];[TOTAL COST]]))
If you typed the formula right, you should see { at start and } at end.
The formula in Cost Recurred to Project is just a division of Employee Cost / Hours. Added an IFERROR when the hours worked are 0, then show 0.
=IFERROR(Project[[#This row];[Employee Cost]]/Project[[#This row];[Hours]];0)
And last step, your Pivot Table. Create one and organise it to get the sum per hours and month and proyect you want. You can get one like the one below:
As you can see,e.g. for project Apple, you can see that total cost is 2.391,43
but also you can see the cost of each Employee. Pretty cool I think.
I really hope you can modify the design of your data, because Excel is designed to work going down (I mean using rows) more than using columns. Excel 2007 got more than 1 million of rows and just around 16.000 columns, so it's designed to work vertically.
Hope this helps, or at least, give to you a clue of how to proceed :)
I am trying to create a mortgage calculator that forecasts the number of months it will take to pay off the loan.
I have successfully done this for a basic calculation where the monthly payment doesn't change but what I need is a calculation that works for payments increasing over 5 years.
I have uploaded my spreadsheet to Dropbox at the following link as it might be easier to understand if you can see what I am doing:
Example spreadsheet
The value in V6 is the one that I want to display the months it will take to pay off the loan.
I use the basic loan details in cells G5,G6 and G7 and the monthly repayment in V5.
I then need to run this calculation to determine the monthly payment for year one (B12):
$G$8+(($B$16*52/12)*$B$12)+$G$9
This gives me the actual monthly payment. I then need to repeat these steps for years 2,3,4 and 5 in cells D12, F12, H12 and J12. So for example year five I would use the following formula:
$G$8+(($J$16*52/12)*$J$12)+$G$9
The formula I am using to actually get the monthly payments forecast is:
=ROUNDUP(NPER(G6/12,V5,-G5),0)
Now I understand that to calculate a basic loan works but I need the repayments to increase year on year and for the total months for the repayment to reflect this.
Please can someone suggest a way around this problem or point me in the right direction?
This does exactly what I need and provides a detailed answer with a template:
Experts Exchange example with explanation
Is it possible to add free days to an active subscription on Stripe?
I'd like to do it in order to create a referral program: when a user refers someone, he gets 10 free days.
I think a good way to do it would be to update the current_period_end var, but I can't find how to do it in the doc.
For example:
Bob is subscribed and will be charged on the 15th of this month
He refers Alice
He gets 10 free days on his account, and his next billing date is now on the 25th
I believe the closest you could do would be apply some sort of credit to her account, so instead of 10 free days, it's earn (33% of monthly fee) per referral.