I received an error , You have entered too few arguments, can someone help me check whats the error?
Now i have the % for the whole team that meet the TAT of 15 days and never meet (example 95%), but now i would like to calculate for individuals to see who did not meet the TAT of 15 days and are pulling the % as a team down.
my formula is as follow:
=COUNTIFS(DSE_Pyt[Payment Done By],H88,DSE_Pyt[Month],F6,
COUNTIFS( DSE_Pyt[For Undisputed Pymt, TAT <=15BD ?],"Y",
DSE_Pyt[Month],F$6)/(COUNTIFS( DSE_Pyt[For Undisputed Pymt, TAT <=15BD ?],"Y",
DSE_Pyt[Month],F6)+COUNTIFS( DSE_Pyt[For Undisputed Pymt, TAT <=15BD ?],"N",
DSE_Pyt[Month],F6)))
Simple to say , i would like to calculate the person individual stats on whether how many TAT did she meet divided by the total orders she submit.
the team formula ( that worked ) :
=COUNTIFS( DSE_Pyt[For Undisputed Pymt, TAT <=15BD ?],"Y", DSE_Pyt[Month],F$6)/(COUNTIFS( DSE_Pyt[For Undisputed Pymt, TAT <=15BD ?],"Y", DSE_Pyt[Month],F$6)+COUNTIFS( DSE_Pyt[For Undisputed Pymt, TAT <=15BD ?],"N", DSE_Pyt[Month],F$6))
There seem to be two problems
Your numerator seems to be incomplete
=COUNTIFS(DSE_Pyt[Payment Done By],H88,DSE_Pyt[Month],F6,
COUNTIFS(DSE_Pyt[For Undisputed Pymt, TAT <=15BD ?],"Y", DSE_Pyt[Month],F$6)
The second COUNTIFS() appears to be the one of the range of the first countifs - if this is going to result in a range then where is the criteria for this range ?
There seems to be a unbalanced ')' (closing bracket at the end of your formula)
Related
I'm using this formula to count the amount of times a couple of IDs are in a list:
=IFERROR((COUNTIFS(DumpGeneral!A:A;"*"&I8&"*";DumpGeneral!A:A;"*"&A$6& "*"))/(COUNTIFS(DumpGeneral!A:A;"*"&A$6&"*"));0)
And the strings I use to find these IDs look like this:
M038-P9-G7-T34-T154-T223-T290- In the formula (I8=T15 // A&6=M038)
The issue that I'm having is that with the formula I'm using, IDs like T15 are being counted too when other IDs like T150, T151, T152... are on the string but T15 is not. Is there any solution where I can avoid this problem?
try:
=INDEX(IFERROR((COUNTIFS("-"&DumpGeneral!A:A&"-"; "*-"&I8&"-*";
DumpGeneral!A:A; "*"&A$6&"*"))/(
COUNTIFS( DumpGeneral!A:A; "*"&A$6&"*")); 0))
I would like to ask you to help me find a solution.
I would like to use something like df.groupby('Client') and apply to it custom function that calculates Present Value of all cash flows for each client. The method of calculation PV for different discount rates is mentioned in excel formula on attached image. The problem is that Discount rate and payments aren't constant.
Can you plase help?
Here comes the DataFrame:
pd.DataFrame([
['Ann',1,100,0.05],
['Ann',2,200,0.06],
['Ann',3,100,0.07],
['Tamara',1,300,0.05],
['Tamara',2,100,0.08],
['Tamara',3,200,0.09]],columns=['Client','Period','Payment','Discount rate'])
def pv_custom_function(x):
discount1 = x['Payment'] / ((x['Discount rate'] + 1).cumprod())
return discount1.sum()
data.groupby('Client').apply(pv_custom_function)
I have a dataset which is amount (parts per million) against time (every minute)
I need to find the peak for each day, so that I can plot that against other data, I can manually do this using =MAX( but I have a lot of data points and I am sure there is a better way
Many Thanks for the help
I don't know where and how you want show this data, but, if you want get a max value amount per day, you can try add an array formula, like that:
=MAX(IF($COL_DATES = $DAY, $COL_VALUE, 0))
Replace $COL_DATES to your column of day date, replace $DAY to value of day what you want get max value and replace $COL_VALUE to your column of values.
After press CTRL + SHIFT + Enter
I'm trying to calculate the average % of a compounded increase.
For example, if $100 increases by 5% over three years, the average % increase over the whole period is 10.34%.
100.00 + 5% = 105.00, 105.00 + 5% = 110.25, 110.25 + 5% = 115.76, AVERAGE(105,110.25,115.76) = 110.34, (110.34 - 100) / 100 = 10.34%
I'm currently calculating this with lots of IF statements because duration, percent, and starting values are variable…
=((100*1.05+IF(3>=2,100*(5/100+1)^2)+IF(3>=3,100*(5/100+1)^3))/3-100)/100
my actual formula contains many, many more lines to catch durations up to 25 years which is why I'm looking to scale it down with some intelligent calculations
The results will be shared with other teams who don't use VBA, so needs to utilize in-built formulas.
Thank you,
Your basic formula would be:
=(AVERAGE(FV(0.05,{1,2,3},0,-100))-100)/100
This is an array formula and must be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode.
Now if one wants the inputs to be dynamic(pointed at input cells) then we need to change the formula a little:
=(AVERAGE(FV(B2,ROW($ZZ$1:INDEX($ZZ:$ZZ,B1)),0,B3))+B3)/(-B3)
Still an array formula
NOTE: If one has the dynamic array formula SEQUENCE it can be done without the need of CSE with:
=(AVERAGE(FV(B2,SEQUENCE(B1),0,B3))+B3)/(-B3)
The math solution is
=((1+R)^N-1)*(1+R)/(R*N)-1
where R is the rate and N is the number of periods.
I created a saved search on sales orders to calculate days between order date and ship date, grouped and averaged by class (the formula is cased to distinguish between 'Wholesale' class and all others). The numeric formula is:
CASE WHEN {class} = 'Wholesale' THEN {actualshipdate} - {startdate} ELSE {actualshipdate} - {shipdate} END
The summary type for the formula result is average. The summary-level results have way too many decimal places. Is there a way to round the summarized results to a pre-defined number of digits?
I have tried using the ROUND() function, both inside the CASE statement and as a wrap-around. I've also looked through general preferences for rounding defaults and haven't found any.
In order to round the result, you should implement you own average calculation and rounding.
Add the following result field besides the class grouping field that you already have:
Field : Formula (Numeric)
Summary Type : Maximum
Formula : ROUND(SUM(CASE WHEN {class} = 'Wholesale' THEN {actualshipdate} - {startdate} ELSE {actualshipdate} - {shipdate} END) / COUNT({internalid})),2)
Basically, you are doing here your own analytics.
Since the results are grouped, each result fields contains the whole result set of this field which allows you to add analytical functions on this group.
The summary type is MAXIMUM, just in order to show one result, so it can also be min or avg, no difference.
The function is calculating the sum of your formula and dividing it by the records count to get the average.