Date calculation using Word 2010 table/field Syntax Error


  1. Posts : 1
    Windows 7 Pro x64
       #1

    Date calculation using Word 2010 table/field Syntax Error


    I have a Word 2010 document and I want to have specific text appear if a date is more than 42 days away from today (whatever today happens to be). I've got a three-cell table that looks like:


    ________________________________________________________

    | DATE: | 12/25/13 | { =IF(B1-TODAY()>42,TRUE,FALSE) } |
    ________________________________________________________



    I keep getting a Syntax Error on my field in the 3rd cell. I think the problem is that Word doesn't understand "TODAY()" like Excel does, but I don't know if there is any other way to calculate the days between two dates? My eternal gratitude to anyone who can figure out how to do this properly.
      My Computer


  2. Posts : 1,030
    Linux Mint / XP / Win7 Home, Pro, Ultimate / Win8.1 / Win10
       #2

    You will need to create a spreadsheet then "Link" that spreadsheet containing the calc cells.

    Things to Remember When Linking

    • If you move the linked Excel file, you break the link. To fix this, you need to relink the file.
    • Double-click on the Excel data in your document to edit it: this opens the linked spreadsheet.
    • You can also edit the spreadsheet directly: the changes appear in your Word document once you save the Excel spreadsheet.

    Regards,
    GEWB
      My Computer


  3. Posts : 5,941
    Linux CENTOS 7 / various Windows OS'es and servers
       #3

    Hi there

    You don't need to use EXCEL for this.

    Here's for Word 2010
    http://wordribbon.tips.net/T008660_C...th_Fields.html
    Cheers
    jimbo
      My Computer


  4. Posts : 1,030
    Linux Mint / XP / Win7 Home, Pro, Ultimate / Win8.1 / Win10
       #4

    jimbo45 said:
    Hi there

    You don't need to use EXCEL for this.

    Here's for Word 2010
    Calculating Dates with Fields (Microsoft Word)
    Cheers
    jimbo
    +1 for jimbo - I had forgotten to check my WordTips subscription! (There is also an ExcelTips from the same author.)

    Regards,
    GEWB
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:13.
Find Us