+ Reply to Thread
Results 1 to 3 of 3

Shifting Cells then Optimizing

Hybrid View

  1. #1
    Registered User
    Join Date
    07-27-2010
    Location
    MA, United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Shifting Cells then Optimizing

    Two part question here. First one should be easy but the second could give trouble. I've scoured Google, and found similar solutions but I'm missing some key element. Here's what I'm looking to do:

    I’m trying to have a portion of a row of cells (between 2 and 4 cells long) shift left or right according to the date that is entered to the far left. For example, if 01/01/10 is entered, the macro would shift the cells of that row so they begin at January while keeping them adjacent to one another.

    Nextly, below that I would like to excel to chose the date automatically based on an optimization that would minimize monthly sums. In the attached file, I'd only need the optimization on the top section (Remaining Capital), since the bottom section does not have the same practical flexibility.


    In conclusion, the first question should be a breeze, I just wish I knew or had the time to better learn vba programming. The second question might be out of the scope of this forum. I appreciate any help that can be lent.

    Ryan
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Shifting Cells then Optimizing

    Hello rybuns,

    Please only ask one question per post. Your data is incomplete as there is no January on the worksheet. We can not help you when you do not supply the needed information. Review your question and be sure the workbook follows with what you are posting.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    07-27-2010
    Location
    MA, United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Shifting Cells then Optimizing

    Please excuse me for squeezing in a two-part question. They are very much the same issue, but I will make sure to post the second half in a new thread. You will, however, find that January is indeed in the worksheet posted. The months start at July and go until May, excluding June which is extraneous to my needs.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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