So I have 2 columns: 'Issue Type' and 'Status'. I want to count the number of "Closed" in the 'Status' column when the associated 'Issue Type' is equal to "Bug". Any idea how to accomplish this?
Create a new column. In that column, create a formula that returns 1 if 'Issue Type' is "Bug" and 'Status' is "Closed". Otherwise return 0. Sum the column.
Example formula
=IF(AND(B2="closed",C2="bug"), 1, 0)
This assumes column B has Issue Type, column C has status, and the formula is in Column D
I tried this in Excel, not sure if that's what you are using.
I might be a little late, but this code will work
=countifs(A:A,"Bug", B:B, "Closed")
It will count only if the Issue Type in Column A is Bug and Status in column B is Closed.
Related
I have a table that contains three columns. I need to set a value in column C that depends on column A and B. If all the values in column B are the same for a fixed value in column A then each row in column C needs to say "Pass" otherwise "Fail".
In the example screenshot the status is "Pass" for all values with ID = 2 because all values in the column "Name" are the same e.g. C
Example Table
A simple IF and COUNTIFS:
=IF(COUNTIFS(A:A,A2,B:B,"<>"&B2)=0,"Pass","Fail")
Without VBA
formula in C2 and copy down
(Maybe you have to replace the semicolon with comma)
=IF(COUNTIF($A$2:$A$11;A2)=COUNTIFS($A$2:$A$11;A2;$B$2:$B$11;B2);"Pass";"Fail")
I am trying to check whether the value in each cell within Column A is in Column D. Some cells in Column D have multiple values within a single cell. If the value of Column A IS found in Column D then I want the formula to return what's in Column B (value next to Column A that matched).
Try:
Formula in C2:
=IF(SUMPRODUCT(--(ISNUMBER(SEARCH(A2,$D$2:$D$5))))>0,B2,"")
Drag down..
If you are looking at just row by row analysis then try this:
=if(iserror(search(a2,d2)),"",b2)
if you are trying to match any row in D then I suggest breaking out all items in D into an item per row and then doing a VLOOKUP
Can you copy column B to Column E? If so,
=Vlookup("" & A1 & "", D:E, 2,0) and scroll down.
If not, a similar index(match( function will work with a wild card. (*)
I have the following data set: and use the index/match function to check if the value in column A has a corresponding value in column b compared to values that are in another sheet called Data:
=IFERROR(INDEX(B:B,MATCH('Data A1'!,A:A,0)),"")
The goal of this exercise is to identify there is value in column B for any value in column A and here is where my formula fails, because for value 2 the formula returns an empty cell, because it is only checking for the first value in the list and not all values.
Any ideas on how I can fix the formula to reflect ABC when the value 2 is in the list? I am hoping for an outcome like this:
Thanks for your help!
It may be better to use a blank column to do this. In a blank column put the following formula in the first row:
=IF(B1="",SUMPRODUCT(($B$1:INDEX($B:$B,MATCH(1E+99,$A:$A))="")*($A$1:INDEX($A:$A,MATCH(1E+99,$A:$A))=A1)),B1)
Then Copy down the range.
I am trying to search from inside spreadsheet 1 into spreadsheet 2 for 2 things that must be true and if so, pull back another column row.
I want to search column A for the number 12345 and column B for the string "GBP" but I do not know what row 12345 and "GBP" will occur on. If found (there can only ever be 1 result returned so don't worry about multiple results) I need to return the value in column C.
The thing is - I am finding this tricky. Can you help me please?
Create a column C where each cell to the right of data contains the formula
=IF(AND(A2=12345,B2="GBP"),1,0)
When you have copied that formula into each cell down the entire column, search that column for a "1". The "1" is what you are looking for.
As long as there is 1 row matching the criteria, you can use SUMIFS function to get the value from the matching cell:
assuming A2=12345 and B2="GBP" on the current sheet,
sum all values on Sheet 1 column C where both columns A and B match the specified criteria:
=SUMIFS(Sheet1!C:C,
Sheet1!A:A, A2,
Sheet1!B:B, B2)
I can do this manually but I'm sure there is a formulaic way to do this.
Here is the data :
Column-A Column-B Column-C
C Y
D
E Y
F
E Y
What I want to do is in 2 steps :
a.) Select all values in Column-A, where the corresponding value in Column-B is "Y".
b.) From the data selected from Column-A above, select only the unique values and put them in Column-C
c.) Hence the data in Column-C for the above data will be "C" & "E"
Any pointers ?
Here's one option assuming you have excel 2007
Put this formula in C1
=IFERROR(INDEX(A1:A5,MATCH("Y",B1:B5,0)),"")
then this one in C2 copied down
=IFERROR(INDEX(A$1:A$5,MATCH(1,INDEX((B$1:B$5="y")*(COUNTIF(C$1:C1,A$1:A$5)=0),0),0)),"")
You can do it in earlier versions but it requires some longer formulas to ensure that you don't get error values once valid matches are exhausted
Explanation:
Formula 1 uses MATCH to find the position of the first "y" in B1:B5, then INDEX returns the relevant value from A1:A5. If your columns were the other way round you could use VLOOKUP, INDEX/MATCH is a standard way to do a "left lookup".
Formula 2 uses MATCH to find the position of the first row where 2 conditions are satisfied, B1:B5 = "y" and A1:A5 <> a value already found. The values already found are in column C above so the COUNTIF function looks at the cells above and does a count for each value in column A within that range above (which expands as you drag the formula down) - a count of zero means that that value hasn't already been selected. Once MATCH identifies the row number INDEX takes the value from that row in column A.