counting multiple columns that pass given criteria in excell - excel-formula

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.

Related

Excel: Using an IF() Function with Conditions Depending on Other Cells

I am writing an excel script for my company, and I am getting hung up on something. I have written a formula that calculates pay for a certain benefits we have.
This paragraph explains parts of the spreadsheet that work. If the employee was here for at least a year, they receive their benefit. If not, they are not eligible. I have a column that has a condition for their eligibility using the IF() function and determines whether or not they are eligible by their hire date. I also have a column that says the total pay from their benefit (6 percent of their normal hourly rate multiplied by their hours worked).
The issue I need help with is the last separate column that determines their pay if they are in fact eligible. What I want to do, is if the eligibility is true, have the cell display their benefit pay. If they are not eligible, I want the cell to display 0 (I already have a column saying if they are eligible or not to prevent confusion).
The formula I currently have looks like this:
=IF(V2="Eligible for SWW Pay",=T2,=0)
where V is the eligibility column and T is the pay given from their benefits. The formulas in both T and V give the correct output. However, this formula for the last column gives me an error. I don't know if it is a syntax error or if my logic is totally wrong for doing this.
Does anyone have any idea what I am doing wrong? Any feedback is greatly appreciated!
Thanks,
Nick
I would propose you the following formula:
=IF(V2="Eligible for SWW Pay",T2,0)
The equal-signs in front of T2 and 0 are not needed.

Sumifs or index match?

Thank you for helping me out. I am working on a way to add up how many pieces each department is handling per week...My data are organized as below. Each row represents an order. There is an order qty. And the orange grid has the week numbers during which the department is handling that order.
Data layout
I am trying to summarize by week how many pieces each department is handling..and While I have a series of sumif statements to work around, I am wondering if the brain trust has a more elegant solution...Thanks again.
desired output
MMULT() with SUMPRODUCT() may give you expected result.
=SUMPRODUCT(MMULT(($C$2:$G$4=$A8)*($C$1:$G$1=B$7),TRANSPOSE({1,1,1,1,1}))*($B$2:$B$4))
You may need to enter the formula as array entry means confirm with CTRL+SHIFT+ENTER. If you have Excel O365 then you can use dynamic formula SEQUENCE() which will give you best performance for large numbers of columns. Try-
=SUMPRODUCT(MMULT(($C$2:$G$4=$A8)*($C$1:$G$1=B$7),SEQUENCE(COLUMNS($C$1:$G$1),,,0))*($B$2:$B$4))

Find conditional MAX of only visible cells in Excel

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.

CountIF error with <0

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.

Excel 2013: Count unique values or IDs in column B with a condition which needs to be filtered in column A

I am a noob in excel, hence pardon me for any mistakes made.
This question must have been answered before but I couldn't find the right string to make it work for me.
There are around 500 rows and 20 columns (Yes, it is a report)
Column A has a few values (eg: Problem, Change, Request, etc.)
Column B has ticket numbers assigned to each entry. (No, I don't work for a call center, these are Datacenter Operations tickets)
Column B has several duplicate ticket numbers, as many people worked on same ticket OR the ticket was reopened for some reason.
I wish to take a count of unique ticket numbers from Column B when the condition in Column A is Change only.
So if there are 500 ticket number 250 are duplicate for sure, and only 25% of the rest will be Change tickets.
I am not supposed to use a Pivot or filter hence asking this question.
Need a formula to retrieve the count with the condition.
I may put the formula in Sheet2 or at the extreme right column, plz don't worry about it, I will take care of those things.
Many thanks in advance.
Adding to the question,
Let me help you with some data.
Change CRQ1110001
Problem INC1110001
Change CRQ1110001
Problem INC1110001
Change CRQ1110003
Problem INC1110003
Change CRQ1110004
Problem INC1110004
Change CRQ1110004
Change CRQ1110004
Problem INC1110005
Now I wish to only consider Change here without considering duplicate values.
Maybe this helps.
Thanks again.
Based on this website count unique values and with a small change this formula should work, expand the ranges to cover your entire range.
=SUM(IF(FREQUENCY(IF(A2:A10="change",IF(LEN(B2:B10)>0,MATCH(B2:B10,B2:B10,0),""),""), IF(A2:A10="change",IF(LEN(B2:B10)>0,MATCH(B2:B10,B2:B10,0),""),""))>0,1))
Entered with ctrl+shift+enter as it's an array formula.
Note that if you do this over the entire column A:A it will take quite a bit of time to compute as it has to go through a lot of calculations in the array formula.
If your "ticket numbers" in column B are actual numbers then you can use this formula
=SUM(IF(FREQUENCY(IF(A2:A500="Change",B2:B500),B2:B500),1))
confirmed with CTRL+SHIFT+ENTER
If not numeric you need to use a version as per gtwebb's suggestion

Resources