+ Reply to Thread
Results 1 to 2 of 2

Month format issue

  1. #1
    Forum Contributor
    Join Date
    10-07-2015
    Location
    cyprus
    MS-Off Ver
    Microsoft 365
    Posts
    183

    Month format issue

    I have the following formula in a worksheet which works just fine and give me the Today month -1 in format "mmm" I.e Aug. Here is the formula

    TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())-1,),"MMM")

    I need to have the same result in Vba. Can someone assist?

    I have tried MONTH(TODAY) - 2 but obviously I got "Jan"....

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,725

    Re: Month format issue

    try this:


    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. [SOLVED] Month format issue - convert 9/1/2013 into Sep
    By Sam Capricci in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-24-2013, 09:43 AM
  2. [SOLVED] issue with =day(a1) & =month(a1)
    By galvinpaddy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-29-2012, 06:31 AM
  3. [SOLVED] IF statement to read month format and place month name in next cell
    By david1987 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2012, 11:41 AM
  4. Replies: 1
    Last Post: 11-22-2011, 08:11 AM
  5. Auto Format spreadsheet with various rows month to month
    By sratkins in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2009, 01:07 AM
  6. [SOLVED] If(And(Month() Issue
    By Mike in forum Excel General
    Replies: 5
    Last Post: 08-03-2006, 07:50 PM
  7. [SOLVED] how do i change the format for excel to day-month:as day-month.
    By swy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-02-2005, 03:05 AM
  8. Date Format - converting number of month to name of month
    By Merlinwb in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 04-12-2005, 11:55 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