+ Reply to Thread
Results 1 to 2 of 2

simple macro help

  1. #1
    Registered User
    Join Date
    08-13-2007
    Posts
    1

    simple macro help

    given the following data:

    ID----Date----------Amt
    1-----Jan 10, 2007---20
    1-----Mar 15, 2007---30
    1-----Jun 2, 2007---40
    2-----Jul 1, 2007----10
    3-----Jul 1, 2007----30
    4-----Jul 1, 2007----80

    i want an excel macro that i can pass a startdate, enddate and an id and will output the sum of the fields under the amt column including the months in between for the specified id.

    for example, given the following information:

    startdate = jan 1, 2007
    enddate = jun 30, 2007
    id = 1

    the following values would be added together:

    jan - 20
    feb - 20
    mar - 30
    apr - 30
    may - 30
    jun - 40

    and would return:

    170

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Welcome to excelforum

    Please read forum rules & use appropriate thread titles
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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