+ Reply to Thread
Results 1 to 2 of 2

Moving formulas in a cell based on date entry ?

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Moving formulas in a cell based on date entry ?

    Hello everyone. I have the following situation. I have written code [please see below] which places formulas into specific cells within a workbook.

    Please Login or Register  to view this content.
    This sort of works, but not really. You see I need the placement of the formulas to be dependent on a global variable fDate. Without loss of generality the formulas are in the range "G29:G63". Now, I have a global variable fDate which is determined by the user entering a date in the following format dd-mmm-yyyy for example 30-apr-2010. Within the range "E27:P27" are the months of the year 2010, where E27 = "January", and so on. Here is what I need to happen, but I am clueless as to where to start. If for example the user enters in the date "fDate = 30-apr-2010", I would like to put the formulas into "H29:H63" I also need to copy the range "G29:G63" and paste-special-values back into the same range, "G29:G63".
    Last edited by AnthonyWB; 05-26-2010 at 10:37 AM.

  2. #2
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Moving formulas in a cell based on date entry ?

    If I understand what you're doing, you're rolling forward for each month. You want to pastespecial the values in column G, then accumulate totals again in column H:

    Assuming you have a cell named "fDate" where the date is entered.
    Please Login or Register  to view this content.
    Last edited by foxguy; 05-24-2010 at 01:57 PM.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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