Hi Paul ,
First , every formula can be entered using CTRL SHIFT ENTER ; if the formula is not an array formula , it makes no difference , and the resulting value will be correct. If the formula is an array formula , it makes a difference , and the resulting value will be correct.
If you do not want to take this approach , there are two ways to detect when an array formula is in place , and therefore entering it requires the use of CTRL SHIFT ENTER.
I will take a contrived example to illustrate the procedure.
Suppose we have a list of numbers , in the range E5:E11 ; I will name this range List. Let us assume that the following numbers have been entered in this range :
2 , 3 , 5 , 3 , 7 , 6 , 2
Now , suppose we want to count the number of even numbers in this range ; there are obviously simpler formulae which will do this , but since I want to illustrate the point about array formulae , I will take the following formula :
=SUM(IF(MOD(List,2) = 0,1))
Enter the above formula in any cell ; you should see the displayed value as the error value #VALUE! ; an error value can be either because the formula is returning an error value , or because Excel is unable to display the correct value ; in this case , it the latter.
To know this , place the cursor in the cell containing the formula , and press F2 F9 ;you should see the number 3 , signifying that there are 3 even numbers in the above range.
Now , press F2 to enter edit mode , and then enter the formula by pressing CTRL SHIFT ENTER ; the cell will now display the correct value of 3.
Thus , using F2 and F9 , we can examine the real value , and it may be possible , though this is not true in every case , that entering the formula using CTRL SHIFT ENTER will return the correct value.
Now , for the second method.
With the cursor in the cell containing the formula , click on the Evaluate Formula button in the Ribbon.
As you step through the process by clicking the Evaluate button repeatedly , you will see that nowhere are the values in the range being used to arrive at the result.
After exiting the process , enter the formula using CTRL SHIFT ENTER , and now again go through the Evaluate Formula process ; this time , you should see all the values in the range being used to arrive at the correct result.
We need to be aware that an array formula which has not been entered using CTRL SHIFT ENTER , need not always display the #VALUE! error value thus alerting us to this possibility.
For example , if I slightly modify the above formula , as follows :
=SUM(IF(MOD(N(List),2) = 0,1))
and enter the formula without using CTRL SHIFT ENTER , the cell containing the formula will display 1 ; however , do not be fooled into thinking that this is the correct result.
If you go through the Evaluate Formula process , you will see that the formula evaluation does not use the numbers in the range ; instead , it is using only the first number in the range.
Now , enter the formula using CTRL SHIFT ENTER , and go through the formula evaluation process once more ; this time , you should see all the numbers being used to arrive at what will be the correct result.
Narayan