+ Reply to Thread
Results 1 to 6 of 6

Check name of the Month and copy to specific column

  1. #1
    Registered User
    Join Date
    04-06-2019
    Location
    Daventry, England
    MS-Off Ver
    2016
    Posts
    19

    Check name of the Month and copy to specific column

    Hi All, I need help with simply code. What I need is check the column D find the name of the Month and copy to column I. Please check attached file.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Check name of the Month and copy to specific column

    In I2 =MONTH(D2), format Custom "MMM" and copy down.
    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

  3. #3
    Registered User
    Join Date
    04-06-2019
    Location
    Daventry, England
    MS-Off Ver
    2016
    Posts
    19

    Re: Check name of the Month and copy to specific column

    Hi alansidman, Can you prepare for me ready code to past straight to button Thank you very much

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Check name of the Month and copy to specific column

    Try this.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Registered User
    Join Date
    04-06-2019
    Location
    Daventry, England
    MS-Off Ver
    2016
    Posts
    19

    Re: Check name of the Month and copy to specific column

    Working perfect big thanks for help

  6. #6
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: Check name of the Month and copy to specific column

    Quote Originally Posted by bakerman2 View Post
    Try this.

    Please Login or Register  to view this content.
    Here is another, more compact way to write the line of code I highlighted in red above...
    Please Login or Register  to view this content.
    For future readers of this thread who might find this interesting, here is a compact way to create a 1-d array of month names (the Mnths variable should be declared as a Variant)...
    Please Login or Register  to view this content.
    This code line was the basis for the macro I posted above.
    Last edited by Rick Rothstein; 08-18-2019 at 10:08 PM.

+ 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] macro to copy specific columns and rows for a specific month and week
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2015, 11:23 AM
  2. [SOLVED] Copy rows with specific text in specific column into specific sheet
    By Valemaar in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-22-2014, 03:23 PM
  3. Check current month column and update it accordingly
    By Thinker8 in forum Excel General
    Replies: 4
    Last Post: 04-21-2014, 06:43 AM
  4. Replies: 3
    Last Post: 03-11-2014, 02:16 AM
  5. [SOLVED] If check box is checked, then copy specific cells to new sheet
    By thedefense in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-10-2014, 02:46 PM
  6. Replies: 2
    Last Post: 12-17-2013, 06:30 AM
  7. How to check if month in column B is before current month
    By John74 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-17-2009, 04:44 PM

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