Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2014, 03:14 AM
Debs Debs is offline Mailmerge certain text using multiple if statements Windows 7 32bit Mailmerge certain text using multiple if statements Office 2007
Novice
Mailmerge certain text using multiple if statements
 
Join Date: Jun 2014
Posts: 3
Debs is on a distinguished road
Default Mailmerge certain text using multiple if statements


Hi,

I am trying to produce personalised feedback letters for a group of students. In my Excel document is the list of students and their 16 scores going across. There is a different threshold for each of the 16 scores. I have a Word document which has text related to each feedback score. If any of their scores are over the threshold then they should get a paragraph related to that score. Therefore every single student is different. E.g student 1 is above the thresholds for score 1, score 3 and score 14 but student 2 is above the thresholds for score 2, score 5 and score 14.

I've tried it through the rules doing Rule 1 if Score 1 is greater than 3 then insert text. And added another rule if Score 2 is greater than 4 then insert text. But I think there is a Word limit on the text you can insert. It also seems that I can only insert 2 rules when I need to insert 16. I have also been looking at nested IF fields and multiple conditions but getting confused!
Sorry if I've not explained this very well. Be grateful for anyone's help
Reply With Quote
  #2  
Old 06-19-2014, 03:21 AM
macropod's Avatar
macropod macropod is offline Mailmerge certain text using multiple if statements Windows 7 32bit Mailmerge certain text using multiple if statements Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Word can support quite elaborate field nesting, but it's not even apparent that's needed here. For your 16 levels, you could have 16 stand-alone IF fields, coded like:
{IF«Score1»= 1 "Text for Score1 1"}{IF«Score1»= 2 "Text for Score1 2"}{IF«Score1»= 3 "Text for Score1 3"}, etc.
{IF«Score2»= 1 "Text for Score2 1"}{IF«Score2»= 2 "Text for Score2 2"}{IF«Score2»= 3 "Text for Score2 3"}, etc.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 06-19-2014, 03:25 AM
Debs Debs is offline Mailmerge certain text using multiple if statements Windows 7 32bit Mailmerge certain text using multiple if statements Office 2007
Novice
Mailmerge certain text using multiple if statements
 
Join Date: Jun 2014
Posts: 3
Debs is on a distinguished road
Default

Thanks Paul, so do I put the text for the 16 scores in the excel document?
Reply With Quote
  #4  
Old 06-19-2014, 03:30 AM
macropod's Avatar
macropod macropod is offline Mailmerge certain text using multiple if statements Windows 7 32bit Mailmerge certain text using multiple if statements Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You don't! You put them in the IF fields in Word - where the "Text for Score1 1", etc. is indicated.

PS: The IF field and conditions can be input via the 'Rules' dropdown.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 06-19-2014, 03:34 AM
Debs Debs is offline Mailmerge certain text using multiple if statements Windows 7 32bit Mailmerge certain text using multiple if statements Office 2007
Novice
Mailmerge certain text using multiple if statements
 
Join Date: Jun 2014
Posts: 3
Debs is on a distinguished road
Default

Thanks Paul! Sorry for confusion. I'm new to this!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailmerge certain text using multiple if statements Multiple If statements, Jamal NUMAN Excel 16 11-15-2022 11:59 PM
Multiple If statements bremen22 Excel 2 10-15-2013 06:37 AM
Mailmerge certain text using multiple if statements Mailmerge to Email with a mailmerge attachment Baldeagle Mail Merge 8 02-11-2013 04:40 AM
Mailmerge certain text using multiple if statements Mailmerge to Email with a mailmerge attachment Baldeagle Mail Merge 13 05-29-2012 02:04 PM
Mailmerge certain text using multiple if statements How do you add text to email mailmerge? DerekScambler Mail Merge 10 04-19-2011 05:30 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft