Format Value within iif statement

A

alecgreen

Hi

I have this formula - Margin%: IIf([value]=0,"****",([Value]-
[StdCost])/[Value]*100), and I want to format the result (if not zero)
to 2 decimal points.

Mant Thanks

Alec
 
P

pietlinden

Hi

I have this formula - Margin%: IIf([value]=0,"****",([Value]-
[StdCost])/[Value]*100), and I want to format the result (if not zero)
to 2 decimal points.

Mant Thanks

Alec

use the Format function inside your expression.
 
D

Dennis

A

alecgreen

Margin%: IIf([value]=0,"****",Format(([Value]-[StdCost])/[Value]*100,"0.00"))



alecgreen said:
Hi
I have this formula - Margin%: IIf([value]=0,"****",([Value]-
[StdCost])/[Value]*100), and I want to format the result (if not zero)
to 2 decimal points.
Mant Thanks
Alec
use the Format function inside your expression.
not sure how to do this, could you explain further please!- Hide quoted text -

- Show quoted text -

Thanks for that, works a treat!
 

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