Hi all, I am always confused as to what Excel is doing when putting array arguments into an IF function. for example, if i have the following 2 arrays:
Array A:
1, 2
3, 4
5, 6
Array B:
I, II, III
ref cell <--to input a number for comparison
and if I have the following formula:
=IF ( ref cell = Array A, Array B) <--Let's just assume the false situation is omitted here
If the ref cell is 5, theorectically the comparison will give the following True/False array:
False, False;
False, False;
True, False
So for the only True case above, does Excel just display the array "I, II, III" ?
I know for a fact that if the size of array B is "I, II", it will really display result in the corresponding position, if the comparison argument is True, i.e. if any of the 1, 3, 5 is true, the result will be I, if any of the 2, 4, 6 is true, the result will be II.....I am sorry if I am expressing myself in a confusing way....
Do the "dimentions" of Array A and Array B have to follow some kind of rules so that IF function can work normally?
Array A:
1, 2
3, 4
5, 6
Array B:
I, II, III
ref cell <--to input a number for comparison
and if I have the following formula:
=IF ( ref cell = Array A, Array B) <--Let's just assume the false situation is omitted here
If the ref cell is 5, theorectically the comparison will give the following True/False array:
False, False;
False, False;
True, False
So for the only True case above, does Excel just display the array "I, II, III" ?
I know for a fact that if the size of array B is "I, II", it will really display result in the corresponding position, if the comparison argument is True, i.e. if any of the 1, 3, 5 is true, the result will be I, if any of the 2, 4, 6 is true, the result will be II.....I am sorry if I am expressing myself in a confusing way....
Do the "dimentions" of Array A and Array B have to follow some kind of rules so that IF function can work normally?