How to build conditional text from a data merge

Hi there
I'm hoping this is not a long shot but I do have a rather large ask (I think). 
I cannot figure out how to create conditions on values.
We have two areas that require conditional text. See these areas on the attached image. 
Features offered - up to 6.  These are identified by defining each feature with a letter, eg 'n' stands for tent site and 'L' stands for seasonal work,  and
Room type offered - four colour codes with this. These range from "not made up", "made up", "ensuite/madeup" and "ensuite".
The tab delimited file contains numerous columns for each room type - single, double, twin, share and dorm rooms that offer the 4 room type categories - see point 2 above. 
I cannot figure out how to clarify the conditions I require for the conditional text.
Do I start with making 4 conditions for each room type colour and so-on for the rest of the room types ie single not madeup, single madeup, single madeup ensuite and single ensuite? 
And if so, how do I create these using the correct conditional code?   Does GREP have anything to do with this and do I need to use its metacharacters like \?
Can someone perhaps start me off?
The same goes for the features.  The features are displayed in the spreadsheet per column with either a 'yes' or a 'no' displayed.
I hope I have provided enough information to get some assistance.
Thanks so much.

Tag Design wrote:
Hi there
I'm hoping this is not a long shot but I do have a rather large ask (I think). 
I cannot figure out how to create conditions on values.
We have two areas that require conditional text. See these areas on the attached image. 
Features offered - up to 6.  These are identified by defining each feature with a letter, eg 'n' stands for tent site and 'L' stands for seasonal work,  and
Room type offered - four colour codes with this. These range from "not made up", "made up", "ensuite/madeup" and "ensuite".
The tab delimited file contains numerous columns for each room type - single, double, twin, share and dorm rooms that offer the 4 room type categories - see point 2 above. 
I cannot figure out how to clarify the conditions I require for the conditional text.
Do I start with making 4 conditions for each room type colour and so-on for the rest of the room types ie single not madeup, single madeup, single madeup ensuite and single ensuite? 
And if so, how do I create these using the correct conditional code?   Does GREP have anything to do with this and do I need to use its metacharacters like \?
Can someone perhaps start me off?
The same goes for the features.  The features are displayed in the spreadsheet per column with either a 'yes' or a 'no' displayed.
I hope I have provided enough information to get some assistance.
Thanks so much.
Maybe I'm missing something, but I can't see why you need conditional text. I can see that you may want to color each property in each category differently, to stand out for quick visual communication.
If each feature (attribute) of each property or venue is represented in one spreadsheet row (record,) you can use data merge to create the whole entry for each property. For example, a property may offer two types of rooms - single and double, and the single may be available as "not made up" only, while the double is available as "ensuite/madeup" and "ensuite."
In the spreadsheet, in the row for the Acme Inn property, which only offers single not-made-up and single ensuite/madeup rooms, and for the Ajax Hotel property which offers single made-up, single ensuite/madeup, and single ensuite rooms, the cells that contain the data for the merge fields would look like this:
Property ID
single not-made-up
single made-up
single ensuite/madeup
single ensuite
Acme Inn
$50
empty cell
$75
empty cell
Ajax Hotel
empty cell
$65
$75
$85
On the data-merge layout, each room type's label would be followed by all four data-merge field placeholders, with colors applied, so the single would look like:
Sgle: <<single not-made-up>> (red) <<made-up>> (yellow) <<ensuite/madeup>> (green) <<ensuite>> (blue)
NOTE: The colors are applied with named character styles to the data-merge layout in InDesign.
[EDIT] BAH! I applied colors to the text when composing this post, but they were removed when I posted. [/EDIT]
When you set up the merge with Remove Blank Lines for Empty Fields enabled (checked) so the empty cells are ignored, the result resembles this:
For the Acme Inn:      Sgl: $50 (red) $75 (green) $85 (blue)
For the Ajax Hotel:    Sgl: $65 (yellow) $75 (green) $85 (blue)
The separator character between the prices in your example is a special issue. It could be solved in the spreadsheet by creating calculated columns between the price columns, with "IF" formulas that test for values or empty cells and display the separator or nothing. If you choose this method, you'd need to insert fields between the placeholder fields, to hold the calculated fields' contents.
Another approach here would be to follow the data-merge process with a GREP script that inserts separators where they're needed.
Search Google for terms like "InDesign data-merge tutorial," "InDesign data-merge remove blank lines," "InDesign multiple records per page," and similar phrases without quotes.
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices
Message was edited by: peter at knowhowpro

Similar Messages

  • How do I concatenate text from a date?

    In excel I have the following formula:
    =CONCATENATE("Ref: RVG ",TEXT(J4,"ddmmyy"))
    I found in the Numbers Help that T() should retrieve text from a cell, but whether I try T(J4) or T(J4,"ddmmyy") etc it either gives an error or is blank (J4 contains a date).
    Any ideas whether or how this can be done in Numbers?

    Here's a visual showing the problem. T(Date) returns nothing.
    How about this?
    Regards,

  • How to build a String from Date?

    How to build a String from class Date?
    How to get the year, month, day, hour ... from a Date object.

    Ok to build a string use this function in java.util.Date
    toString()
    TO get year, date, etc u can use the following functions
    getYear()
    getDate()
    This link might help u more
    http://java.sun.com/products/jdk/1.1/docs/api/java.util.Date.html

  • How Do I Display HTML Formatted Text From A Data Table In Crystal Reports?

    I'm creating reports in Crystal XI.  The information being displayed in the reports comes from data tables where the text is formatted in HTML.
    I've worked with Crystal Reports enough to know that HTML text pulled from a data table doesn't appear in Crystal the same way it does in a web browser.  Crystal Reports ignores all the tags (...unless I'm missing something...) and just displays the text.
    Someone far more Crystal savy than I (...who I don't have access to...) came up with a Formula Field workaround that tricks Crystal Reports into displaying some basic HTML tags.  Here's that workaround:
    <!--
    stringVar TableName := ;
    TableName := Replace (TableName, "<ul>","<br> <br>");
    TableName := Replace (TableName, "<li>", "<br>   &bull; ");
    TableName := Replace (TableName, "</li>", "");
    TableName := Replace (TableName, "</ul>","<br> <br>");
    TableName := Replace (TableName, "<a", "<u><font color='blue'");
    TableName := Replace (TableName, "</a>", "</font></u>");
    TableName
    -->
    QUESTION - Does any similar workaround exist so I can display an HTML Table in Crystal Reports?  If not, is there any way to display HTML formatted text from a data table in Crystal Reports as it would appear in a web browser?

    Hi Steven,
    To display html text in Crystal Reports follows these steps.
    1. Right click on the field and select Paragraph tab.
    2. Under 'Text Interpretation' select 'HTML Text' and click OK.
    I have tried using the way,but it never works.So reply me if there is any way to solve the issue

  • How can I print texts from iPhone4 to Canon MX870

    How can I print texts from iPhone4 to Canon MX870

    The following gives instructions. http://support.apple.com/kb/HT4517
    Note that your carrier may not support it or may have added charges.
    To use this feature, enable Personal Hotspot on your cellular data plan. Contact your carrier for information and pricing.

  • How to get maximal value from the data/class for show in Map legend

    I make WAD report that using Map Web Item.
    I devide to four (4) classes for legend (Generate_Breaks).
    I want to change default value for the class by javascript and for this,
    I need to get maximal value from the class.
    How to get maximal value from the data/class.
    please give me solution for my problem.
    Many Thx
    Eddy Utomo

    use this to get the following End_date
    <?following-sibling::../END_DATE?>
    Try this
    <?for-each:/ROOT/ROW?>
    ==================
    Current StartDate <?START_DATE?>
    Current End Date <?END_DATE?>
    Next Start Date <?following-sibling::ROW/END_DATE?>
    Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
    ================
    <?end for-each?>
    o/p
    ==================
    Current StartDate 01-01-1980
    Current End Date 01-01-1988
    Next Start Date 01-01-1990
    Previous End Date
    ================
    ==================
    Current StartDate 01-01-1988
    Current End Date 01-01-1990
    Next Start Date 01-01-2005
    Previous End Date 01-01-1988
    ================
    ==================
    Current StartDate 01-01-2000
    Current End Date 01-01-2005
    Next Start Date
    Previous End Date 01

  • How can I copy text from one card to another while creating cards using Iphoto?

    I created two cards with different pictures using Iphoto on Macnotebook. 
    I want to use the same text message.
    How can I copy text from one card to another?

    select the text and copy (edit menu ==> copy) tehn gpo to the next card and paste
    LN

  • How do I copy text from one layer to  another?

    I have Googled this but not a single answer seems to work.
    I am using Photoshop CS4 on OS X 10.6.7.
    OK, so  I  have a layer that  has some text in it.  I would like to  be able to  simply copy that  text  from one layer  to  another, but this seems to  be impossible as the Edit Paste menu item is grayed out after I have copied it in to the clipboard.  I can paste it into  the SAME layer, but not into another layer.
    This is how I am trying to  do  this.
    In the layer  with the text, click on the "T" icon to  the left.
    Click on the text, in the layer that I  want to  copy. 
    I select the text (either  by  clicking and dragging or pressing Command-A).
    Next I press Command-C.
    Then I  click on the layer In the Layer Panel) where I want to  paste the text.
    Pressing Command-V is impossible because the Edit-Paste menu option is grayed out!!!!
    WHY??????
    Perhaps more importantly, HOW do I copy text  from one layer to  another?

    First thing you can simply right click on the Text Layer and choose Duplicate Layer.  But that will create a new Text Lay
    er identical to the one you have.
    To answer your question in your case....  Create the Text Layer.   Make a New Layer.  Or have the layer you want to paste into visible.
    Highlight the text layer in the Layer Palette and Ctrl+Click (Win) Cmd+Click(Mac) so that you see marching ants walking around your text.
    Edit>Copy.
    Then highlight your Layer you want to paste into and hit Edit>Paste or Cmd+V / Ctrl+V.

  • How do i add text from a pc to iphone

    how do i add text from a pc to iphone
    like saved docs in microsof office

    You have to first install a document management app such as "Pages" or such on your iPhone.  Search the App store for one; there are many, some Free.
    Hope this helps

  • How to get internal table from SAP Data Provider C#

    Hello.
    ABAP:
       DATA: lt_t001 TYPE TABLE OF t001.
       DATA: url(1000) TYPE c.
      SELECT * INTO TABLE lt_t001 FROM t001.
      CALL FUNCTION 'DP_CREATE_URL'
        EXPORTING
          type                 = 'APPLICATION'
          subtype           = 'X-R3TABLE'
        TABLES
          data                 = lt_t001
        CHANGING
          url                    = url
        EXCEPTIONS
          OTHERS           = 4.
    C#:
    using SAPDataProvider;
    using SAPTableFactoryCtrl;
    public void SetDataFromUrl(string url)
                SAPDataProviderClass p = new SAPDataProviderClass();
                p.SetDataFromURL("APPLICATION", "X-R3TABLE", url);
                ISapDPR3Table tbl = p.GetDataAsR3Table("APPLICATION", "X-R3TABLE");
                SAPTableFactoryClass tf = new SAPTableFactoryClass();
                Table tb = (Table)tf.NewTable();
                tb.ISAPrfcITab = tbl.DataTable; // Exception !!!!!!
    How to get internal table from SAP Data Provider ?

    Hi Sergey,
    I'm trying to do the same, have you found a solution to solved it?
    thanks for your help.
    Regards.
    Jonathan

  • How do I place text from Pages in InDesign

    How do I place text from Pages in InDesign?

    You will need to export the text from Indesign as either .rtf or .doc files and import those.
    You can also cut and paste but I assume you have already tried these options and are not happy with the result, but haven't said why.
    Peter

  • How to transfer my text from iphone 4s to to iphone 6

    how to transfer my text from iphone 4s to to iphone 6

    Hi,
    Did you or can you set up the new iPhone from a Backup of the Old one ?
    They would have to be at the same Level of OS
    iMessages are deleted from the iMessages servers as soon as that are accepted by the device they were sent to.
    Essentially they are duplicated if you have more than one device and each then gets it's own "Copy" as they are push to each registered device based on unique login info.
    Therefore there is is no simple "Download" old iMessages.
    SMS items are also unlikely to be kept by the servers.
    9:59 pm      Friday; March 20, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How can i release text from a text box?

    How can I release text from a text box? I want the shape of the text box without the text in it.

    So all you need is to make a line around the text?
    For this you don't need to release the text box from the text. Just apply a stroke to it.

  • How do I delete text from a textArea?

    How do I delete text from a textArea? I basically want the opposite of append(String)... I want something that removes a line from my TextArea. Anyone know?>

    If you want to remove only a specific part of the text, you have to get the String, take the parts before and after the removed part, append them back together and use setText to replace it in the textArea.

  • How do I extract text from an email?

    Hello!
    I am in the process of trying to automate orders from my website. How do I extract text from an email and paste it into specific cells in an Excel spreadsheet using Automator?
    Many thanks,
    Toby Bateson

    If you select the message on the Inbox list, or open the message, you can then go to the Message menu of Mail and select Remove Attachments.
    Bob N.
    Mac Mini 1.5 GHz; iBook 900 mHz; iPod 20 GB   Mac OS X (10.4.7)  

Maybe you are looking for

  • Data usage analysis page. Doesn't match current usage page?

    O.K. Here's what I'm going through. Verizon tells me I'm way over my 5.0 limit. Right now I am close to 9GB. So to check I click on usage, This is what I get. Data Allowance Exceeded. Additional data usage will be billed at $10 per 1.000 GB. Current

  • I cannot open InDesign files after upgrading to CS6.

    Error message is "Cannot open the file *.indd. Adobe InDesign may not support the file format, a plug in that support the file format, a plug-in that supports the file format may be missing, or the file may be open in another application" Can anyone

  • Editing a doc created in lifecycle using pdf

    I have a document that was created using lifecycle es, the document was saved as a static pdf.   I am responsible for making documents 508 compliant before being posted to the internet.  When I access the document it comes up in adobe pro 9 (which is

  • Change user priviledges to administrator

    After a lot of attempts i have worked out how to sort out the problem of user being reverted to standard as opposed to administrator. Boot from the CD. Do not do a reinstall. In the drop down menu utilities choose reset password. Choose the System Ad

  • App World - Sorry, your device does not meet the system requiremen​ts that are needed

    Hi, I've just got a blackberry which is my first. I am new to this. I'm trying to download the App World on my phone because I would like to get some applications on my phone. As I try to download the App World it says "Sorry, your device does not me