Share via

MS Project calculation help

Anonymous
2024-11-29T09:14:04+00:00

Hi,

I'm currently doing a MS Project Beginners to Advance course on YouTube.

My issue is, we are doing a relatively simple calculation. The calculation is to create Red, Amber, Green flags for variances in costs.

I am using their example sheets, therefore should not be any issues relating to missing fields - at the very least.

I have copied their calculation verbatim per the course and it does not work.

The calculation is:

IIf([Cost Variance]>0, "X", "G")

What it is saying is:

if the cost variance is greater than 0 - if true, output an "X" for positive values.

For the G - if false, the cost variance is negative then output a "G".

I get the below error pop up every time and don't understand why?

"The formula contains a syntax error or contains a reference to an unrecognized field or function name."

Thanks

Microsoft 365 and Office | Project | For home | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2024-11-29T09:41:43+00:00

Well, that works for me in a text field. Is your formula in a custom text field?

In your country version of MSP maybe the quotes or comma separators should be other characters. Try single quotes.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2024-11-29T10:46:52+00:00

    Hi Trevor,

    Thank you.

    I changed the comma separator - to works now.

    Much appreciated.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments