LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Countind date between two dates - formula results

The array (range) sizes must be the same size when using SUMPRODUCT.

=SUMPRODUCT(--(Mortgages!C174:C187<""),--(Mortgages!F174:F187="Abbey"),--(YEAR(Mortgages!K174:K187)=2007))

???

"Mark R" wrote:

oh my god, it works brilliantly if i am on the same sheet, but i want to look
at data from another worksheet, just a tab along, I have replace the
appropriate date but now it doesnt like the formula. This is what I have at
the mo(Mortgages being another worksheet but int the same book). It is the
same formula that works but merely grabbing data elsewhere????????????

=SUMPRODUCT(--(Mortgages!C176:C186<""),--(Mortgages!F174:F187="Abbey"),--(YEAR(Mortgages!K174:K185)=2007))

C = the name of client
F = the company
K = The date submitted


aaaaaaaaaaaaaaaaaaaaargh


"T. Valko" wrote:

To count entries for the month of *January*. This will include *all* years.

=SUMPRODUCT(--(ISNUMBER(B1:B9)),--(MONTH(B1:B9)=1))

To count entries for *any other month*:

=SUMPRODUCT(--(MONTH(B1:B9)=month_number))

To count for January of a specific year (if you might be counting for
January 1900 include the ISNUMBER test. Empty cells evaluate as date January
0 1900):

=SUMPRODUCT(--(MONTH(B1:B9)=1),--(YEAR(B1:B9)=year_number))

Or:

=SUMPRODUCT(--(TEXT(B1:B9,"mmmyyyy")="Jan2007"))

To count entries of "Abbey" for years 2006, 2007 (includes *all* months):

=SUMPRODUCT((YEAR(B1:B9)={2006,2007})*(C1:C9="Abbe y"))

--
Biff
Microsoft Excel MVP


"Mark R" wrote in message
...
I have a spreadsheet that has clients names and then the date that I
submitted the business for them i.e

Mr Jones 12/12/2006 Abbey
Mrs Smith 12/01/2007 Natwest

What is the best way to count all the submitted business in 1 month say
for
January only. Also how would i count all the Abbey cases in say 2007, or
2006.

I need this as a formula so that I can populate graphes etc with it.




 
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
Date formatting of formula created dates Fred Excel Discussion (Misc queries) 2 October 23rd 06 02:40 PM
Need formula to calculate days between dates or back date KVN Excel Discussion (Misc queries) 3 May 3rd 06 10:08 PM
date formula for extracting unique dates elfudge35 Excel Worksheet Functions 6 January 14th 06 02:18 PM
Trending Formula Results by Date sony654 Excel Worksheet Functions 0 January 2nd 06 02:33 AM
Date stamp formula results? Tricky problem? mjp Excel Discussion (Misc queries) 0 November 18th 05 04:11 PM


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