+ Reply to Thread
Results 1 to 2 of 2

Datediff with non-english on the referent cell.

  1. #1
    Registered User
    Join Date
    10-07-2010
    Location
    Vientiane, Laos
    MS-Off Ver
    Excel 2007
    Posts
    1

    Datediff with non-english on the referent cell.

    I need to replace year, month and day with non-english on referent cell such as Pee for years(F2), deun for month(G2) and Vaan for days(H2).

    Sub Macro3()
    '
    ' Macro3 Macro
    R = 2

    Cells(R, 4) = "=DATEDIF(RC[-2],TODAY(),""y"")&"" year(s) "" &DATEDIF(RC[-2],TODAY(),""ym"")&"" month(s) "" &DATEDIF(RC[-2],TODAY(),""md"")&"" day(s)"""

    Range("D3").Select

    End Sub

    Result: 3 Pee 2 deun 1 Vaan

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Datediff with non-english on the referent cell.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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. English to English Dictionary in MS Excel format
    By waqaszhr in forum Excel General
    Replies: 0
    Last Post: 12-03-2012, 03:19 PM
  2. Write English Formulas in non-english Excel
    By ChrisNor in forum Excel General
    Replies: 5
    Last Post: 03-09-2009, 08:40 AM
  3. DateDiff
    By vandanavai in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-20-2006, 03:12 AM
  4. datediff help
    By ina in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-24-2006, 04:50 AM
  5. Changing a cell referent in a formula several at a time...
    By johnexcel in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-27-2005, 12:15 PM

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