#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Function

I have the following formula -

=SUM(IF(FAWAD!$O$2:$O$4000=$E$2,IF(FAWAD!$L$2:$L$4 000=DATEVALUE("4/25/2008"),1,0)))-SUM(IF(FAWAD!$O$2:$O$4000=$E$2,IF(FAWAD!$L$2:$L$40 00DATEVALUE("5/1/2008"),1,0)))

I want to include another datevalue range and I'm not sure how to
incorporate it into this formula. Like if Cells O = Yes (E2) and Cells L =
Certain Date Range and then I want to add another If Cells P = another
certain date range. It will then count total number of accounts.

Criterial in the end being

1. Has to equal Yes
2. Contract date needs to equal specific Date Range
3. Visited date needs to equal specific Date Range

Then it counts total number of accounts with the above criteria.

Is it possible to add to date ranges to the formula??

Thanks
Brooke
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Function

Try this:

=SUMPRODUCT(--(FAWAD!$O$2:$O$4000=$E$2),--(FAWAD!$L$2:$L$4000=DATEVALUE("4/25/2008")),--(FAWAD!$L$2:$L$4000<=DATEVALUE("5/1/2008")))

HTH,
Paul

--

"Brooke" wrote in message
...
I have the following formula -

=SUM(IF(FAWAD!$O$2:$O$4000=$E$2,IF(FAWAD!$L$2:$L$4 000=DATEVALUE("4/25/2008"),1,0)))-SUM(IF(FAWAD!$O$2:$O$4000=$E$2,IF(FAWAD!$L$2:$L$40 00DATEVALUE("5/1/2008"),1,0)))

I want to include another datevalue range and I'm not sure how to
incorporate it into this formula. Like if Cells O = Yes (E2) and Cells L
=
Certain Date Range and then I want to add another If Cells P = another
certain date range. It will then count total number of accounts.

Criterial in the end being

1. Has to equal Yes
2. Contract date needs to equal specific Date Range
3. Visited date needs to equal specific Date Range

Then it counts total number of accounts with the above criteria.

Is it possible to add to date ranges to the formula??

Thanks
Brooke



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Function

That gives me the first date range, but I also want to include another column
like K with the same datevalue range. So both columns have to have that
date range before it will count.

Can I just do another
(--(FAWAD!$L$2:$L$4000=DATEVALUE("4/25/2008")),--(FAWAD!$L$2:$L$4000<=DATEVALUE("5/1/2008"))) ?????


"PCLIVE" wrote:

Try this:

=SUMPRODUCT(--(FAWAD!$O$2:$O$4000=$E$2),--(FAWAD!$L$2:$L$4000=DATEVALUE("4/25/2008")),--(FAWAD!$L$2:$L$4000<=DATEVALUE("5/1/2008")))

HTH,
Paul

--

"Brooke" wrote in message
...
I have the following formula -

=SUM(IF(FAWAD!$O$2:$O$4000=$E$2,IF(FAWAD!$L$2:$L$4 000=DATEVALUE("4/25/2008"),1,0)))-SUM(IF(FAWAD!$O$2:$O$4000=$E$2,IF(FAWAD!$L$2:$L$40 00DATEVALUE("5/1/2008"),1,0)))

I want to include another datevalue range and I'm not sure how to
incorporate it into this formula. Like if Cells O = Yes (E2) and Cells L
=
Certain Date Range and then I want to add another If Cells P = another
certain date range. It will then count total number of accounts.

Criterial in the end being

1. Has to equal Yes
2. Contract date needs to equal specific Date Range
3. Visited date needs to equal specific Date Range

Then it counts total number of accounts with the above criteria.

Is it possible to add to date ranges to the formula??

Thanks
Brooke




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Function

If I understand you correctly then yes.

Heres the breakdown. The formula below will count rows that include all of
the following criteria.

-FAWAD!$O$2:$O$4000 These rows have to equal what is in $E$2
-FAWAD!$L$2:$L$4000 These rows have to be greater than or equal to
4/25/2008 AND...
They have to be less than or
equal to 5/1/2008
-FAWAD!$K$2:$K$4000 These rows have to be greater than or equal to
4/25/2008 AND...
They have to be less than or
equal to 5/1/2008

All of this criteria must be met in order to be counted.


=SUMPRODUCT(--(FAWAD!$O$2:$O$4000=$E$2),--(FAWAD!$L$2:$L$4000=DATEVALUE("4/25/2008")),--(FAWAD!$L$2:$L$4000<=DATEVALUE("5/1/2008")),--(FAWAD!$K$2:$K$4000=DATEVALUE("4/25/2008")),--(FAWAD!$K$2:$K$4000<=DATEVALUE("5/1/2008")))

Regards,
Paul

--

"Brooke" wrote in message
...
That gives me the first date range, but I also want to include another
column
like K with the same datevalue range. So both columns have to have that
date range before it will count.

Can I just do another
(--(FAWAD!$L$2:$L$4000=DATEVALUE("4/25/2008")),--(FAWAD!$L$2:$L$4000<=DATEVALUE("5/1/2008")))
?????


"PCLIVE" wrote:

Try this:

=SUMPRODUCT(--(FAWAD!$O$2:$O$4000=$E$2),--(FAWAD!$L$2:$L$4000=DATEVALUE("4/25/2008")),--(FAWAD!$L$2:$L$4000<=DATEVALUE("5/1/2008")))

HTH,
Paul

--

"Brooke" wrote in message
...
I have the following formula -

=SUM(IF(FAWAD!$O$2:$O$4000=$E$2,IF(FAWAD!$L$2:$L$4 000=DATEVALUE("4/25/2008"),1,0)))-SUM(IF(FAWAD!$O$2:$O$4000=$E$2,IF(FAWAD!$L$2:$L$40 00DATEVALUE("5/1/2008"),1,0)))

I want to include another datevalue range and I'm not sure how to
incorporate it into this formula. Like if Cells O = Yes (E2) and
Cells L
=
Certain Date Range and then I want to add another If Cells P = another
certain date range. It will then count total number of accounts.

Criterial in the end being

1. Has to equal Yes
2. Contract date needs to equal specific Date Range
3. Visited date needs to equal specific Date Range

Then it counts total number of accounts with the above criteria.

Is it possible to add to date ranges to the formula??

Thanks
Brooke






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Function

Perfect. Thank you so much.

"PCLIVE" wrote:

If I understand you correctly then yes.

Heres the breakdown. The formula below will count rows that include all of
the following criteria.

-FAWAD!$O$2:$O$4000 These rows have to equal what is in $E$2
-FAWAD!$L$2:$L$4000 These rows have to be greater than or equal to
4/25/2008 AND...
They have to be less than or
equal to 5/1/2008
-FAWAD!$K$2:$K$4000 These rows have to be greater than or equal to
4/25/2008 AND...
They have to be less than or
equal to 5/1/2008

All of this criteria must be met in order to be counted.


=SUMPRODUCT(--(FAWAD!$O$2:$O$4000=$E$2),--(FAWAD!$L$2:$L$4000=DATEVALUE("4/25/2008")),--(FAWAD!$L$2:$L$4000<=DATEVALUE("5/1/2008")),--(FAWAD!$K$2:$K$4000=DATEVALUE("4/25/2008")),--(FAWAD!$K$2:$K$4000<=DATEVALUE("5/1/2008")))

Regards,
Paul

--

"Brooke" wrote in message
...
That gives me the first date range, but I also want to include another
column
like K with the same datevalue range. So both columns have to have that
date range before it will count.

Can I just do another
(--(FAWAD!$L$2:$L$4000=DATEVALUE("4/25/2008")),--(FAWAD!$L$2:$L$4000<=DATEVALUE("5/1/2008")))
?????


"PCLIVE" wrote:

Try this:

=SUMPRODUCT(--(FAWAD!$O$2:$O$4000=$E$2),--(FAWAD!$L$2:$L$4000=DATEVALUE("4/25/2008")),--(FAWAD!$L$2:$L$4000<=DATEVALUE("5/1/2008")))

HTH,
Paul

--

"Brooke" wrote in message
...
I have the following formula -

=SUM(IF(FAWAD!$O$2:$O$4000=$E$2,IF(FAWAD!$L$2:$L$4 000=DATEVALUE("4/25/2008"),1,0)))-SUM(IF(FAWAD!$O$2:$O$4000=$E$2,IF(FAWAD!$L$2:$L$40 00DATEVALUE("5/1/2008"),1,0)))

I want to include another datevalue range and I'm not sure how to
incorporate it into this formula. Like if Cells O = Yes (E2) and
Cells L
=
Certain Date Range and then I want to add another If Cells P = another
certain date range. It will then count total number of accounts.

Criterial in the end being

1. Has to equal Yes
2. Contract date needs to equal specific Date Range
3. Visited date needs to equal specific Date Range

Then it counts total number of accounts with the above criteria.

Is it possible to add to date ranges to the formula??

Thanks
Brooke






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
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


All times are GMT +1. The time now is 10:48 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"