ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Multiply with conditions (https://www.excelbanter.com/excel-worksheet-functions/195658-multiply-conditions.html)

Stuart

Multiply with conditions
 
Hi,

Would appreciate help with a worksheet formula, as follows, please:

C1 * D1 = E1

whe

a) C1 is to be rounded to 2 decimal places
b) ditto for D1
c) do not calculate if either C1 or D1 is blank
d) do not calculate if either C1 or D1 is zero
e) if either C1 or D1 has the word "item", take it as 1 number
f) E1 is to be rounded to 2 decimal places

Is this possible, please?

Regards,
Stuart.

Bob Phillips[_3_]

Multiply with conditions
 
=IF(OR(NOT(COUNT(C1)),NOT(COUNT(D1))),"",
ROUND(IF(ISNUMBER(SEARCH("item",C1)),1,ROUND(C1,2) )*IF(ISNUMBER(SEARCH("item",D1)),1,ROUND(D1,2)),2) )

--
__________________________________
HTH

Bob

"Stuart" wrote in message
...
Hi,

Would appreciate help with a worksheet formula, as follows, please:

C1 * D1 = E1

whe

a) C1 is to be rounded to 2 decimal places
b) ditto for D1
c) do not calculate if either C1 or D1 is blank
d) do not calculate if either C1 or D1 is zero
e) if either C1 or D1 has the word "item", take it as 1 number
f) E1 is to be rounded to 2 decimal places

Is this possible, please?

Regards,
Stuart.





All times are GMT +1. The time now is 05:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com