Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Help w Month/Year Formula  (Read 2811 times)

0 Members and 1 Guest are viewing this topic.

mdillon07

    Topic Starter


    Newbie

    • Experience: Experienced
    • OS: Windows 10
    Help w Month/Year Formula
    « on: October 04, 2017, 02:10:23 PM »
    I need a little help creating the correct formula.

    Column A: mm/dd/yyyy
    Column B: the following formula that is currently producing just the month
    =CHOOSE(MONTH(A2),"January","February","March","April","May","June","July","August","September","October","November","December")

    I would like to adjust the formula to have it show: October 2017 vs October 2018. I don't really care if its by "October 2017" or "10-17" or "Oct-17" - just want the Month and Year both present.

    Thank you!

    Mark.



      Adviser
    • Forum Regular
    • Thanked: 67
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: Help w Month/Year Formula
    « Reply #1 on: October 04, 2017, 05:03:19 PM »
    try this.

    =CHOOSE(MONTH(A2),"January","February","March","April","May","June","July","August","September","October","November","December")&" "&CONCATENATE(YEAR(A2))

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Help w Month/Year Formula
    « Reply #2 on: October 04, 2017, 06:05:49 PM »
    you can also use something like:
    Code: [Select]
    =TEXT(A2,"MMMM/YYYY")

    Or, you can just have it =A2 and then format that cell to use the appropriate date format you desire.
    I was trying to dereference Null Pointers before it was cool.