Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default COUNTIF for date and amount

I am looking for a function to find money values within certain ranges and
within certain date ranges:

Here is what the data I will get will look like

A B
$15 1/12/10
$20 7/5/07


I understand how to count gifts by the dollar amount range using countif,
but I don't know how to create or add the date range.

Thanks a lot for your help,
-B

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default COUNTIF for date and amount

Try this...

Use cells to hold the criteria.

Amount boundaries:

D1 = lower boundary = 10
E1 = upper boundary = 50

Date boundaries:

D2 = lower boundary = 1/1/2010
E2 = upper boundary = 1/15/2010

Then:

=SUMPRODUCT(--(A1:A10=D1),--(A1:A10<=E1),--(B1:B10=D2),--(B1:B10<=E2))

If you're using Excel 2007 you can use this:

=COUNTIFS(A1:A10,"="&D1,A1:A10,"<="&E1,B1:B10,"= "&D2,B1:B10,"<="&E2)

--
Biff
Microsoft Excel MVP


"Outlook, eh?" wrote in message
...
I am looking for a function to find money values within certain ranges and
within certain date ranges:

Here is what the data I will get will look like

A B
$15 1/12/10
$20 7/5/07


I understand how to count gifts by the dollar amount range using countif,
but I don't know how to create or add the date range.

Thanks a lot for your help,
-B



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
Sum or count date then amount pgarcia Excel Discussion (Misc queries) 6 February 28th 09 10:23 PM
How can I link data in three different cells? ck# date amount Shiela Excel Worksheet Functions 2 November 13th 08 06:09 PM
Combining Date and Amount stew Excel Discussion (Misc queries) 4 September 21st 08 12:06 PM
How to retrieve last date and amount from columns? tfrentz Excel Worksheet Functions 5 October 30th 06 03:49 AM
any formular to deduct an amount automatically on a given date? Arif Excel Discussion (Misc queries) 1 January 15th 06 05:32 PM


All times are GMT +1. The time now is 10:01 AM.

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"