Contingency

D

Doug Holtz

I want to fill in a percentage in a field marked Contingency ____% and have
that calculate out fields to the right. This is what I have so far:
=IF(OR(SUM(C28:D28)=0,SUM(C27:D27)=0),"Contingency ____
%",TEXT(SUM(C28:D28)/SUM(C27:D27),"0%")&"
This is field B28. There are subtotals in C27 and D27. Totals for the
sheet are in C29 and D29.
What should happen in fields C28, D28, C27, and D27?
Currently when I put in a % in the contingency, nothing happens. If I put
in a number in the C28 field I get a % calculation in the B28 contingency
field.
tnx
doug
 
B

Bernie Deitrick

Doug,

Try:

=IF(AND(SUM(C28:D28)<>0,SUM(C27:D27)<>0),"Contingency is " &TEXT(SUM(C28:D28)/SUM(C27:D27),"0%"),"")

HTH,
Bernie
MS Excel MVP
 
D

Doug Holtz

Bernie;

Thank you for the reply. I tried your formula revision and it calculates.
I'll give it to the user and see if it solves the problem I had.

Doug
 

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

Top