View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Martin Martin is offline
external usenet poster
 
Posts: 336
Default calculating a sum that contains a 0 or no data

Hi Mike,

Yes this worked to an extent however using these formats the vat at 10 comes
out at 1.49, it should be 1.75 so it is not calculating the vat correctly. I
also tried the calculation on 40.03 the vat comes out at 5.96 it should be
7.00, hope you can help

"Mike H" wrote:

Martin,

Your formula for calculting the VAT from the gross is incorrect. Consider
this:-

A gross of £117.5 is clearly £100 with 17.5% VAT added but using your
formula gives a vat amount of 20.56 so use this instead:-

=IF(X13=0,"",(X13/117.5*17.5))

Now to get rid of the value error use this
=IF(X13<0,X13-X14,"")

Mike





"Martin" wrote:

I am trying to create a worksheet that calculates finances over three
columns, these columns are net, vat and gross, it is designed to enter gross
amount and the vat and net figures are calculated accordingly, I can get this
to run with no problems, however if the gross cell is blank the net cell
shows a value error. I am using the IF command on the vat cell to return a
blank cell ok, but how do I get the net cell to return a blank cell if either
of the other cells are blank?

formular for vat cell is =IF(X13=0,"",X13*17.5%)
X13 is the gross cell

formular for the net cell is =X13-X14
X14 is the vat cell

if there is no data in X13 the net result shows the VALUE error as the
calculation obviously contains a blank or zero.

please help