The items delimited by <> are meant to be replaced by your code, I can't tell how you get the initial value of cell C6 into a variable.
You don't need
Code:
if (C6>=500) {
C6 * 0.9 : "";
}
The variable 'result' holds the correct value, you need to put that into your column.
--
Joe (
Microsoft MVP - XML)