Results 1 to 3 of 3

VBA Loop to Look up using Left and Right Function for months

Threaded View

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    48

    VBA Loop to Look up using Left and Right Function for months

    Hi

    Ok bit stuck on trying to figure out the best solution while my vba skills are limited at best.

    I have TWO sheets. Sheet 1 "GOODS" & Sheet 2 "Master"

    I have Sales by monthly in "Master" and i want to split the sales evenly by week in "GOODS" keeping in mind some weeks have 5 Mondays and some have 4. For this i have a formula to determine this, now i'm trying to figure out the best way to macro copying the sales to weekly as i have 100s of them each month.

    I have each monthly Sales stored in a Variable "Value1", "Value2"......."Value12" in a For Next Loop

    I was thinking of using a lookup in a loop somehow to read the first 3 characters on the month in "Master" with the LEFT Function to determine which month of sales (eg) "Jul" then to split the monthly sale of 50 to 10 each week as there is 5 starting weeks in July.

    Master Sheet
    2Capture.PNG

    Goods Sheet
    Capture.PNG




    Any assistance is greatly appreciated.

    Thanks
    Last edited by bkeat; 07-17-2013 at 09:19 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Average a number into months left in year
    By jgryctz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-14-2013, 02:50 PM
  2. [SOLVED] For Next Loop - Sort Each Row Left to Right
    By vba_beginner in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-14-2013, 11:54 AM
  3. Code to Shift Left and Right the months captured in a chart
    By gautamacharya in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2012, 01:24 PM
  4. Write a for loop from left to right
    By ccs_1981 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2011, 05:20 AM
  5. Working days left in the month compared to previous months
    By qwopzxnm in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-24-2005, 03:00 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