+ Reply to Thread
Results 1 to 5 of 5

date format and list between 2 values

Hybrid View

  1. #1
    Registered User
    Join Date
    11-12-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    40

    date format and list between 2 values

    Hi All,

    2 quickies (I hope):

    1. Want to turn 201607 into a Month format "Jul" - whats best formula?

    2. Once I have identified a start month ex. Jan (in that format) in cell A1 and end month Sep (in that format) in cell A2 I want to create a list with all the months that fall between cell A1 value and cell A2 value in "Mmm" format.
    This list will utilized in a data validation drop down list.

    Thank you very much.

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: date format and list between 2 values

    For (1), try:
    Formula: copy to clipboard
    =DATE(LEFT(A1,4),RIGHT(A1,2),1)

    then format the cell with the custom format 'mmm'.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: date format and list between 2 values

    Hello Adsup01,

    I created a list of the months in F1:F12. (You can put this anywhere).

    I then created a Named Range called Mth with this formula:

    =OFFSET(Sheet1!$F$1,VALUE(RIGHT(Sheet1!$A$1,2))-1,0,(VALUE(RIGHT(Sheet1!$A$2,2))+1)-VALUE(RIGHT(Sheet1!$A$1,2)))
    This creates a dynamic range which varies according to the YYYYMM entry you have in A1 and A2.

    You then create a Data Validation dropdown using the Named Range mth

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-12-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: date format and list between 2 values

    Thank you both very much for help.

  5. #5
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: date format and list between 2 values

    You're welcome! Did it work?

    Please take the time to mark the thread as SOLVED (see below).

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


+ 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. date format and list between 2 values
    By Adsup01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2016, 02:29 AM
  2. Setting Date Format in List box
    By evertjvr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2014, 03:11 PM
  3. [SOLVED] Issue with date format when comparing two date values (I'm in Australia)
    By aaron.irvine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2013, 01:13 AM
  4. Replies: 3
    Last Post: 10-28-2010, 07:04 AM
  5. format date list box
    By waltron in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2009, 04:00 AM
  6. Move Date from Grid Format to List Format
    By mrchoppychops in forum Excel General
    Replies: 2
    Last Post: 11-20-2008, 05:51 AM
  7. [SOLVED] How do I convert date values to non-date format e.g. 01-06-78?
    By mikelenno in forum Excel General
    Replies: 2
    Last Post: 07-08-2005, 04:05 PM

Tags for this Thread

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