Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pe66les
 
Posts: n/a
Default working with dates

How can I write this expression so that my answer is not #VALUE?
I'm working with dates, and I want to count only the dates in columns H, J,
& L if they fall between the dates entered in F1 and H1.
IF H5 or J5 or L5 is F1 and <=H1 count as 1.
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

IF H5 or J5 or L5 is F1 and <=H1 count as 1.


So, does that mean if all 3 cells meet the criteria it still counts as 1?

F1 = lower boundry date
H1 = upper boundry date

=IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5=F1),--(H5:L5<=H1)),1,0)

Biff

"Pe66les" wrote in message
...
How can I write this expression so that my answer is not #VALUE?
I'm working with dates, and I want to count only the dates in columns H,
J,
& L if they fall between the dates entered in F1 and H1.
IF H5 or J5 or L5 is F1 and <=H1 count as 1.



  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 23 Aug 2005 17:50:03 -0700, "Pe66les"
wrote:

How can I write this expression so that my answer is not #VALUE?
I'm working with dates, and I want to count only the dates in columns H, J,
& L if they fall between the dates entered in F1 and H1.
IF H5 or J5 or L5 is F1 and <=H1 count as 1.


I'm not sure if you want to count each qualifying date as 1 (so your result
range would be 0 to 3) or count 1 if any of the dates qualify (so your result
range would be 0 to 1)

For the former:

=AND(H5F1,H5<=H1)+AND(J5F1,J5<=H1)+AND(L5F1,L5< =H1)

For the latter:

=--OR(AND(H5F1,H5<=H1)+AND(J5F1,J5<=H1)+AND(L5F1,L 5<=H1))


--ron
  #4   Report Post  
Pe66les
 
Posts: n/a
Default

Yes, if any or all 3 cells meet the criteria it only counts as 1.

"Biff" wrote:

Hi!

IF H5 or J5 or L5 is F1 and <=H1 count as 1.


So, does that mean if all 3 cells meet the criteria it still counts as 1?

F1 = lower boundry date
H1 = upper boundry date

=IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5=F1),--(H5:L5<=H1)),1,0)

Biff

"Pe66les" wrote in message
...
How can I write this expression so that my answer is not #VALUE?
I'm working with dates, and I want to count only the dates in columns H,
J,
& L if they fall between the dates entered in F1 and H1.
IF H5 or J5 or L5 is F1 and <=H1 count as 1.




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
Formula to find the working days difference between to dates? Mudgeman Excel Discussion (Misc queries) 2 May 15th 06 04:26 AM
working with dates Phil kelly Excel Discussion (Misc queries) 2 June 21st 05 12:05 PM
working with dates in fiscal years justin_vasko Excel Worksheet Functions 3 May 18th 05 08:39 PM
Is there a way to calculate business working days between dates i. hjyoungii Excel Worksheet Functions 2 February 23rd 05 04:25 PM
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM


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

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"