I have a user who would like to merge data from an Excel workbook to a Word document. It all works well, but here’s the kicker. She would like to merge only the rows that have figures that are not zero. She has a title for the Row in the Word merge document but would only like it to appear if the amount is a number. For example. Letter One: Hornbrook Fire District {Merge Data) [return] Weed Fire District [ tab] {Merge Data) [return] etc. Letter Two: Scott Valley Fire District {Merge Data) [return] Hornbrook Fire District {Merge Data) [return]. In other words a letter may have three lines or it may have only two; the Excel workbook has many rows to select from for each merge. Got any ideas? Will it require Visual Basic or can it even be done? Thanks in advance!
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Merge from Excel with Special Requests (Word 2000)
Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Merge from Excel with Special Requests (Word 2000)
- This topic has 4 replies, 3 voices, and was last updated 21 years, 10 months ago.
AuthorTopicWSjcrawfor
AskWoody LoungerJuly 15, 2003 at 7:33 pm #390500Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody Lounger -
WSjcrawfor
AskWoody LoungerJuly 16, 2003 at 3:08 pm #694080Thanks Hans, but I was aware of that possibility. What I really want is for the entire line, even the label for the field not to appear when there’s a zero amount. For example one merged letter might have four lines, another only two, and if all appeared there might be eight or so. I think Phil’s comment about the IF is what I need. Thanks for your help.
-
-
WSPhil Rabichow
AskWoody LoungerJuly 16, 2003 at 12:37 am #693846Hi Judy:
Just to add something to Hans’ suggestion. It’s not clear to me if you want to leave out just the merge data (in which case the wizard will work fine) or leave out the entire line. In the latter case, you will need a nested IF field. Something like:{ IF “{Mergefield Data} 0” “[return]{Mergefield FirestationName}[tab]{Mergefield Data}” “” }
where the curly brackets are not typed, they are inserted by pressing Ctrl+F9. Also, the [return] & [tab] are actual returns & tabs. By including the return & tab within your IF field, you eliminate the line when the data = 0, & start a new line when it isn’t. See post 273185 for some tips on inserting IF fields.
Hope this helps, -
WSjcrawfor
AskWoody LoungerJuly 16, 2003 at 3:11 pm #694081Thanks Phil, you’ve got it. I want to leave out the entire row (not just the merged field) if the amount to be merged is zero. So some letters might have just two rows others more and if all rows were included it might mean eight or so. I will check out your suggested upon my return from an appointment. Thanks for your response.
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
45 minutes ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
3 hours, 27 minutes ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
6 hours, 13 minutes ago -
Windows Update orchestration platform to update all software
by
Alex5723
10 hours, 46 minutes ago -
May preview updates
by
Susan Bradley
12 hours, 24 minutes ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
20 minutes ago -
Just got this pop-up page while browsing
by
Alex5723
2 hours, 58 minutes ago -
KB5058379 / KB 5061768 Failures
by
crown
2 minutes ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
5 minutes ago -
At last – installation of 24H2
by
Botswana12
1 day, 2 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
27 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
1 day, 14 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 7 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
2 days, 3 hours ago -
Another test post
by
gtd12345
2 days, 4 hours ago -
Connect to someone else computer
by
wadeer
1 day, 22 hours ago -
Limit on User names?
by
CWBillow
2 days, 1 hour ago -
Choose the right apps for traveling
by
Peter Deegan
1 day, 15 hours ago -
BitLocker rears its head
by
Susan Bradley
23 hours, 31 minutes ago -
Who are you? (2025 edition)
by
Will Fastie
22 hours, 27 minutes ago -
AskWoody at the computer museum, round two
by
Will Fastie
1 day, 17 hours ago -
A smarter, simpler Firefox address bar
by
Alex5723
2 days, 14 hours ago -
Woody
by
Scott
2 days, 23 hours ago -
24H2 has suppressed my favoured spider
by
Davidhs
23 hours, 7 minutes ago -
GeForce RTX 5060 in certain motherboards could experience blank screens
by
Alex5723
3 days, 14 hours ago -
MS Office 365 Home on MAC
by
MickIver
3 days, 7 hours ago -
Google’s Veo3 video generator. Before you ask: yes, everything is AI here
by
Alex5723
4 days, 4 hours ago -
Flash Drive Eject Error for Still In Use
by
J9438
22 hours, 52 minutes ago -
Windows 11 Insider Preview build 27863 released to Canary
by
joep517
4 days, 22 hours ago -
Windows 11 Insider Preview build 26120.4161 (24H2) released to BETA
by
joep517
4 days, 22 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.