Forum Discussion

kroest71's avatar
kroest71
Copper Contributor
Jan 09, 2020

mergefield Word must choose between three options in Excel

I need a formula for a mergefield in word that chooses between 3 options in the database. In that database I have 3 columns: 1 for clients in Europe, one for clients in US and one for UK. So when I merge the excel database with the word invoice, I would like the mergefield to choose the excel field from the right column, in which I filled in the amount.

p.e.: client x is from Europe, so I filled in an amount in column €

client y is from US, so I filled in an amount in column $

client z is from UK, so I filled in an amount in column £

 

I want to merge these 3 items in 1 standard invoice, so the mergefield must know which cell in excel it has to use. Can anyone help me with that?

6 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    kroest71 

    That could be like

    Insert fields will be used one by one, after that from Rules any IF statement, Alt+F9, copy/paste into final IF .. ELSE field your fields, Alt+F9 back. Remove temporary fields.

      • Riny_van_Eekelen's avatar
        Riny_van_Eekelen
        Platinum Contributor

        kroest71 

        If I were you, I'd change your Excel sheet and use one column for a currency code and one for the amount. You can then combine the currency code and the amount to indicate that you are billing e.g. EUR 33.57 or GBP 90.70

         

Resources