LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
RagDyeR
 
Posts: n/a
Default SUMPRODUCT ON DATES

If I understand what you're looking to do,

Say your dates are in Column B, and the entire data list is in rows 10 to
3000.

Enter you're starting date to look up in A1, and you're ending date in A2.

Then try this:

=SUMPRODUCT((DATA!B10:B3000=A1)*(DATA!B10:B3000<= A2)*(DATA!N10:N3000={"A&E"
,"RATU"})*(DATA!S10:S3000="AdmittedtoUnit"))
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Iain Halder" wrote in message
...
Hello,

I have a worksheet where I need to be able to calculate various totals
but initially based on dates firstly just by the month on e one sheet
(ie Jan, Feb, Mar, etc) and secondly by week on another sheet (ie 1st
Jan to 7th Jan, 8th Jan to 14th Jan, etc) through the entire year in 7
day increments.

Below is an example of what I am doing using SUMPRODUCT.

=(SUMPRODUCT(--(DATA!N1406:N1499="A&E"),--(DATA!S1406:S1499="Admitted
to
Unit")))+(SUMPRODUCT(--(DATA!N1406:N1499="RATU"),--(DATA!S1406:S1499="Admitt
ed
to Unit")))

The numbers 1406:1499 constantly repeated for various columns actually
represents those parts of the worksheet which correspond to between
dates.

The reality is that whenever I want a total I have to look at the raw
data sheet and manually count the rows between the dates I want and
then manually insert these numbers into the final worksheets.
Sometimes new data appears from weeks ago which then has to be
included. So I re-count manually for that week and then have to
recount for all the intervening weeks from then to the present. As you
can imagine it gets very tedious.

I need a way of doing the above sumproduct'ing but just have the
ability to insert from and to dates instead. this way the worksheet is
more automated (and accurate).

Hope I have explained this OK.

Thanks in advance!

Iain Halder
Rescued Cats & Kittens Needing Homes
'o'< www.celiahammond.org 'o'<
'o'< www.cat77.org.uk 'o'<



 
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
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM
due dates Niki New Users to Excel 4 January 10th 05 04:11 PM
sumproduct between dates Dominique Feteau Excel Worksheet Functions 8 December 5th 04 09:56 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


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