=SUMPRODUCT(--(AD$2:AD$381=1.60),--($G$2:$G$381="H"))
Well i don't understand it either because the formula is right there. I was going crazy over this last night, so today i bought Excel 2007, so i could use
=COUNTIFS(X2:X381;1.60;G2:G381;"H")
Instead.
And guess what, i got the same result with this formula, No values for the last odds, approximately 2.30:2.40.
Then as you can see on the file i attached earlier, i didn't write in the odds (like i bolded in the code) instead of writing "=1.60" and so on. I listed the odds in one column and used ie COUNTIFS(X2:X381;=B386;G2:G381;"H") instead so i didnt have to manually write the odds in every formula.
Well, when i changed the formula to manually write the odds, THEN it worked, and now it is correct. So i had to write 1.60 to 2.40 in every formula, the first column manually. Then it worked.
BUT i didn't get any smarter by WHY it worked then because if ie cell A1=1.60
then =A1 , and =1.60 is the exact same. And i can't stand things that are unlogical:P
If you note your COUNTIF in M is not using value in A - if it were you would have noticed the problem - this is a good demo as to why it's always a good idea to keep things consistent - ie anything needing to refer to odds etc should refer to the same cell (don't mix references or approaches as this can lead to inconsistencies).
What did you mean by this? I'm sorry, my english aren't explicit
Bookmarks