+ Reply to Thread
Results 1 to 8 of 8

How to offset range based on date?

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    12

    Question How to offset range based on date?

    Hoping someone out there can help me.

    Basically, what i would like to be able to do is the following:-

    I have a quantity (in cell E5) and ship date (in cell S5) and a range of months/years in columns V onwards.

    What i would like to do is to populate the quantity under the corresponding month/year column (row 5), depending on the ship date. In addition, i would like to distribute the quantity based on specific %'s.

    Example

    Quantity = 50,000
    Ship Date = 15th May 2014

    Month 1 = 50% of qty
    Month 2 = 0% of qty
    Month 3 = 0% of qty
    Month 4 = 20% of qty
    Month 5 = 3.75% of qty
    Month 6 = 3.75% of qty
    Month 7 = 3.75% of qty
    Month 8 = 3.75% of qty
    Month 9 = 3.75% of qty
    Month 10 = 3.75% of qty
    Month 11 = 3.75% of qty
    Month 12 = 3.75% of qty

    Data should populate as follows:-

    04/14,05/14,06/14,07/14,08/14,09/14,10/14,11/14,12/14,1/15,2/15,3/15,4/15,5/15,6/15
    0,25000,0,0,1875,1875,1875,1875,1875,1875,1875,1875

    Of course, there will be a number of rows that need evaluating with the same distribution.

    Any help would be welcome. Thanks!
    James
    Attached Files Attached Files
    Last edited by tg7384; 04-16-2014 at 04:01 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: How to offset range based on date?

    Why macro? simple (relatively ;-) ) formula would do.
    In I12:
    Please Login or Register  to view this content.
    and copy down/right

    it checks if it is already after start and if yes - before dozen months and if both yes then takes (INDEX) data from I4:T4 from first (only) row and appropriate (month difference) column.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    08-07-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: How to offset range based on date?

    Kaper - brilliant! What would we do without people like you!

    Only one small typo, but i can deal with that - thanks so much!

    One other quick question, is there an easy way to sum the total cost for each month in cell I8...?8, for all entries beneath, taking the respective volume /individual price (column E) for each item?

    Makes sense?

    Once again - simple, but brilliant! Thanks!

    James

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: How to offset range based on date?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-07-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: How to offset range based on date?

    Of course! Thanks for all your help!!!!!

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: How to offset range based on date?

    Glad to hear that. And thanks for reputation point

  7. #7
    Registered User
    Join Date
    08-07-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: How to offset range based on date?

    Kaper,
    One last question....

    What if i wanted to apply different % models, depending on the product type?

    ie: there could be 5 % models.

    Let me know?

    Thank

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: How to offset range based on date?

    instead of
    Please Login or Register  to view this content.
    use something like
    Please Login or Register  to view this content.
    or already in
    Please Login or Register  to view this content.
    put
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    08-07-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: How to offset range based on date?

    Thanks mate. I take it that "model" is whatever the cell value is we need to lookup, and the "listofmodels" is a range of the model names next to the % distribution? Thanks again!


    Sent from my iPad using Tapatalk

+ 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] How to use OFFSET in a Data Range based on Job Frequency
    By Saarang84 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2014, 05:19 AM
  2. [SOLVED] Define new range names based on existing range name offset 1 column to right
    By jprlimey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2014, 07:53 PM
  3. How to sum a range of offset ranges based on criteria
    By beaumonr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-31-2012, 07:58 PM
  4. [SOLVED] Summing figures based on date and offset formula
    By marting in forum Excel General
    Replies: 3
    Last Post: 07-09-2012, 09:28 PM
  5. Select Range based on offset with (row,column,height,width)
    By incjourn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-29-2011, 08:41 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