Error comparing cell range with cell position in Excel - excel

I am having a little problem trying to count a range of cell.
Here is my formula: =SUM(IF($E$2:$L$263=O3,1,0)) and I'm getting #VALUE! error.
This only works if I compare it with a number value, for example: =SUM(IF($E$2:$L$263=1,1,0))
Can someone enlighten me on what I did wrong or what I'm missing?
Thanks!

Rather than use SUM and IF try using COUNTIF, it's more efficient and doesn't need "array entry"
=COUNTIF($E$2:$L$263,O3)

Related

INDIRECT FORMULA

I am having trouble working out an error I am having with the formula below, I am a bit of a novice and its been more trial and error than anything so far but, I was hoping someone with a far greater knowledge could point out where I am going wrong.
The formula works fine without the indirect element I.e.
=SUMPRODUCT((PARROT!$o$12:$o$250<>"COMPLETE")*(PARROT!$n$12:$n$250<TODAY()))
but I want to replace the sheet name with an INDIRECT address as the name of the sheet could change
so the formula I came up with is but, it has an error:
=SUMPRODUCT(INDIRECT("'"&$A3&"'!$o$12:$o$250"),"<>"&"Complete")*(INDIRECT("'"&$A3&"'!$N$12:$N$250")<TODAY())
Help would be very much appreciated.
From your formula it seems you are just counting rows where O12:O250 is not equal Complete and N12:N250 is earlier than today. So, you can use COUNTIFS() formula with INDIRECT() easily. Try below.
=COUNTIFS(INDIRECT($A$3&"!$O$12:$O$250"),"<>Complete",INDIRECT($A$3&"!$N$12:$N$250"),"<"&TODAY())
If you need to sum values from a column then SUMIFS() will be your friend.

Excel IF AND OR statement syntax issue

I’m hoping someone can help me with getting the correct syntax for this formula.
=if(and(panel_quantity>0),OR(c1:z1)<>””),”yes”,”no”)
Below is an explanation For what I want the formula to achieve.
If Panel_Quantity is greater than zero AND if and any of the cells in the range of C1:Z1 contains any text/value/formula then cell value is “yes”, otherwise “no”.
Thanks.
Try this:
=if(and(panel_quantity>0, counta(c1:z1) > 0),"yes","no")

How to get the index of first error in a range of cells?

I have a range of cells some of which may have an error. On another cell, I want the index of the cell in the range for which the first time an error occurs.
For example if my range of cells is: 1,2,3,error,error,4,5, I want the output to give me 4 because thats the index of the first error.
I was trying to use a iferror and if but I haven't found a solution yet. Does anyone know how to go about this?
There's probably a non-CSE solution to this, but here's an option:
=MATCH(TRUE,ISERROR(A1:A7),0)
Confirm the formula with Ctrl+Shift+Enter.

Excel formula doesn't work on formula results

I have a range of numbers (Y6:AC6) which are obtained as a function of =RIGHT(Text,Num) formula. When I try to apply COUNTIFS formula on these numbers which you can see on the picture, it doesn't work. However, when I try the same formula on actual numbers, but not functional results of RIGHT(Text,Num), it works. What am I missing here? can someone help me please? thanks.

How to SUMPRODUCT cells that contain formulas

So, what I need is to show SUMPRODUCT of two cell ranges? Both of these cell ranges, that is, each cell contains formula in it. From this formulas I get some number in the cells. This is the way I'm doing it right now:
=SUMPRODUCT((S7:S1000)*(T7:T1000))
and because of formulas I get error A value used in the formula if of the wrong data type
How could I solve this problem? Is there some kind of way to read just number in the cell and not the formula?
Thanks
Replace the "*" with a comma (",").
I've had so much problems with this and in the end it was that instead of comma(",") I needed to use semicolon(";"). Maybe its up to Excel version, I'm using 2010?! So, solution was:
=SUMPRODUCT(S7:S1000;T7:T1000)

Resources