Validation procedure...

  • Thread starter Thread starter Neo1
  • Start date Start date
N

Neo1

Hello I have a problem with a validation procedure I want t
perform...Basically I have the following:

Amount Bought , Amount Sold, Buying price, Selling Price, Profit

Obviously the largest profit I could get is (Amount Sold x Sellin
price) - (Amount Bought x Buying price)...How can I do a validatio
procedure so that if for some reason the profit is larger than this i
shows an error?

Thanks a lot
From Joh
 
John

try something like:

=IF(Profit > AmountSold * (SellingPrice - BuyingPrice), "Check","")

Regards

Trevor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top