Results 1 to 1 of 1

VBA sum on multi search criteria - how?

Threaded View

  1. #1
    Registered User
    Join Date
    01-03-2005
    Posts
    8

    VBA sum on multi search criteria - how?

    I have spent many hours trying to find out how to do the following, but without success, many web searches gave me hope but still no joy, hence my call for help on this forum.

    In VBA, I wish to be able to sum any column of data providing the rows are within my selective time period.

    I have:-

    Sheet – Target with a range A1:R10000
    Col “C” holds the timestamp for each row

    Sheet – Table with range A1:C35
    Col “A” holds start of period timestamp
    Col “B” holds the end of period time stamp
    Col “C” holds my reference for each 15min time period

    So basically I wish to say:-

    In Target SUM range (column) “D:D” only if the timestamp in Col “C” is within the time period selected in the Table.

    In my past days of FoxPro the BETWEEN function was the preferred option, hopefully the solution is nearly as simple.
    Last edited by adventurous; 02-16-2005 at 07:48 PM.

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