Columns A & B contain numbers as well as empty cells.
We want to be able to multiply each number in column A with the matching number in Column B without getting false results or errors.
Solution:
Use IF, AND and ISNUMBER functions in the following formula:
=IF(AND(ISNUMBER(A2), ISNUMBER(B2)),A2*B2," ")
Ignoring Blank Cells when Performing Calculations
gms_nm wrote on December 08, 2005 00:35 EST
This formula is more useful when the cell has a non numeric entry, say a text entry. In which case but for this formula it would have given a result "#VALUE!"
Which would have meant one could not sum the value up.
If the cell is blank, without the formula it would give a result "0", with the formula it returns with a blank text entry.
This forumla is more appropriate termed as "ignoring text cells when performing calculations"
Formula-error
Harager wrote on December 31, 1969 18:00 EST
I found out that in above written formula there was made a mistake, it should be :
IF(AND(ISNUMBER(A2);ISNUMBER(B2)); A2*B2; " ")
where between ISNUMBER(A2) and ISNUMBER(B2) there should be ';' and not ','
With friendly greetings,
Harager
No replace for #Value?
Moshe wrote on December 31, 1969 18:00 EST
Is there no way to request #Value to be replaced with an empty string?
Terms
and Conditions of use
The applications/code on this site are distributed as is and without warranties
or liability. In no event shall the owner of the copyrights, or the authors
of the applications/code be liable for any loss of profit, any problems
or any damage resulting from the use or evaluation of the applications/code.