+ Reply to Thread
Results 1 to 3 of 3

VBA to calculate and display the output quantity in corresponding week number table

  1. #1
    Registered User
    Join Date
    11-10-2014
    Location
    Mauritius
    MS-Off Ver
    2013
    Posts
    50

    VBA to calculate and display the output quantity in corresponding week number table

    Need help. In my excel worksheet I have the following info:
    Column BM - Start Output Weeknum
    Column BN -End output Weeknum
    With below VBA, In columns BO to DN,I display the weeknum as follows: Weeknum 1 in BO , 2 in BP and so on.
    Please Login or Register  to view this content.
    I have in column BF the total quantity, and in Column BG the weekly output, thus I need to modify the above VBA to display in appropriate weeknum column (BO to DN representing week 1 to 52) the output quantity instead of the weeknum, example of expected result as follows:
    BF3 = 4000 = quantity ( Not a constant - varies in each row)
    BG3 = 1500 = output per week ( Not a constant- varies in each row)
    BM3 = 1 = start output weeknum (Not a constant - varies and obtain with a formula after data input- subject to change on same row - not to remove formula when applying VBA)
    BN3= 3 = end output weeknum (Not a constant - varies and obtain with a formula after data input- subject to change on same row - not to remove formula when applying VBA)
    RESULTS in BO3 (week 1)= 1500, BP3 (Week 2) = 1500 and BQ3 (Week 3) =1000
    Should display figure (in appropriate weeknum column) in BF if BG > BF

    I remain at your disposal if more clarification needed.
    Thanking you
    Vassen

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: VBA to calculate and display the output quantity in corresponding week number table

    You could use this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    11-10-2014
    Location
    Mauritius
    MS-Off Ver
    2013
    Posts
    50

    Re: VBA to calculate and display the output quantity in corresponding week number table

    Hi antoka05,
    Waoh, really fantastic, it works as I wanted . Thanks a lot.
    Cheers
    Vassen

+ 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] Calculate Week Range from Week Number, Month and Year?
    By A108A108 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 05-07-2016, 03:11 PM
  2. [SOLVED] Looking up between 2 dates ~ then display week number.
    By countryfan_nt in forum Excel General
    Replies: 4
    Last Post: 03-21-2016, 09:03 AM
  3. [SOLVED] Display values based on input / output table
    By zdimitrov in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2015, 09:12 PM
  4. [SOLVED] Distributing a number quantity across days of the week
    By nomadachris1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-25-2013, 10:58 PM
  5. Need a pivot table to calculate quantity per selling day
    By mikeTRON in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 08-29-2013, 02:07 PM
  6. [SOLVED] How can I calculate the week number from a date, eg 21/06/05 = 26
    By cel504 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  7. How can I calculate the week number from a date, eg 21/06/05 = 26
    By cel504 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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