+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting in excel/word

  1. #1
    Registered User
    Join Date
    02-25-2011
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    44

    Conditional formatting in excel/word

    I tried the wordbanter forum and got no replies. Hope ok to post here. I am doing mail merge from excel database and when the AGE field comes into word I toggle and wanted to add the code below but I get as far as below and all I get back is the word RED. I wanted age data to go red if age is more than 20

    Apologies if in wrong forum but I cant seem to get answers anywhere?

    Steve

    Below


    One way to do simple formatting of this kind is to use an IF field to
    insert the mergefield with one format or another, e.g. insert

    { IF "{ MERGEFIELD Age}" > "20" "{ MERGEFIELD Age}" Red"{
    MERGEFIELD Age}" }

    then colour the second { MERGEFIELD myfield } (the one immediately after
    the "A") yellow.

    All the {} need to be the special field code braces that you can insert
    using ctrl-F9.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,666

    Re: Conditional formatting in excel/word

    k11ngy, you are in the right forum. But first, we require links if you cross-post to another forum. Please provide a link to your WordBanter post.





    Your post does not comply with Rule 8 of our Forum Rules: Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you must provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (most other forums have the same rule).
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Conditional formatting in excel/word

    This is pretty easy, actually, and once you've complied with the forum cross-posting rules, I'd be happy to tell you how.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  4. #4
    Registered User
    Join Date
    01-25-2017
    Location
    USA
    MS-Off Ver
    office 3.0
    Posts
    5

    Re: Conditional formatting in excel/word

    Thanks for letting us know

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditional formatting for new excel on word
    By ZiDanno in forum Excel General
    Replies: 10
    Last Post: 03-10-2016, 03:54 PM
  2. Replies: 0
    Last Post: 03-04-2016, 06:08 PM
  3. Replies: 2
    Last Post: 10-30-2014, 01:49 AM
  4. [SOLVED] Need help with conditional formatting if other cell contains a word
    By JackBauer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-29-2012, 01:41 PM
  5. Conditional Formatting - Numbers & Word
    By mbe23 in forum Excel General
    Replies: 2
    Last Post: 03-16-2011, 01:31 AM
  6. Replies: 2
    Last Post: 06-26-2010, 02:42 AM
  7. Conditional formatting using a trigger word
    By stevewilde in forum Excel General
    Replies: 1
    Last Post: 10-15-2009, 09:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1