View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default calculating a sum that contains a 0 or no data

Glad I could help and thanks for the feedback

"Martin" wrote:

Sorry Mike,

I was backward calculating based on the net figure vat, my mistake.
obviousley the gross figure is the net + vat. got it now , just a bit tiered
thanks again

"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