Using an excel function, I'd like to get a total count for "WO", "Satisfactory Performance" and anything in October from the following data set. My expected total should be 1.
Region Performance Rating Date
WO Satisfactory Performance 10/1/2018
01 Satisfactory Performance 10/18/2018
WO Satisfactory Performance 11/16/2018
I've tried the following formula returning a value of 0, but it should be 1:
=COUNTIFS(Q103:Q105,"WO",R103:R105,"Satisfactory Performance",S103:S105,+SUMPRODUCT(1*(S103:S105)=10))
Any suggestions is greatly appreciated.
Thanks!
I really don't know what +SUMPRODUCT(1*(S103:S105)=10) is intended to accomplish. Typically you would simply bracket the month with COUNTIFS.
=COUNTIFS(Q103:Q105, "WO",
R103:R105, "Satisfactory Performance",
S103:S105, ">="&date(2018, 10, 1),
S103:S105, "<"&date(2018, 11, 1),)
Related
I have a suspicion Excel is calculating exponents that are repeating decimals represented as a fraction (e.g. 1/3) differently than ones that don't have repeating decimals (e.g. 1/2). It is preventing me for a formula that finds perfect cubes in a list of numbers.
Column A lists numbers 1 to 100.
Column B has the following formula (starting with row 5):
=IF($A5^(1/2)-ROUND($A5^(1/2),0)=0,1,0)
This should return "1" if the number in column A is a perfect square, like 1, 4, 9, etc. and does so correctly. This other formula I originally wrote also works: =IF(SQRT($A8)-ROUND(SQRT($A8),0)=0,1,0).
Column C has the following formula (starting with row 5):
=IF($A5^(1/3)-ROUND($A5^(1/3),0)=0,1,0)
Note that it is the exact same as the perfect square identifying formula, except there is a 3 where there was a 2. This is not returning a "1" for perfect cubes like 8, 27, 64. etc. (but does return a "1" for the number 1).
Can anyone help me correct this?
I apologize for not knowing how to pick a comment as an answer, so I aggregated the helpful comments and am posting them as an answer.
Main Explanation:
See Floating-point arithmetic may give inaccurate results in Excel. If you examine the underlying xml, you will see that Excel is calculating A1^(1/3) as 1.9999999999999998. The article explains why, and suggests some work arounds. – Ron Rosenfeld
Workaround I picked:
Can't you replace $A5^(1/3)-ROUND($A5^(1/3) with $A5 - ROUND($A5^(1/3))^3? – r3mainer
Thanks all!
I have a table which represents the brands and stock for last 10 months. WHat I need is:
Identify the SKU which have been sold less than 10 (quantity) for last 10 months.
The problem is that sometimes the december stock is 6 but January stock is 31, and if I subtract that I get -25. And this alters the formula and I am unable to calculate the products which have been sold less than 10 times for last 10 months.
I use the formula like below :
=IF((D2-E2)+(E2-F2)+(F2-G2)+(G2-H2)+(H2-I2)+(I2-J2)+(J2-K2)+(K2-L2)+(L2-M2)<10;IF((D2-E2)+(E2-F2)+(F2-G2)+(G2-H2)+(H2-I2)+(I2-J2)+(J2-K2)+(K2-L2)+(L2-M2)>0;"Overstock";"No Overstock"))
Thanks in advance !
I think you should be able to use SUMPRODUCT in order to achieve your results:
=IF(E2>D2,SUMPRODUCT(E2:L2-F2:M2),SUMPRODUCT(D2:L2-E2:M2))
Afterwards, you can simply use =IF(AND(N2>0,N2<10),"Overstock","No Overstock") to mark the amount as Overstock or No Overstock.
Let me know if it works for you.
Kindly use SumIfs() formula for this issue
I need to analyse empirical research data:
Given the following data:
The explanation: 5 people answered Question 1 with "entirely agree", which is equivalent to a score of 7. Zero people answered Question 1 with "entirely disagree", which would be a score of 0.
I want now to calculate the number of responses strictly less than the Median and the number of answers equal to the Median.
The result should look like this (the Median is given thanks to Research data analysis in Excel: Median of x times column value)
I tried with the functions =INDIRECT and =INDEX; without success.
Would be great, if someone could help me. Thank you.
Use SUMIF:
Below:
=SUMIF($B$6:$H$6,"<" & I2,B2:H2)
Equal
=SUMIF($B$6:$H$6,"=" & I2,B2:H2)
A working, but not a better solution is to sum up the row conditionally:
the highlighted cell has this formula:
=IF(B6<I2,B2,0)+IF(C6<I2,C2,0)+IF(D6<I2,D2,0)+IF(E6<I2,E2,0)+IF(F6<I2,F2,0)+IF(G6<I2,G2,0)+IF(H6<I2,H2,0)
I hope it helps.
I just want to ask an excel formula for this.
If an employee exceeds one year of employment he will have a free uniform
If he was hired last October 1, 2015 and he requests for new uniform this October 22, 2016 then he should have free uniform.
10/1/2015 - 10/22/2016 = "Can Avail Free Uniform" or "Cannot Avail!"
I just want the two optional answers to reflect using an excel formula.
Thanks
If I would create a formula like this:
I would use 4 cell columns:
Date Hired,Date Request,Years of Service,isAvail
On my Years of Service, I would use DateDif Function,
Where =(DateDif('cella','cellb',"m")/12) in order to achieve a year.
Then on isAvail column, I will use =IIF('cellc >= 1', "Can Avail","Cannot Avail")
See if it helps.
I would use these four columns
and use the following formula in D2:
=IF(AND((C2-A2)/365>=1,(C2-B2)/365>=1),"Can avail free uniform","Cannot avail")
This checks to see of the time since date of hire AND the time since the previous request is more than 1 year and returns "Can avail free uniform" if both equals ore are greater than 1, and returns "Cannot avail" if one of them is less than 1.
I already have a spreadsheet set up for 23 salespeople. Row 24 is their customer service index averages. So across the top in B through X I have the salespeople. Their total scores in Row 22 and their averages in Row 24. I would like to rank their average (descending order) in Row 24. Excluding zeros.
Here is what I have come up with (in B28):
=IF(B24=0,"",IF(B24="x",COUNTIFS(B$24:X$24,">"&X24,X$24:X$24,"<>0",B$24:X$24,"x")+1,""))
it won't work.
Any help would be greatly appreciated. I am a quadriplegic running my own business, and any help I can get to not have to add/multiply/subtract/ divide would be a great thing!
Please try this instead:
=IF(B24=0,"",RANK(B24,$B$24:$X$24))
and copy across to suit.
If you're Excel 2010 or newer you can use the RANK.EQ() function. See http://office.microsoft.com/en-us/excel-help/rank-eq-function-HP010335687.aspx?CTT=5&origin=HP010335659 for usage.
Assuming you want to rank then in a descending order (higher numbers rank first), you can use the following:
In B28:
=IF(B24=0,"",RANK.EQ(B24,$B$24:$X$24))
Then just copy across to X28.
UseRANK() if you're using Excel 2007 or older.
Referring to the use of RANK() in Excel 2010 or newer, the Microsoft documentation states the following:
IMPORTANT This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage. Although this function is still available for backward compatibility, you should consider using the new functions from now on, because this function may not be available in future versions of Excel.
I added more of the salespeople scores and had no more DIV/0 errors online 24 and low and behold, row 26 all filled in correctly. It was trying to calculate the 0 cells on line 24, in which there was 3 DIV/0, and they came up with a DIV/0 error all the way across row 26. Now if I can just figure out how to get it to put a 0 in their.