I'm trying to find the highest score individuals achieved on a test, given that they failed the test, and I want to be able to use filters to narrow down to certain groups of individuals, which I've tried using the SUBTOTAL function to achieve.
Here's what I've tried so far:
SUMPRODUCT(SUBTOTAL(104,OFFSET(INDEX(TOTAL,1),ROW(TOTAL)-ROW(INDEX(TOTAL,1)),0,1)),--(PASS_FAIL="FAIL"))
'TOTAL' and 'PASS_FAIL' are named ranges for the individual's score on the test and whether they passed or failed it, respectively.
I realized that by using SUMPRODUCT this just takes all of the scores of those that failed the test and adds them together. And I can't find anyway to get anything else to work either.
Any help would be greatly appreciated!
wrap in MAX instead of SUMPRODUCT and multiply the two conditionals:
=MAX(SUBTOTAL(104,OFFSET(C2,ROW(C2:C16)-MIN(ROW(C2:C16)),0,1,1))*(B2:B16="A"))
Depending on one's version this may need to be confirmed with Ctrl-Shift-Enter instead of Enter.
Related
I wanted to double-check the accuracy of some work I’m doing. I have a column where I am returning unique student IDs using this formula =IF(AND(B2="Eligible/Previously Eligible",E2<TODAY()-1095),A2,""). When I count up the number of values returned, I get 931. However, if I use this formula =SUM(COUNTIFS(B:B,"Eligible/Previously Eligible",E:E,"<"&TODAY()-1095)) to count the number of IDs that match the criteria, I get 759. I don’t understand what I’ve done wrong to get a different answer since the criteria for both formula seems to be the same. Any suggestions are appreciated!
I'm trying to rank the following items based on price using the following formula =SUMPRODUCT(([Item]=[#Item])*([#Price]<[Price]))+1, but it isn't returning any results:
When I use the same formula in the following test table it works, =SUMPRODUCT(($A$2:$A$7=A2)*(B2<$B$2:$B$7))+1:
Can someone please let me know what I am doing wrong? Thanks
EDIT 2 : Evaluation https://imgur.com/a/eXIYPAP
Your formula works fine for me.
Are you sure that A2 and A3 are the same value? There may be some hidden white space causing problems. Just try
=A2=A3
in another cell to make sure they are the same.
USE COUNTIFS INSTEAD
I don't know why your formula isn't working, however, I would suggest avoiding SUMPRODUCT where you can.
=COUNTIFS([Item],[#Item],[Price],">"&[#Price])+1
This will count the number of prices higher than the current one for each item (+1, if you want the rank to start at 1 instead of 0)
If your goal is to get the ranking for each unique item, =SUMPRODUCT(([Item]=[#Item])*([Price]>[#Price]))+1 should do the trick. If the goal is to get the ranking based only on price, don't have it figured out yet.
I really need help guys. Please, someone tell how to count how many times an agent passed the condition: AIP Goals please refer to the image. Agents who reached the goal for a specific metric (eq. r30, AHT, Dispatch Rate.. etc) have scores highlighted in yellow. I need to count how many times an agent passed a metric for each month.
I have been trying SUMIF and COUNTIF but I'm confused how to go about it.. I'm new to this and started about two weeks ago.. Please, someone help
You want:
=SUMPRODUCT(1*($C11:$F11<=TRANSPOSE($B$26:$B$29)))
Entered as an array formula by using Ctrl-Shift-Enter when exiting edit mode instead of Enter. If done correctly Excel will put {} around the formula.
This will give the July numbers for August and September simply add another SUMPRODUCT for those month each and add them together. The columns must be in the same order as the goals.
I would need some help again with another excel countif expression. I have the line i2:al2 which contains leftover stock data.I am building a worksheet to calculate remaining stocks in % as per supervisor's wish.
As I am working with %, for example if I say that 90% sales that means we have 103 stock left and with 91% sales I have 100 stock left.
Anyways I got around to count the number of stock left in line i2:a12 using countifs.
Example if I need to calculate leftover stock for sales at 90% which means leftover stock level of 100 to 102. I have used :
=countif(range,">100")-countif(range,">102")
This method seems to work till I reach negative numbers, i.e. oversales. For example, if I try to do the following:
=countif(range,"-100")-countif(range,">0")
the formula seems to stop working. If I count manually using a conditional formatting I get a totally different answer for the oversales.
Maybe I am getting the logic of the countif function wrong. My purpose for the expressison is:
=count(in range, values >=X & <=Y)
As I have only access to excel 2003 I cannot use Countifs method. Anyone could help me on this issue?
Many thanks.
You can use an array formula:
=SUM((range>=x)*(range<=y))
For that to work, you need to press CTRL-SHIFT-ENTER for that to use array formula.
Alternatively, using what simoco gives in the comment works too without having to save as array formula.
I have created an interest rate model in excel that contains a stochastic part created by the NORMINV() command. However sometimes I get the error #NUM!. I would like to know how I can create a function that assigns a certain value to cells with the text #NUM! in them.
I have tried a IF function but it didnt work as it didnt see #NUM! as a logical outcome, e,g, IF(B3=#NUM!, "2").
Or perhaps I just missunderstood.
Thank you in advance!
Use IFERROR()
For example IFERROR(B3;"2")