Technical Discussion
  >> Windows Issues


Register (or login) on our website and you will not see this ad.


Pages in this thread: 1 | 2 | [3] | (show all)   Print Thread
Standard User cheshire_man
(knowledge is power) Tue 04-Feb-14 13:35:49
Print Post

Re: Excel (2010) formula sought


[re: camieabz] [link to this post]
 
In reply to a post by camieabz:
Bibles? F1 wink
Excel Bible

Not sure what your F1 reference is to [confused

Tony
We have more and more laws, and less and less enforcement
Standard User camieabz
(sensei) Tue 04-Feb-14 13:49:16
Print Post

Re: Excel (2010) formula sought


[re: cheshire_man] [link to this post]
 
Open Excel and hit F1. smile
Standard User cheshire_man
(knowledge is power) Tue 04-Feb-14 13:58:15
Print Post

Re: Excel (2010) formula sought


[re: camieabz] [link to this post]
 
Doh! blush And there's me thinking motor racing ooo

And to quote from the Help
You cannot use the AND and OR functions in array formulas directly because those functions return a single result, either TRUE or FALSE, and array functions require arrays of results. You can work around the problem by using the logic shown in the previous formula. In other words, you perform math operations, such as addition or multiplication, on values that meet the OR or AND condition.
Nevertheless I still like paper books so that I can browse without having to stare at a screen. Ok, so call me old-fashioned grin

Tony
We have more and more laws, and less and less enforcement


Register (or login) on our website and you will not see this ad.

Standard User cheshire_man
(knowledge is power) Thu 06-Feb-14 10:37:55
Print Post

Re: Excel (2010) formula sought


[re: camieabz] [link to this post]
 
A bit of playing around has given me another 2 ways (albeit both much the same) to achieve the same result without using nested IFs.

The original formula was
=COUNT(IF(YEAR(Dates)=YEAR(J$39),IF(MONTH(Dates)=MONTH(J$39),IF(DegreesF>$AH42,IF(DegreesF<$AH43,1)))))

the first alternative is
=SUMPRODUCT((YEAR(Dates)=YEAR(J$39))*(MONTH(Dates)=MONTH(J$39))*(DegreesF>$AH42)*(DegreesF<$AH43))

and a slight variation, entered as an array formula, is
=SUM((YEAR(Dates)=YEAR(J$39))*(MONTH(Dates)=MONTH(J$39))*(DegreesF>$AH42)*(DegreesF<$AH43))

Tony
We have more and more laws, and less and less enforcement
Standard User camieabz
(sensei) Thu 06-Feb-14 14:28:13
Print Post

Re: Excel (2010) formula sought


[re: cheshire_man] [link to this post]
 
I imagine an experienced pivot table user would get the desired info far quicker. Pivot tables are not my thing, but it seems to be a PT scenario.
Pages in this thread: 1 | 2 | [3] | (show all)   Print Thread

Jump to