I am trying to build a rank formula that ignores errors.
I've tried:
=Rank(BN4,(if(iserror(BQ4:BQ31),"",BQ4:BQ31)))
I've also Tried:
=IF(ISERROR($BQ$4:$BQ$31),"",1+SUMPRODUCT($BP$4:$BP$31=BP4,$BQ$4:$BQ$31>BQ4))
Is There something wrong with the formula? Is there a better way? See image below, the rank formula appears in Col BN. Thanks!
]1
Given the spreadsheet below:
You can use the following formula on C2 and drag it:
=IF(ISERR(A2),"",COUNTIF($A$2:$A$7,">"&A2)+1)
I think this is what's going on: in your second formula, your Sumproduct is still calculated with the errors. Although the first part your formula tells Excel to return a Blank when calculating the rank of an ERROR, the errors are stil inputted into second part where you actually calculate the rank, and thus Excel will spit out an Error even if it's calculating the rank of a regular number
The formula provided by Lucas above is probably the simplest way. If you must use sumproduct, you should include something in your sumproduct that tells excel to use a blank value if it comes across an error when calculating the some product.
For example, if you're trying to do the sumproduct of A1:A4 and B1:4 but the both ranges have some errors, then you'd use:
=SUMPRODUCT(IF(ISNA(A1:A4),0,A1:A4),IF(ISNA(B1:B4),0,B1:B4))
Related
I need help in my formula, I'm getting #VALUE!.
I have 2 sheets, I need to get the data using 2 values, So I've searched and the solution is to use the INDEX and MATCH Function. I've tried that in my formula but I think I'm doing it wrong.
I have 3 columns in my Main Sheet,
In the column Total Amount I need to insert the formula.
And this is my 2nd sheet. 3 columns also.
And this is the formula that I've used,
=INDEX(Q9:Q13,MATCH(O19&P19,O9:O13&P9:P13,0))
I've tried to check using evaluate formula and I'm getting #Value! I don't know why.
Any Ideas?
Thanks!
I think SUMIF() would be best fit for you in this case. Try below formula.
=SUMIFS(Sheet2!$Q$8:$Q$13,Sheet2!$O$8:$O$13,A1,Sheet2!$P$8:$P$13,B2)
You can also use SUMPRODUCT() like below.
=SUMPRODUCT((Sheet2!$Q$8:$Q$12)*(Sheet2!$O$8:$O$12=A2)*(Sheet2!$P$8:$P$12=B2))
In excel, I was trying to get fund value of a particular mutual fund by using VLookup to search another sheet. In the process, I am getting N/A error even if the VLookup formula seems correct.
The below screenshot is of the sheet with the VLookup excel formula:
Is there any issues with the vlookup formula that I am using here.
=VLOOKUP(D4,Sheet1!$A$5072:$E$5075,5,FALSE)
I have tried many version of the vlookup but to no avail. Could anyone please help? Thanks!
Cleaning the data is the best option, so that both values are either all text, or all numbers.
But a quick and dirty work aroubd would be to use to convert the text to numbers
=INDEX($E$5072:$E$5075,MATCH(D4,VALUE($A$5072:$A$5075),0))
or
=XLOOKUP(D4,VALUE($A$5072:$A$5075),$E$5072:$E$5075,,0,1)
Agree with Chris Neilsen that this is most likely a case of different formatting between the lookup item vs lookup array. The left alignment implies that both are formatted as text. Given this, just double check that both indeed are formatted as text vs. someone left-aligning a column of numbers.
Let us know if that doesn't solve the problem and we can walk you through replacing this formula with an Index+Match formula.
I have a list of surfaces with a certain type, and I need the total of each type. I tried with VLOOKUP function but it only gives me the first result. I tried with this answer on another question, but it's too complex to get it working for me.
in cell H4 I have this function:
=VLOOKUP(G4;$D$2:$E$11;2;FALSE)
Thanks for your time.
You need SUMIF formula and not VLOOKUP like below.
=SUMIF($D$2:$D$11;G4;$E$2:$E$11)
Copy down.
I have a question regarding COUNTIFS. The simple boiled down version of what I am trying to do is this:
I am trying to use COUNTIFS to count the number of entries that the cell in a column is either blank or in the future (greater than today) and that is marked with an “X” in another column.
There are several other renditions in the formula but if I can get this, I can get the rest. So far, I have this:
=SUM(COUNTIFS($C$2:$C$50,{"";">"&TODAY()},$E$2:$E$50,"X"))
Excel won’t let me return out of the formula and highlights the quotation mark following the greater than symbol.
=SUM(COUNTIFS($C$2:$C$50,{"";">100"},$E$2:$E$50,"X")) works fine when I play around and test things but when I try to add in &TODAY() or reference a cell, things go sideways.
Any suggestions as to what I am doing wrong? The actual formula is quite long and there are several comparisons that are made between columns. I've seen some references to using SUMPRODUCT but haven't been able to figure it out that way either.
You can use a formula to generate the criteria array, i.e.
=SUMPRODUCT(COUNTIFS($C$2:$C$50,IF({1;0},"",">"&TODAY()),$E$2:$E$50,"X"))
I used SUMPRODUCT in this version because with SUM you'd need CTRL+SHIFT+ENTER
The IF function generates an array that resolves to something like this:
{"";">43060"}
I have been working on this formula for the last 40 minutes and I can't really figure out where I'm doing wrong. I would really appreciate the community's help.
I have provided a screen shot below.
For some reason the formula is only taking the first instance of the currency provided in "column O:O" and it is not adding up the multiple instances of the matching months and year. I tried putting SUM in the formula but I got an error.
INDEX/MATCH And VLOOKUP will only return the first instance.
You will need to use SUMPRODUCT() to return what you want:
=SUMPRODUCT((MONTH(D17)=MONTH($M$2:$M$6))*(YEAR(D17)=YEAR($M$2:$M$6)),$O$2:$O$6)
Note: SUMPRODUCT is an Array Type formula an thus the cell references should include only those that have data and avoid full column data.