+ Reply to Thread
Results 1 to 2 of 2

Excel Month and Year Entry Only

  1. #1
    Forum Contributor
    Join Date
    06-21-2006
    MS-Off Ver
    2007
    Posts
    141

    Excel Month and Year Entry Only

    I have a tool that users need to enter date information into. I have two challenges

    1. They user is not allowed to enter the day, only the month and year. I realize I could format the end result as month and year only (in custom formatting), but am unsure how to manage the input as month and year only.
    2. The entry needs to stay in a (numeric) format that a COUNT function can be used to calculate the number of entries.

    Thoughts?

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Excel Month and Year Entry Only

    Maybe these two formulas will help you out: = MONTH(DateValue) and = YEAR(DateValue)

    So if you want a string like 201607 then Year(DateValue) & Month(DateValue) should do it for you.

    The following will also work: TEXT(DateValue,"yyyymm")
    Last edited by dflak; 07-12-2016 at 03:05 PM. Reason: Second thought
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Running Totals from 24 hours to month, month to year without year decreasing
    By Safetyintern in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2015, 01:13 PM
  2. [SOLVED] Year to month and back - entry formula to itself
    By olwy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-15-2014, 08:38 AM
  3. Need to convert Month/Date/Year to Year/Month/Date so excel will recognize
    By juliettelam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2014, 04:17 PM
  4. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  5. Forcing month/year entry to last day of month
    By Gunther Maplethorpe in forum Excel General
    Replies: 8
    Last Post: 06-13-2013, 03:16 PM
  6. How to add Month-on-Month and Year-on-Year %Variance into a pivot table
    By emeritus1812 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-09-2013, 02:37 AM
  7. If Column A Month and Year = ColumnB Todays Month and Year then send email
    By HACCStaff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 12:47 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