B
Bob
Hi,
I can't get my array formula to work properly. I see this problem in both
Excel 2003 and 2007.
The data fields are as follows:
A1: 1
A2: 2000
B1: GB
B2: MB
The formula is: {=SUM(IF(B1:B2="MB",A1:A2/1000,A1:A2))}
The result is: 3 (as it should be)
But if I should change the values in cell A1:A2 from numeric's to text, the
result should change to zero as text can not be added. But this is not what
happens. Instead, cell A1 is not added (as it should not be), but cell A2
is somehow treated as a numeric and is added to the result!
Example:
A1: '1
A2: '2000
(note the apostrophe thus making these cells text).
The result here is: 2 (it should be zero)
Any idea what I'm doing wrong?
I can't get my array formula to work properly. I see this problem in both
Excel 2003 and 2007.
The data fields are as follows:
A1: 1
A2: 2000
B1: GB
B2: MB
The formula is: {=SUM(IF(B1:B2="MB",A1:A2/1000,A1:A2))}
The result is: 3 (as it should be)
But if I should change the values in cell A1:A2 from numeric's to text, the
result should change to zero as text can not be added. But this is not what
happens. Instead, cell A1 is not added (as it should not be), but cell A2
is somehow treated as a numeric and is added to the result!
Example:
A1: '1
A2: '2000
(note the apostrophe thus making these cells text).
The result here is: 2 (it should be zero)
Any idea what I'm doing wrong?