
Signature
Peter Jamieson
http://tips.pjmsn.me.uk
Peter,
thanks for the advice. I went back and rearranged the lay-out to a table, so
now the "From | To | Percentage | Total" is on top and I don't have to worry
about it anymore. So now all I need is to tell Word that if it receives a 0,
the field should stay empty.
The total field code in the four cells is this:
Cell 1: {Mergefield "Start_Range_3" \# ###,0}
Cell 2: {Mergefield "End_Range_3" \# ###,0}
Cell3: {={Mergefield Percentage_3}*100 \# "0.00%"}
Cell4: {Mergefield "Possible_Bonus_Amount_Range_3" \# £###,0}
Of course I have the same fields for Ranges 1 and 2.
Looking at your function, I was thinking to use somthing along the lines of:
{ IF { ={ MERGEFIELD Start_Range_2 \#0} } = 0 "" (and this is where I don't
know any further:) ELSE { MERGEFIELD Start_Range_2 \#0 }.
I would then just repeat this process in all merge-cells. So how can I write
it so that word understands IF MERGE_CELL=0, DISPLAY "", DISPLAY "MERGEFIELD
Start_Range_2"?
Many thanks!
> In this case you may be able to use something like
>
[quoted text clipped - 32 lines]
> >
> > Any help is greatly appreciated. Cheers!
Peter Jamieson - 27 Nov 2007 14:21 GMT
If you are just displaying numbers or blanks, you should be able to use the
numeric field switches (this stuff's in the Word Help file, or used to be)
to do this:
{ MERGEFIELD fieldname \#"p;n;z" }
where p is the format you want for positive values, n is the format for
negative values and z is the format for 0.
e.g.
{ MERGEFIELD fieldname \#"£,0.00;(£,0.00);" }

Signature
Peter Jamieson
http://tips.pjmsn.me.uk
> Peter,
>
[quoted text clipped - 69 lines]
>> >
>> > Any help is greatly appreciated. Cheers!
cpeiner - 27 Nov 2007 15:39 GMT
Peter,
this is exactly what I was looking for. The Word helpfile was the first
place I looked but either I was unable to search for the correct words or the
Help function was being elusive. Eithe way, thanks for this!
Cheers!
> If you are just displaying numbers or blanks, you should be able to use the
> numeric field switches (this stuff's in the Word Help file, or used to be)
[quoted text clipped - 4 lines]
> where p is the format you want for positive values, n is the format for
> negative values and z is the format for 0.