I want to make a function in excel program to calculate multiple taxes.
x=main salary = 30000 as an example.
then >>
I divide the x into 10000s
the first 10000 in x has no tax,
the second 10000 in x has 10% as tax,
more than that has 15% as tax
I need
main salary - taxes = real salary.
The Formula for the Tax is:
=IF(A1-10000>0,IF(A1-20000>0,(A1-20000)*15%+(10000*10%),(A1-10000)*10%),0)
A1 the initial salary
In case the salary is <= 10000 no Tax it returns 0
If will test
In case A1-20000 >0 True will apply 15% on A1-20000 + 10000*10%
In case A1-20000 <=0 10% will be applied to A1-10000
The result will be the Total Taxes
Related
I am trying to add sales from 5 days, each day a new column. I want to then take the first $50,000 and multiply by a percent, then 50-70k and multiply by another percent. Is this possible and what formula would I use?
Please correct me if it's not something you want. Assume you're calculating some sort of commission on the basis of sales at progressive rates: 35% on the first $50,000, 40% on the next $20,000 and 50% on the remaining.
Mathematically, the answer to your example should be $40,500 and here's the breakdown:
This Excel formula gives the expected amount, referencing cell 'M2' as the total sales:
=IF(M2<=50000,M2*0.35,IF(M2<=70000,17500+(M2-50000)*0.4,17500+8000+(M2-70000)*0.5))
The pseudocode to help you understand the formula more easily:
If totalSale <= $50,000, set commission = totalSale x 0.35
Else if totalSale <=70000, set commission = 17500 + (totalSale - 50000) x 0.40
Else set commission = 17500 + 8000 + (totalSale - 70000) x 0.50
You may wish to use more nested-if if there are more progressive rates. Check this out. Good luck!
I'm given gm%, gm&, sales, sales cost, and several of the same dates. For every date, I want to find the total Gross Margin Percentage for that day. How can I do that in Excel? I want my output to list a unique date and the GM% corresponding to the date.
You can't average gross margin percentages and get an accurate figure. You need the total cost and total retail (/selling price) amounts, and with the total cost and retail amounts you'll be able to calculate the average gross margin percentage with 1-Sum([Cost])/Sum([Retail]).
Averaging percentages is not accurate reporting. Proof:
Units Cost Retail GM%
10 379 1000 62.1%
1 327 650 49.7%
The "average" GM% you would be aggregating would be 55.9%...
but the correct GM% would be 57.2%.
If all you have is the total sales amount and the GM%, you need to compute the total cost:
[Cost$] = [GM%]*[Retail$]
If all you have is the total cost amount and the GM%, you need to compute the total retail:
[Retail$] = [Cost$]/(1-[GM%])
If you have the GM$ amount and the GM%, you can calculate both cost and retail amounts:
[GM%] = [GM$]/[Retail$]
[GM$] = [Retail$]-[Cost$]
[Retail$] = 1/[GM%]*[GM$]
[Cost$] = 1/[GM%]*[GM$]*(1-[GM%])
With these, you can now accurately compute the average GM% figure.
I am trying to write a formula to lookup a value based on two columns, with one being an exact match and one approximate.
I have been looking at https://exceljet.net/formula/index-and-match-with-multiple-criteria, but that only works for both being exact matches.
The project is regarding customer pricing discounts. Each customer is assigned a discount group, with has quantity breaks depending on how many they order.
So for example:
Discount Group Qty Break % Discount
A 0 0%
A 50 10%
A 100 20%
B 0 0%
B 100 15%
B 200 25%
So if a customer in group B orders 150 units, I want to lookup B in the first column, and then the value below 150, so 100, and return 15% discount.
Hope that makes sense!
Thanks.
try,
=aggregate(14, 7, c:c/((a$1:a$99="B")*(b$1:b$99<=150)), 1)
I have three tables that contain cost: Forecasted Cost, Actual Costs, Invoiced Costs. Each has an "EAC Filter" column for a Y/N of whether to include the cost in an Estimate at Completion, which automatically changes over time and/or as data is added. Here are examples:
EAC from the three tables can be calculated as follows:
Total Cost = Sum(Forecast[Cost])+Sum(Actual[Cost])+Sum(Invoice[Cost])
EAC = Calculate([Total Cost],EAC_Filter[EAC Filter]="Y")
I have a budget at the "Account" level, which could also be rolled up to a "Dept" level budget.
I need a measure for my Power Pivot table which will display the week at which costs have exceeded, or are forecasted to exceed 75% of the budget, using some sort of a cumulative cost, combined with the max week where cumulative cost >= .75 * Budget.
The weeks are numbered through the year as follows:
Thanks for your help!
Given an EAC measure which sums the cost per week,
EAC = CALCULATE(SUM(Forcast[Cost]) + SUM(Acutal[Cost]) + SUM(Invoice[Cost]),
EAC_Filter[EAC Filter] = "Y")
You can create a Cumulative Cost measure as follows:
Cumulative Cost = CALCULATE([EAC],
FILTER(ALL('Calendar'), 'Calendar'[Week] <= MAX('Calendar'[Week])))
Using this, we can create a measure that predicts the week the cost exceeds 75% of the budget:
75% Week = MINX(FILTER(ALL('Calendar'), [Cumulative Cost] > 0.75 * SUM(Budget[Budget])),
'Calendar'[Week])
Here's what the relationships structure looks like:
I have 2 Calculated Member AVG Weekly Percentage and AVG Monthly Percentage.
For weekly the Result is Good
And for AVG Monthly Percentage there is error on Grand Total because there is the addition of a grand total of AVG Weekly percent.
the real result AVG(99.83%+85.59%+99.80%+100%+100%+100%) = 97.54%
but the Result from Cube (AVG(99.83%+85.59%+99.80%+100%+100%+100% + 100% (from weekly grand total)) = 97.89%
For AVG Weekly Percentage
IIF(
isempty([Measures].[Actual Quantity MTD]) or [Measures].[Actual Quantity MTD]=0 or isempty([Measures].[Original Plan Quantity MTD]) , null ,
IIF([Measures].[Original Plan Quantity MTD] =0 or
isempty([Measures].[Original Plan Quantity MTD]),null,
IIF(
([Measures].[Actual Quantity MTD]-[Measures].[Original Plan Quantity MTD]) > 0 , 1 ,[Measures].[Actual Quantity MTD]/ [Measures].[Original Plan Quantity MTD]
and for AVG monthly Percentage
AVG (
DESCENDANTS([PSL Scenario].[PSL Scenario Description])*
DESCENDANTS([Plant].[Plant])*
DESCENDANTS([Finish Date].[Calendar],[Finish Date].[Calendar].[Month Year])
, AVG(([Finish Date].[Calendar].CURRENTMEMBER.CHILDREN), [Measures].[AVG Weekly Percentage]))
What do i miss?
You may have to exclude the 'weekly grand total' (as you call it) from the calculation.
I have had situations like this, where I tell the calculation to only use values if they are from the leaf level (or a particular level) of the hierarchy. Can you do this?