ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I create 2 formulas that faily more eloquently? (https://www.excelbanter.com/excel-discussion-misc-queries/221505-how-do-i-create-2-formulas-faily-more-eloquently.html)

FrozenRope

How do I create 2 formulas that faily more eloquently?
 
I have a spreadsheet where I am trying to calculate the profit margin of
individual products. In some cases I have all of the figures I require. In
other cases I am missing values (e.g. price or cost) and generate data is
does not error well.

Can you suggest formulas or method to have missing data error more
eloquently for the last 2 use cases below??

Price | Cost | Margin | % Margin
---------------------------------------
$100 $60 $40 40%
$0 $60 $-60 #DIV/0!
$100 $0 $40 100%

Any help you can offer is greatly appreciated!

FrozenRope

How do I create 2 formulas that fail more eloquently?
 


"FrozenRope" wrote:

I have a spreadsheet where I am trying to calculate the profit margin of
individual products. In some cases I have all of the figures I require. In
other cases I am missing values (e.g. price or cost) and generate data is
does not error well.

Can you suggest formulas or method to have missing data error more
eloquently for the last 2 use cases below??

Price | Cost | Margin | % Margin
---------------------------------------
$100 $60 $40 40%
$0 $60 $-60 #DIV/0!
$100 $0 $40 100%

Any help you can offer is greatly appreciated!


Fred Smith[_4_]

How do I create 2 formulas that faily more eloquently?
 
Do it this way:

=if(or(a1=0,b1=0),"",yourformula)

Regards,
Fred.

"FrozenRope" wrote in message
...
I have a spreadsheet where I am trying to calculate the profit margin of
individual products. In some cases I have all of the figures I require. In
other cases I am missing values (e.g. price or cost) and generate data is
does not error well.

Can you suggest formulas or method to have missing data error more
eloquently for the last 2 use cases below??

Price | Cost | Margin | % Margin
---------------------------------------
$100 $60 $40 40%
$0 $60 $-60 #DIV/0!
$100 $0 $40 100%

Any help you can offer is greatly appreciated!




All times are GMT +1. The time now is 10:32 PM.

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