The Goal
Basically, I want to compare A6 to range Responses!C:C and return a count of non blanks in columns Responses!F:F
I'm using this formula
=COUNTIF(responses!D:D, "=A6", responses!F:F)
What I've done
In the example, I'm trying to check column D in the responses sheet for a string in cell A6 of the dashboard sheet. If the string exists in the column D of the responses sheet, then I want a count of the items in column F. I expect 0 to be returned for the NJROTC item.
Request
Can someone please review my formula and let me know what I'm doing wrong OR if there is a better solution than the COUNTIF function?
Video Explaining the Problem
http://youtu.be/J_ados6Ksq4
Just a syntax issue; change "=A6" to simply A6 (you could also use "="&A6 but that is functionally no different and more key strokes).
=IF(ISTEXT(VLOOKUP($A6,responses!$D:$M,3, FALSE)),"Yes","No")
This worked for me
Related
I was not sure how to really create the question...
But the problem I am having is this: I have a list (in rows) that relate to a regulatory document, and after trying to create some sort of for loop or elaborate VLookUp/Index formula, I'm requesting help.
For example:
Now I want to use the rows to find the corresponding section in the document. I've already extracted and formatted the compliance document so it is in excel format.
So what I really need is this: a formula or VBA script that can
1. take the compliance number (for example 1A-1 which exist in Cell A3) and go find a cell (in single column D) that has JUST 1A-1, not 1A-1.1, not 1A-1.1.2, etc. and return it to the adjacent cell to 1A-1, for example.
Many thanks ahead of time... I am so lost!! :/
VLOOKUP vs INDEX/MATCH
You can do the 'lookup' two ways (that I'm aware of):
Using VLOOKUP:
The B3 cell contains your formula
=IF(ISERROR(VLOOKUP(A3,C:D,2,FALSE)),"",VLOOKUP(A3,C:D,2,FALSE))
where 'FALSE' is indicating there has to be an exact match and the data doesn't have to be sorted.
Using INDEX with MATCH:
The F3 cell contains the Index/Match formula
=IF(ISERROR(MATCH(A3,C:C,0)),"",INDEX(D:D,MATCH(A3,C:C,0)))
where '0' is indicating there has to be an exact match and the data doesn't have to be sorted.
INDEX/MATCH preferable!?
The MATCH function finds the position (row number if whole column is used) of the found match. This way (there's another) of using the INDEX function uses exactly this found match to return a cell's value in that position (row) in ANY specified column range (column). So they are the ideal combination.
With the VLOOKUP function you have to additionally specify the column index (range_lookup) of a range which could get complicated when the columns aren't adjacent as in this case. Most importantly, the function doesn't work if the lookup data is to the right of the match data.
VLOOKUP NOT WORKING! INDEX/MATCH STILL WORKING!
try this formula
The formula in cells
B2: =INDEX(E:E,MATCH(A2,F:F,0))
C2: =INDEX(G:G,MATCH(A2,F:F,0))
MATCH(A2,F:F,0) is finding Cell A2 in column F (0 means it will find
exact match) and will return the first row number when it would find that
INDEX(E:E,MATCH(A2,F:F,0)) will return contents of column E where row number is returned by the Match formula
I need a solution for my problem. My problem is, while using "IF" we can set the output as a text, instead can we get the output as one of the cell values?
As I have about 121000 rows, it will be a hell to do it manually.
hope you guys understood the question. sample is enclosed in the image.Image
I have condition with it. If both the cells contain same value or different value, that value in the D Col has to be taken.
Adding "" to the cell value C2 or D2 like "C2" will return the cell address as a text. So your formula should be,
=IF(C2=D2,C2,D2)
I am new to using nested if functions in excel. I would like to find out what the correct functions for my excel spreadsheet.
if the pH is <7.35 and the PaCO2 is >6.00, or if the WOB is documented as a yes. I would like to the cell to return a yes response and if not the cell should return a no response.
if 6 columns in my spreadsheet all have yes responses eg a1,b1,c1,d1,e1,f1, i would like the cell in the 7th column i.e. g1 to return a yes response. however if any cell in a1,b1,c1,d1,e1,f1 has either a no , unknown or blank response , g1 should return a no response.
I would be grateful if someone could help me with this by tomorrow - as it is for a work project. Thank you
Lets assume question 1 in on one sheet and question 2 is on another for sake of example. Simply transpose to your case:
If pH is in column A, PaCO2 is in column B, and WOB is in column C, your formula would look like this =IF(OR(AND(A1<7.35,B1>6),C1="YES"),"YES","NO") and paste this in the desired column on row 1. You can copy this down for all applicable rows.
For your second enquiry, I wouldn't use a nested if statement as it restricts you to only the 6 cells you have listed. The following formula will work for as many cells as you like =IFERROR(INDEX(A1:F1,MATCH("NO",A1:F1,0)),"YES"). In this case, you would simply expand your column set for both instances of A1:F1
The nested If statements would look like this (if you choose to go that direction): =IF(A1="NO","NO",IF(B1="NO","NO",IF(C1="NO","NO",IF(D1="NO","NO",IF(E1="NO","NO",IF(F1="NO","NO","YES"))))))
I hope someone can help me.
I am trying to use specific critirea to bring back cell information.
I have some raw data on Sheet 1, and on sheet 2 I have a list of references, I want to know if those references are in my raw data on sheet 1 and if so, tell me what cell it is in.
the formula I have tried is:
=IF(Sheet1!A:A=Sheet2!A1,Cell("row"),0)
This just brings back '0' all the time, even though I know the data is in sheet 1.
Can anyone help me please?
Unfortunately you cannot compare a range to a single cell Sheet1!A:A = Sheet2!A1 in Excel without array formulas.
Instead, use the MATCH function, which returns the position of a matching cell. In your case:
`=MATCH(Sheet2!A1,Sheet1!A:A,0)`
If your search range extends in a single column (e.g.:[A1:A100]), then you could try the following, which will inform you: a) if your lookup value was not found, and b) if the value is found, it returns you in which row it was found for the first time only. That is, if the lookup value exists in more than one cells inside your search range, this function will return only the row of the first cell containing the value.
In this example, B1 is the lookup value, and A1:A10 the search range:
=IF(ISNA(MATCH(B1;A1:A10;0));"does not exist";CONCATENATE("found on row:";MATCH(B1;A1:A10;0)))
Sorry about the heading but im finding it hard to explain so ill give it my best shot.
Here is my problem
I have 3 cells: Lender, product and productID I have a vlookup that fills the lender and product cells just fine
However i want a way to bring back the productID back from another worksheet matching with lender and product.
For instance if call1 = newcastle and cell2 = 2 year fixed then cell3 = 422
I tried using a vlookup but doesnt seem to work, Any help on this would be greatly appreciated. Thanks
You can use Index and Match to perform a lookup with two criteria. Here is an example of one from http://blog.contextures.com/archives/2012/07/12/check-multiple-criteria-with-excel-index-and-match/
=INDEX($D$2:$D$10,MATCH(1,(A13=$B$2:$B$10)*(B13=$C$2:$C$10),0))
As mentioned on the site, it is an array formula so rather than just pressing enter when you use the formula, you need to hold Ctrl+Shift+Enter.
To break down how the formula is formatted:
=INDEX(a,MATCH(1,(b=c)*(d=e),0))
a = The whole range with all the data in it
b = The first criteria for the data to be filtered on
c = The range in which the first criteria needs to be searched
d = The second criteria for the data to be filtered on
e = The range in which the second criteria needs to be searched
Make sure that you use $ in the correct places as in the above example.
Another alternative to using combination of the MATCH and INDEX functions that some may find more straightforward is to first insert a column on your lookup table and concatenate the cobmination of columns you wish to search by.
=CONCATENATE(B8,C8)
Then you can still use the Vlookup function, but instead of only entering the one column to lookup on, you would combined them in the lookup so that the combination of them looks up to the combination of them on the lookup table.
=VLOOKUP(B3&C3,A9:D10,4,0)
Let's say that Newcastle is in A2 and 2 year fixed is in B2. It doesn't matter what worksheet they are on.In another worksheet named Data you have a table with a column of lenders in column X, products in column Y and product IDs in column Z. There are column labels in row 1 so the real data starts in row 2 and there are 2587 rows of data. In the first worksheet's C2 where you want the double lookup for a ProductID that matches Lende and Product try this formula.
=IFERROR(INDEX('Data'!$Z$2:$Z$9999, MIN(INDEX(ROW($1:$9998)+(('Data'!$X$2:$X$9999<>$A2)+('Data'!$Y$2:$Y$9999<>$B2))*1E99,,))), "no match")