
Use the PRODUCT function to multiply
conditional values
In this example, values are listed in columns A and B. Excel should
calculate the product of each value in a row but only if both values
exist. If one value is missing, the result is an empty cell, as shown
in column C. To get the desired results, use the PRODUCT func-
tion in combination with the IF and OR functions as described
below.
4
To multiply conditional values:
1. In cells A2:A10 enter some numbers for value 1.
2. In cells B2:B10 enter some numbers for value 2.
3. Select cells C2:C10 and type the following formula:
=IF(OR(A2="",B2=""),"",PRODUCT(A2,B2)).
4. Press <Ctrl+Enter>.
Note: The following ...