+ Reply to Thread
Results 1 to 3 of 3

macro to lookup two dates and return figure in corresponding month columns

  1. #1
    Registered User
    Join Date
    02-23-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    50

    macro to lookup two dates and return figure in corresponding month columns

    Hi,
    Please see attached my example. I am looking for a macro which will lookup up my start and end dates (columns B & C) and add the allocation figure (Column D) to the corresponding month columns (Column F +).
    For example, if my start date is: 01DEC13 and end date is: 31JAN14 and my allocation = 0.5, then I would like the macro to populate the month columns of Dec-13 and Jan-14 only with 0.5

    My month columns will go out until Dec-2016

    Thanks

    Jen
    Attached Files Attached Files
    Last edited by tiger01; 11-11-2013 at 02:54 AM.

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: macro to lookup two dates and return figure in corresponding month columns

    Hi
    try this
    you will need to set the variable LastRow to the row with the last name in your list (row 12, in your example)

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-23-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: macro to lookup two dates and return figure in corresponding month columns

    That works great, thanks so much!
    Jen

+ 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] Return specific dates of the month in one field
    By WinslowDL in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 10-15-2013, 10:03 PM
  2. Replies: 22
    Last Post: 11-20-2012, 02:44 AM
  3. Replies: 4
    Last Post: 11-06-2012, 01:13 AM
  4. Help with Formulae to return a Month and Year only from a column of dates
    By rick.parry in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2012, 08:52 AM
  5. [SOLVED] Return the dates of all the mondays and fridays in a month
    By all4excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-28-2007, 07:20 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