+ Reply to Thread
Results 1 to 2 of 2

Finding the sum of several variables over several weeks automatically

  1. #1
    Registered User
    Join Date
    07-16-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Finding the sum of several variables over several weeks automatically

    Hi all,

    Here is my problem:

    Column A contains a week number, for example '23' let's call it 'Week'.

    Column B contains one of the 3 types of product that is manufactured, let's call it 'Product'.

    Column C contains quantities of each types of manufactured product, let's call it 'Quantity'.

    Column D i have created as a 'Weekly cutoff point' which displays a '1' when weeks change, i.e. 23 to 24.

    There are then 3 other columns, 1 for each different type of product. The formula in these columns will look up 'Product' and if it matches that particular type then it will display 'Quantity' from column B.

    What I am aiming to achieve is a sum of the quantities of each product manufactured for each week. This however is made difficult by the fact that the number of orders for each week varies, therefore the number of rows in each week is different - and i cannot see how i would use a formula to automatically calculate totals for each week.

    Is this possible using a normal formula, or would some VB code be required? I am unfamiliar with VB also, could anyone steer me in the right direction?

    Thanks
    Last edited by tuna; 08-26-2011 at 03:55 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding the sum of several variables over several weeks automatically

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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