Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mike
 
Posts: n/a
Default Totalling by referring to 2 date ranges

I have a spreadsheet that has 2 columns of date ranges.
I want to refer to the first column and count how many entries meet a
specific date range criteria. If there is no entry in the first column, I
want to refer to column 2 to see if the range matches.
Can somebody help????
Thanks
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Try:

=SUMPRODUCT((A1:A100=D1)*(A1:A100<=E1)+(A1:A100=" ")*
(B1:B100=D1)*(B1:B100<=E1))

where D1 = start date, E1 = end date.

HTH
Jason
Atlanta, GA

-----Original Message-----
I have a spreadsheet that has 2 columns of date ranges.
I want to refer to the first column and count how many

entries meet a
specific date range criteria. If there is no entry in

the first column, I
want to refer to column 2 to see if the range matches.
Can somebody help????
Thanks
.

  #3   Report Post  
Mike
 
Posts: n/a
Default

perfect! thanks for the help!

"Jason Morin" wrote:

Try:

=SUMPRODUCT((A1:A100=D1)*(A1:A100<=E1)+(A1:A100=" ")*
(B1:B100=D1)*(B1:B100<=E1))

where D1 = start date, E1 = end date.

HTH
Jason
Atlanta, GA

-----Original Message-----
I have a spreadsheet that has 2 columns of date ranges.
I want to refer to the first column and count how many

entries meet a
specific date range criteria. If there is no entry in

the first column, I
want to refer to column 2 to see if the range matches.
Can somebody help????
Thanks
.


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
Totalling by referring to 2 date ranges Mike Excel Discussion (Misc queries) 0 March 29th 05 11:57 PM
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM
date and time ladimples247 New Users to Excel 2 February 16th 05 08:52 PM
sum of date ranges Tanya Excel Worksheet Functions 1 January 4th 05 04:11 AM
calculating date time ranges Patrick Excel Worksheet Functions 2 November 11th 04 05:07 AM


All times are GMT +1. The time now is 08:11 AM.

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

About Us

"It's about Microsoft Excel"