+ Reply to Thread
Results 1 to 2 of 2

Copy formulas from one column to next column based on Current & Prior Month

  1. #1
    Registered User
    Join Date
    11-16-2012
    Location
    college park, maryland
    MS-Off Ver
    Excel 2010
    Posts
    37

    Copy formulas from one column to next column based on Current & Prior Month

    Hi everyone, I have not posted in the forum in 5 years so I apologize if I miss any guidelines. Thank you for any help.

    Here is my problem:

    I need to copy the formulas from a prior month column in my worksheet and paste it into the current month column. I then need to copy and paste values into the prior month column. So basically move formulas from prior month to current month and then remove formulas and replace with values in prior month.


    Example:

    Column A Column B Column C Column D
    September October November December


    I need the code to select column B to copy and then paste formulas in Column C since it is currently November & prior month would be October.
    It would then paste as values back into Column B to override formulas.

    Next month when its December it would select Column C to copy and then paste formulas in Column D and so on.


    I hope that makes sense. Thanks so much!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy formulas from one column to next column based on Current & Prior Month

    • Are there headers in Row 1 with the name of the Month?
    • Is there only 12 columns?
    • Does it always start with September in column 1
    • What happens when it's the last month-column? Does it paste to the first column then?
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. Trying to use COUNTIFS to count prior year orders in a current month
    By NiceTxn in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-05-2016, 10:40 AM
  2. I need to sum a column of data based upon the current month
    By rde55cae in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-17-2015, 04:53 PM
  3. Replies: 2
    Last Post: 03-14-2014, 08:47 PM
  4. Using current month selection to copy/paste formulas and values
    By gigi85 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-03-2014, 07:51 AM
  5. Replies: 0
    Last Post: 09-18-2012, 11:47 AM
  6. Convert date from current month to first day of prior month
    By maacmaac in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-07-2010, 12:23 PM
  7. Calculating the prior month given the current month
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-15-2010, 04:40 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