Hi Folks..
This post is about.. speeding up array calculations..
The Use of countifs which I am gonna explain now is, I think, not known to much people (I suppose..)
If your Array construction has 4-5 criterias as in the attached example.. then you are now gonna love it..
Actually we usually use this type of construction in array formulas..
Formula:
=if((Range1=Criteria1)*(Range2=Criteria2)*(Range3=Criteria3),Row(RowRange))
In the attached file, I think, there are 5-6 such criterias, and It took me 8-12 steps (in Formula Evaluation) with a bit of hanging and excel crash, to get the answer..
Sounds bad naa...!
But My friends COUNTIFS and COUNTIF is here so you need not to worry...
If I use COUNTIFS, the above Equation will be look like this..
Formula:
=if(countifs(Criteria1,Range1,Criteria2,Range2,Criteria3,Range3),Row(RowRange))
yes, You got it right.. Criterias and Ranges shuffled their positions..
Now It will take only 2 step(in Formula Evaluation) to solve the above equation.. No Matter how many criterias are there..
what you are thinking is absolutely correct.. that is.. the array generated by (Range1=Criteria1)*(Range2=Criteria2)*(Range3=Criteria3) in first formula will always be equal to the array generated by countifs(Criteria1,Range1,Criteria2,Range2,Criteria3,Range3)..
So you can Imagine how fast excel gonna calculate it now..
you can also refer to the following link to have a detailed analysis of one of the easier examples..
http://excel-buzz.blogspot.in/2014/0...xsmall-as.html
As usual .. suggestion are always invited.. to speed up the calculations (whether array or non array.. (as our expert Mr XOR would like..))
don't hesitate .. and have a comment..
Vikas Gautam
Bookmarks