Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Waters
 
Posts: n/a
Default Return a value for a range of dates

I'm new to the forum and really hope you guys can help me out.

My spreadsheet has 9 columns. Col A has the date and time (eg 4/12/06 4:00
AM). The last column (J) is the difference between the consecutive cells with
the dates. For eg. Cell A2 is 4/12/06 4:00 AM ; A3 is 4/12/06 7:45 AM.
J3 calculates the difference as 3.75 hrs (A3-A2). This continues for 90
rows down.

I would like a formula or method where I could select a date range or a
particular period (start and end OR min and max) within the 90 rows and sum
the respective values for the same period in the last column.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Return a value for a range of dates

Hi!

Use 2 cells to hold the criteria:

A1 = start
B1 = end

The criteria can be either just a date or both a date and time or a
combination of of date date/time.

=SUMPRODUCT(--(A2:A91=A1),--(A2:A91<=B1),J2:J91)

Biff

"Waters" wrote in message
...
I'm new to the forum and really hope you guys can help me out.

My spreadsheet has 9 columns. Col A has the date and time (eg 4/12/06
4:00
AM). The last column (J) is the difference between the consecutive cells
with
the dates. For eg. Cell A2 is 4/12/06 4:00 AM ; A3 is 4/12/06 7:45 AM.
J3 calculates the difference as 3.75 hrs (A3-A2). This continues for 90
rows down.

I would like a formula or method where I could select a date range or a
particular period (start and end OR min and max) within the 90 rows and
sum
the respective values for the same period in the last column.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I find the earliest dates in a range of dates? JJ Excel Worksheet Functions 3 May 16th 06 09:36 AM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 03:41 PM
count date occurances in range of dates... Alex Excel Worksheet Functions 2 July 27th 05 04:15 PM
Finding dates within a date range Marcus Excel Worksheet Functions 2 April 5th 05 02:03 AM
Finding Dates in a date range Marcus Excel Discussion (Misc queries) 1 April 5th 05 01:51 AM


All times are GMT +1. The time now is 09:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"