#1   Report Post  
Laurina
 
Posts: n/a
Default Excel into word

I have an excel document, with formulae in which creates the results in % to
2 decimal points. I need to merge this info into a document in word. I've
followed the Graham Mayor suggestions in his document (found through this
site) but it's not working.

I get a syntax error with { ={mergefield"AB_2004"} * 100 \ # "0%"}. If I
take out the =} I get 0% not the result. I added 0.00% and got 0.05%, again
not the result but the right format.

Any more clues please??
  #2   Report Post  
Graham Mayor
 
Posts: n/a
Default

You didn't get that structure from my web site - at least not as you have
entered it.
It should read:

{={Mergefield AB_2004} * 100 \# "0.00%"}

for two places of decimal. Note the spaces!

What does {Mergefield AB_2004} produce on its own?

I take it that you have used CTRL+F9 for the field boundaries?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Laurina wrote:
I have an excel document, with formulae in which creates the results
in % to 2 decimal points. I need to merge this info into a document
in word. I've followed the Graham Mayor suggestions in his document
(found through this site) but it's not working.

I get a syntax error with { ={mergefield"AB_2004"} * 100 \ # "0%"}.
If I take out the =} I get 0% not the result. I added 0.00% and got
0.05%, again not the result but the right format.

Any more clues please??



  #3   Report Post  
Laurina
 
Posts: n/a
Default

Thanks for your prompt response Graham.

AB_2004 is the field name of the info in Excel. % exam pass rates (I work in
education). In Excel they display as %'s ie. 98.34%. There's lots of info
that I'm trying to formulate into a single document per subject.

I've copied your formula {={Mergefield AB_2004} * 100 \# "0.00%"} (the first
and last brackets are bold - which is presumably the field boundries) and
still get a syntax error.


"Graham Mayor" wrote:

You didn't get that structure from my web site - at least not as you have
entered it.
It should read:

{={Mergefield AB_2004} * 100 \# "0.00%"}

for two places of decimal. Note the spaces!

What does {Mergefield AB_2004} produce on its own?

I take it that you have used CTRL+F9 for the field boundaries?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Laurina wrote:
I have an excel document, with formulae in which creates the results
in % to 2 decimal points. I need to merge this info into a document
in word. I've followed the Graham Mayor suggestions in his document
(found through this site) but it's not working.

I get a syntax error with { ={mergefield"AB_2004"} * 100 \ # "0%"}.
If I take out the =} I get 0% not the result. I added 0.00% and got
0.05%, again not the result but the right format.

Any more clues please??




  #4   Report Post  
Graham Mayor
 
Posts: n/a
Default

What I wanted to know was what you get if you insert {Mergefield AB_2004}
into the document without a calculation ie the result of merging that field.

There are * two fields* and thus *two sets* of field boundaries in that
construction one around the calculation, the other around the mergefield. If
the fields are inserted by hand rather than from the toolbar, both are
inserted with CTRL+F9. I have now coloured this information in red on my web
site to draw attention to it.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Laurina wrote:
Thanks for your prompt response Graham.

AB_2004 is the field name of the info in Excel. % exam pass rates (I
work in education). In Excel they display as %'s ie. 98.34%. There's
lots of info that I'm trying to formulate into a single document per
subject.

I've copied your formula {={Mergefield AB_2004} * 100 \# "0.00%"}
(the first and last brackets are bold - which is presumably the field
boundries) and still get a syntax error.


"Graham Mayor" wrote:

You didn't get that structure from my web site - at least not as you
have entered it.
It should read:

{={Mergefield AB_2004} * 100 \# "0.00%"}

for two places of decimal. Note the spaces!

What does {Mergefield AB_2004} produce on its own?

I take it that you have used CTRL+F9 for the field boundaries?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Laurina wrote:
I have an excel document, with formulae in which creates the results
in % to 2 decimal points. I need to merge this info into a document
in word. I've followed the Graham Mayor suggestions in his document
(found through this site) but it's not working.

I get a syntax error with { ={mergefield"AB_2004"} * 100 \ # "0%"}.
If I take out the =} I get 0% not the result. I added 0.00% and got
0.05%, again not the result but the right format.

Any more clues please??



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The WordPerfect "Reveal Codes" method is so much easier to use. Torden Microsoft Word Help 8 April 19th 10 07:50 PM
Does Word have Keyboard Merges like Word Perfect does? Donnas Mailmerge 1 June 28th 05 09:30 PM
Word2000 letterhead merge BAW Mailmerge 3 June 25th 05 01:17 PM
Underscore (_) will not always display in RTF files (Word 2002). David A Edge Microsoft Word Help 6 June 14th 05 10:39 AM
is word perfect compatible with office word? Noreen Microsoft Word Help 1 May 11th 05 11:17 PM


All times are GMT +1. The time now is 02:50 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"