Results 1 to 5 of 5

Newbie question - Display last 2 digits of Year in string

This is a discussion on Newbie question - Display last 2 digits of Year in string within the Excel Questions forums, part of the Question Forums category; Sorry if this is too basic but what's the syntax in Excel for appending a date calculation to a string. ...

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    16

    Default Newbie question - Display last 2 digits of Year in string

    Sorry if this is too basic but what's the syntax in Excel for appending a date calculation to a string. For example, I want to display something like:

    "Application for Fiscal Year FY03" The "03" is the last 2 digits of 2003 - the current year. So I imagine I'll need something like:

    ="Application for Fiscal Year FY" & Format(Year(Date()), YY)

    ..in the cell. Something along those lines anyways....

    Thanks

  2. #2
    Board Regular kskinne's Avatar
    Join Date
    Feb 2002
    Location
    USA
    Posts
    1,263

    Default Re: Newbie question - Display last 2 digits of Year in strin

    use this for your formula:

    ="Application for Fiscal Year FY "&RIGHT(YEAR(TODAY()),2)


    hth
    kevin

  3. #3
    New Member
    Join Date
    Apr 2002
    Posts
    16

    Default Re: Newbie question - Display last 2 digits of Year in strin

    Quote Originally Posted by kskinne
    use this for your formula:

    ="Application for Fiscal Year FY "&RIGHT(YEAR(TODAY()),2)


    hth
    kevin
    THANKS!

  4. #4
    MrExcel MVP
    Moderator
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    27,239

    Default Re: Newbie question - Display last 2 digits of Year in strin

    This works for me:

    ="Application for Fiscal Year FY" & TEXT(NOW(), "YY")
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

  5. #5
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654

    Default Re: Newbie question - Display last 2 digits of Year in strin

    ="Application for Fiscal Year FY" & TEXT(TODAY(),"yy")

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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


DMCA.com